/* Landing Page Styles */

/* Header */
.landing-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  padding: 16px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--color-accent);
}

.header-nav .btn-primary {
  padding: 8px 20px;
  font-size: 0.9rem;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--color-primary);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.header-nav .btn-primary:hover {
  background-color: rgba(255, 255, 255, 1);
  border-color: rgba(0, 0, 0, 0.2);
}

.header-nav .btn-secondary {
  padding: 8px 20px;
  font-size: 0.9rem;
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.header-nav .btn-secondary:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .header-nav {
    gap: 16px;
  }
  
  .header-nav a:not(.btn) {
    display: none;
  }
}

.landing-hero {
  padding: 120px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, #FFFFFF 0%, #F9F9F9 100%);
}

.landing-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.hero-scope-note {
  margin-top: -1.25rem;
  margin-bottom: 1.75rem;
  font-size: 0.98rem;
  color: var(--color-text-light);
  max-width: 720px;
}

.hero-scope-note strong {
  color: var(--color-text);
  font-weight: 600;
}

.hero-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 24px auto 0;
  max-width: 920px;
}

.hero-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-sm);
  min-width: 170px;
}

.hero-badge strong {
  font-size: 0.95rem;
  color: var(--color-text);
}

.hero-badge span {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* Hero section split: primary CTA → divider → sandbox */
.hero-divider {
  height: 1px;
  width: min(760px, 92vw);
  background: var(--color-border);
  margin: 28px auto 22px;
  opacity: 0.9;
}

.hero-sandbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-midheader {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
}

/* Landing sandbox test */
.sandbox-cta {
  position: relative;
  min-width: min(620px, 90vw);
}

.sandbox-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 10px;
  box-shadow: var(--shadow-sm);
}

.sandbox-input-row input {
  flex: 1;
  margin: 0;
}

.sandbox-input-row .btn {
  white-space: nowrap;
}

.sandbox-note {
  margin-top: 8px;
  color: var(--color-text-light);
  font-size: 0.9rem;
  text-align: left;
}

.sandbox-tip {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-text);
  font-size: 0.92rem;
  text-align: left;
}

.sandbox-tip a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sandbox-human {
  margin-top: 10px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  text-align: left;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  padding: 0 12px;
  transition: max-height 260ms ease, opacity 200ms ease, transform 200ms ease, padding 260ms ease;
}

.sandbox-human.is-open {
  max-height: 360px;
  opacity: 1;
  transform: translateY(0);
  padding: 12px;
}

.sandbox-human-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.sandbox-human-note {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.sandbox-error {
  margin-top: 10px;
  color: var(--color-error);
  font-size: 0.95rem;
  text-align: left;
}

/* Candidate picker (submit → "is this the address you meant?") */
.sandbox-candidates {
  margin-top: 10px;
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.sandbox-candidates-title {
  padding: 10px 12px;
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
}

.sandbox-candidates-list {
  display: flex;
  flex-direction: column;
}

.sandbox-candidate {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 12px 12px;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid var(--color-border);
  font: inherit;
}

.sandbox-candidate:last-child {
  border-bottom: 0;
}

.sandbox-candidate:hover {
  background: #F5F5F5;
}

.sandbox-results {
  margin-top: 24px;
  text-align: left;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.sandbox-results-toolbar {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.sandbox-results .card-subhead {
  margin-top: -8px;
  margin-bottom: 12px;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.sandbox-toggle-btn {
  border: 1px solid var(--color-border);
  background: #FFFFFF;
  color: var(--color-text);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.9rem;
  cursor: pointer;
}

.sandbox-toggle-btn.active {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
}

.sandbox-human-block {
  display: block;
}

.sandbox-json-block {
  display: none;
}

.sandbox-muted {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.sandbox-kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.sandbox-kv .k {
  color: var(--color-text-light);
  font-size: 0.82rem;
  margin-bottom: 2px;
}

.sandbox-kv .v {
  font-weight: 600;
  color: var(--color-text);
}

.sandbox-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.sandbox-table thead tr {
  border-bottom: 2px solid var(--color-border);
}

.sandbox-table tbody tr {
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.sandbox-table th,
.sandbox-table td {
  padding: 8px;
}

.sandbox-table .num {
  text-align: right;
}

.sandbox-table .mono {
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  color: var(--color-text-light);
  word-break: break-word;
}

.sandbox-results .result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.sandbox-results pre {
  background: #111;
  color: #fff;
  padding: 16px;
  border-radius: 10px;
  overflow: auto;
  font-size: 0.85rem;
  line-height: 1.35;
}

.hero-subcta {
  margin-top: 16px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.hero-subcta a {
  color: var(--color-text-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dot {
  opacity: 0.7;
}

.section {
  padding: 80px 0;
}

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

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-title p {
  color: var(--color-text-light);
  font-size: 1.1rem;
}

/* How It Works */
.how-it-works {
  background: white;
}

/* Why */
.why {
  background: #FFFFFF;
  border-top: 1px solid var(--color-border);
}

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

.feature-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.feature-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.feature-card p {
  color: var(--color-text-light);
  margin: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 3rem;
}

.step {
  text-align: center;
}

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

.step h3 {
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--color-text-light);
}

/* Pricing */
.pricing {
  background: #F9F9F9;
}

#pricing {
  scroll-margin-top: 96px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--color-border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

.pricing-card h3 {
  margin-bottom: 0.5rem;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 600;
  margin: 1rem 0;
}

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

.pricing-card ul {
  list-style: none;
  margin: 1.5rem 0;
}

.pricing-card li {
  padding: 8px 0;
  color: var(--color-text-light);
}

.pricing-card li:before {
  content: "✓ ";
  color: var(--color-success);
  font-weight: 600;
  margin-right: 8px;
}

.pricing-footnote {
  max-width: 1000px;
  margin: 16px auto 0;
  text-align: center;
  color: var(--color-text-light);
}

.pricing-footnote p {
  margin: 0;
}

/* Comparison Table */
.comparison {
  background: white;
}

.comparison-table-wrapper {
  overflow-x: auto;
  max-width: 1200px;
  margin: 0 auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.comparison-table thead {
  border-bottom: 2px solid var(--color-border);
}

.comparison-table th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: var(--color-text);
}

.comparison-table th:first-child {
  width: 20%;
}

.comparison-table th:not(:first-child) {
  width: 20%;
  text-align: center;
}

.comparison-table tbody tr {
  border-bottom: 1px solid var(--color-border);
}

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

.comparison-table td {
  padding: 16px;
  vertical-align: top;
}

.comparison-table td:first-child {
  font-weight: 500;
  color: var(--color-text);
}

.comparison-table td:not(:first-child) {
  text-align: center;
  color: var(--color-text-light);
}

.comparison-table td strong {
  color: var(--color-text);
}

.comparison-footnote {
  margin-top: 10px;
  color: var(--color-text-light);
  font-size: 0.9rem;
  text-align: right;
}

/* Responsive comparison table */
@media (max-width: 768px) {
  .comparison-table-wrapper {
    margin: 0 -16px;
  }
  
  .comparison-table {
    font-size: 0.9rem;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 12px 8px;
  }
}

/* CTA Repeat Section */
.cta-repeat {
  background: var(--color-primary);
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: white;
}

.cta-content p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn-primary {
  background: white;
  color: var(--color-primary);
  border: none;
}

.cta-buttons .btn-primary:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

.cta-buttons .btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.cta-buttons .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .cta-content h2 {
    font-size: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Code Snippets */
.code-snippets {
  background: white;
}

.quickstart-links {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--color-text-light);
}

.quickstart-links a {
  color: var(--color-text-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.code-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.code-tab {
  padding: 8px 16px;
  background: #F5F5F5;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.code-tab.active {
  background: var(--color-primary);
  color: white;
}

.code-block {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.code-block pre {
  margin: 0;
}

.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Footer */
.footer {
  background: var(--color-primary);
  color: white;
  padding: 48px 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: white;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  display: block;
  padding: 4px 0;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
  .landing-hero {
    padding: 80px 0 60px;
  }
  
  .landing-hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-badge {
    min-width: 0;
    flex: 1;
  }
  
  .steps {
    grid-template-columns: 1fr;
  }
  
  .pricing-cards {
    grid-template-columns: 1fr;
  }
}

