@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  line-height: 1.6;
  color: #0f172a;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Sections */
.section {
  padding: 6rem 0;
}

/* Hero section with extra top padding */
.hero {
  padding: 1rem 0 3rem 0;
  text-align: center;
}

.section--muted {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  background-image: 
    radial-gradient(circle at 25px 25px, rgba(148, 163, 184, 0.2) 1px, transparent 0),
    radial-gradient(circle at 75px 75px, rgba(148, 163, 184, 0.2) 1px, transparent 0);
  background-size: 100px 100px;
}

.section--band {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
}

.section--band p,
.section--band .lead {
  color: #e2e8f0;
}

.bleed {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Kicker text - small text above heading */
.kicker {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Lead text - description paragraph */
.lead {
  font-size: 1.25rem;
  color: #64748b;
  margin-bottom: 2rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1.6rem;
  color: #0f172a;
}

.section--band h2 {
  color: white;
  margin-bottom: 0.6rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: #64748b;
}

.muted {
  color: #64748b;
  font-size: 1.125rem;
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 3rem auto;
}

.measure {
  max-width: 32rem;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2.5rem;
  align-items: stretch;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* "Why Choose Instance AI?" section - Card layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

/* Header section spans both columns and is centered */
.two-col > div:first-child {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 2rem;
}

.two-col > div:first-child h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.two-col > div:first-child p.muted {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 0 auto;
}

/* "Built for SaaS teams that move fast" section - Complete restructure */
.section--muted.bleed {
  text-align: center;
}

.section--muted.bleed .two-col {
  display: block;
  max-width: 800px;
  margin: 0 auto;
}

/* Center the main heading and description */
.section--muted.bleed .prose:first-child h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
}

.section--muted.bleed .prose:first-child p {
  text-align: center;
  font-size: 1.125rem;
  color: #64748b;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

/* Hide "Why it works" heading */
.section--muted.bleed .prose:nth-child(2) h3 {
  display: none;
}

/* Transform the list into 2x2 grid */
.section--muted.bleed .prose:nth-child(2) {
  background: none;
  padding: 0;
  margin-top: 0;
}

.section--muted.bleed .prose ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 3rem;
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  background: none;
}

.section--muted.bleed .prose li {
  margin-bottom: 0;
  padding: 0.25rem 0 0.25rem 2.5rem;
  position: relative;
  background: none;
  border: none;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.6;
  transition: none;
  transform: none;
  text-align: left;
}

.section--muted.bleed .prose li:hover {
  background: none;
  transform: none;
}

/* Meaningful icons for each feature - perfectly aligned */
.section--muted.bleed .prose li:nth-child(1)::before {
  content: "📝";
  position: absolute;
  left: 0;
  top: 0.25rem;
  font-size: 1.1rem;
  width: 1.5rem;
  text-align: center;
}

.section--muted.bleed .prose li:nth-child(2)::before {
  content: "🎯";
  position: absolute;
  left: 0;
  top: 0.25rem;
  font-size: 1.1rem;
  width: 1.5rem;
  text-align: center;
}

.section--muted.bleed .prose li:nth-child(3)::before {
  content: "⚙️";
  position: absolute;
  left: 0;
  top: 0.25rem;
  font-size: 1.1rem;
  width: 1.5rem;
  text-align: center;
}

.section--muted.bleed .prose li:nth-child(4)::before {
  content: "🚀";
  position: absolute;
  left: 0;
  top: 0.25rem;
  font-size: 1.1rem;
  width: 1.5rem;
  text-align: center;
}

.section--muted.bleed .prose strong {
  color: #0f172a;
  font-weight: 600;
  display: inline;
  margin-bottom: 0;
}

/* Orange result callout at bottom */
.section--muted.bleed .callout {
  background: rgba(255, 138, 0, 0.1);
  border: 1px solid rgba(255, 138, 0, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem auto 0 auto;
  text-align: center;
  max-width: 500px;
  box-shadow: none;
  position: static;
  overflow: visible;
}

.section--muted.bleed .callout::before {
  display: none;
}

.section--muted.bleed .callout strong {
  color: #ff8a00;
  font-size: 1rem;
  text-shadow: none;
  font-weight: 600;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .section--muted.bleed .prose:first-child h2 {
    font-size: 2rem;
  }
  
  .section--muted.bleed .prose ul {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .section--muted.bleed .prose li {
    padding: 0.25rem 0 0.25rem 2rem;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 138, 0, 0.3);
}

.eyebrow {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ff8a00;
  margin-bottom: 0.5rem;
  display: block;
}

.card p {
  color: #64748b;
  margin-bottom: 0;
  line-height: 1.6;
}

/* Prose Content - Better organization for "Built for SaaS teams" */
.prose {
  max-width: none;
}

.prose h2 {
  text-align: left;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: #0f172a;
}

.prose h3 {
  color: #0f172a;
  font-size: 1.25rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.prose > p {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: #64748b;
}

.prose ul {
  list-style: none;
  padding: 0;
  background: #f8fafc;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.prose li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
  color: #64748b;
  font-size: 1.05rem;
  line-height: 1.6;
}

.prose li::before {
  content: "✓";
  color: #ff8a00;
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 1.1rem;
}

.prose strong {
  color: #0f172a;
  font-weight: 600;
}

/* Callout */
.callout {
  background: rgba(255, 138, 0, 0.1);
  border: 1px solid rgba(255, 138, 0, 0.2);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  color: #0f172a;
}

.callout strong {
  color: #ff8a00;
}

/* Better formatting for "Instance vs traditional" section */
.container.prose {
  max-width: 900px;
  margin: 0 auto;
}

.container.prose ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  background: none;
  padding: 0;
}

.container.prose li {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 0;
  padding-left: 2rem;
}

.container.prose li:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: rgba(255, 138, 0, 0.2);
}

.container.prose li::before {
  content: "→";
  color: #ff8a00;
  font-size: 1.25rem;
  left: 0.75rem;
  top: 2rem;
}

.container.prose li strong {
  display: block;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

/* FAQ Details */
details {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

summary {
  background: #f8fafc;
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: #0f172a;
  border: none;
  outline: none;
  transition: background-color 0.2s ease;
  text-align: left;
}

summary:hover {
  background: #f1f5f9;
}

details[open] summary {
  background: #ed9d08;
  color: white;
}

details p {
  padding: 1.5rem;
  margin: 0;
  background: white;
  color: #64748b;
  text-align: left;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ed9d08;
  color: white;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 138, 0, 0.3);
}

/* Button styling */
.btn-primary {
  background: #ed9d08;
  color: white;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 138, 0, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: #d97706;
  transform: translateY(-2px);
  color: white;
}

.btn:hover {
  background: #d97706;
  transform: translateY(-2px);
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .bleed {
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .container.prose li {
    padding: 1.5rem;
    padding-left: 1.5rem;
  }
  
  .container.prose li::before {
    left: 0.5rem;
    top: 1.5rem;
  }
}

/* Focus States */
summary:focus-visible,
.btn:focus-visible {
  outline: 2px solid #ed9d08;
  outline-offset: 2px;
}

/* Instance vs Traditional Builders Comparison Section */
.comparison-section {
  background: white;
}

.comparison-section h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2rem;
}

/* Column headers */
.comparison-headers {
  display: none;
}

@media (min-width: 768px) {
  .comparison-headers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding: 0 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
}

/* Comparison list container */
.comparison-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Individual comparison rows */
.comparison-row {
  display: block;
  border-bottom: 1px solid #e2e8f0;
  transition: background-color 0.2s ease;
}

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

.comparison-row:hover {
  background-color: #f8fafc;
}

/* Content within each row */
.comparison-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .comparison-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem 1.5rem;
  }
}

/* Instance column (left) */
.instance-feature {
  padding: 0;
}

.instance-feature .feature-title {
  font-weight: 600;
  color: #0f172a;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.instance-feature .feature-title::before {
  content: "✓";
  color: #ff8a00;
  font-weight: bold;
  font-size: 1rem;
}

.instance-feature .feature-description {
  color: #64748b;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Traditional builders column (right) */
.traditional-feature {
  padding: 0;
}

.traditional-feature .feature-title {
  font-weight: 600;
  color: #0f172a;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.traditional-feature .feature-title::before {
  content: "✗";
  color: #dc2626;
  font-weight: bold;
  font-size: 1rem;
}

/* Hide traditional titles on mobile, show on desktop */
@media (max-width: 767px) {
  .traditional-feature .feature-title {
    display: none;
  }
}

.traditional-feature .feature-description {
  color: #64748b;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Mobile-specific styling */
@media (max-width: 767px) {
  .comparison-section h2 {
    font-size: 2rem;
  }
  
  .comparison-content {
    gap: 1rem;
  }
  
  .instance-feature,
  .traditional-feature {
    padding-bottom: 0.75rem;
  }
  
  .traditional-feature {
    border-top: 1px solid #e2e8f0;
    padding-top: 0.75rem;
  }
}

/* Text Alignment Utilities */
[style*="text-align:center"] {
  text-align: center;
}

/* Margin Utilities */
[style*="margin:12px auto 24px"] {
  margin: 12px auto 24px;
}