/**
 * Frontend Stylesheet for Affiliate Landing Builder
 * System: 8px Spacing System, Visual Discipline (1 Radius, 2 Shadows), Mobile-First
 */

/* ==========================================================================
   1. GLOBAL DESIGN SYSTEM & TOKENS
   ========================================================================== */
:root {
  /* Palette Tokens */
  --primary-cta: #ee4d2d;         /* High-Contrast Conversion Orange */
  --primary-cta-hover: #d03e1f;
  --brand-blue: #0056b3;          /* Brand Trust Navy Blue */
  --text-dark: #0f172a;           /* Deep Slate Gray */
  --text-muted: #475569;          /* Neutral Subtitle Text */
  --bg-page: #f8fafc;             /* Crisp Off-White */
  --bg-white: #ffffff;
  --border-light: #e2e8f0;
  --success-green: #16a34a;
  --danger-red: #dc2626;

  /* Visual Discipline Tokens (Strict 1 Radius & 2 Shadow Strengths) */
  --radius-global: 12px;          /* THE ONE BORDER RADIUS RULE */
  --shadow-subtle: 0 4px 12px rgba(15, 23, 42, 0.05);   /* Shadow Level 1 */
  --shadow-elevated: 0 16px 32px rgba(15, 23, 42, 0.12); /* Shadow Level 2 */
}

/* CSS Reset & Base Rules */
.alb-isolated-landing *, 
.alb-isolated-landing *::before, 
.alb-isolated-landing *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.alb-isolated-body {
  font-family: 'Prompt', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-page);
  line-height: 1.65;
  font-size: 16px; /* iOS Auto-zoom Prevention */
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

.page-wrapper {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px; /* 16px = 8px * 2 */
}

/* ==========================================================================
   2. HERO SECTION (ABOVE THE FOLD - 2.6s HOOK)
   ========================================================================== */
.hero-container {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-global);
  padding: 40px 24px;
  margin-top: 24px;
  text-align: center;
  box-shadow: var(--shadow-subtle);
}

.social-proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-cta);
  margin-bottom: 24px;
}

.social-proof-pill .stars {
  color: #f59e0b;
  letter-spacing: 2px;
}

.hero-h1 {
  font-size: 28px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-h2 {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 24px auto;
  line-height: 1.6;
}

/* Media (Hero Banner & Responsive Video) */
.hero-media-wrapper {
  margin: 24px auto;
  max-width: 720px;
}

.hero-banner-img {
  width: 100%;
  max-width: 680px;
  height: auto;
  border-radius: var(--radius-global);
  box-shadow: var(--shadow-subtle);
  display: block;
  margin: 0 auto;
}

.video-responsive-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-global);
  box-shadow: var(--shadow-subtle);
  background: #000000;
}

.video-responsive-container iframe,
.video-responsive-container video,
.video-responsive-container embed,
.video-responsive-container object {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* FTC Affiliate Disclosure (Clear & Conspicuous above CTA) */
.ftc-disclosure-card {
  background-color: #f1f5f9;
  border-left: 4px solid var(--brand-blue);
  padding: 12px 16px;
  font-size: 13px;
  color: #334155;
  text-align: left;
  border-radius: 4px;
  margin: 0 auto 24px auto;
  max-width: 720px;
  line-height: 1.5;
}

/* High-Performance Call-to-Value CTA Button */
.cta-holder {
  margin: 20px 0 16px 0;
}

.btn-call-to-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 580px;
  min-height: 56px; /* Touch Target Compliance */
  padding: 14px 24px;
  background-color: var(--primary-cta);
  color: #ffffff !important;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-global);
  box-shadow: 0 6px 20px rgba(238, 77, 45, 0.35);
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-call-to-value:hover {
  background-color: var(--primary-cta-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
  color: #ffffff !important;
}

/* Click Triggers */
.click-triggers-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 14px;
}

.trigger-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trigger-check {
  color: var(--success-green);
  font-weight: 800;
}

/* ==========================================================================
   3. INTERACTIVE MICRO-INTERACTION (BREADCRUMB COMMITMENT)
   ========================================================================== */
.interactive-estimator {
  margin-top: 32px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-global);
  padding: 24px;
  text-align: left;
}

.estimator-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.estimator-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}

.estimator-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.estimator-btn {
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-global);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.estimator-btn:hover, 
.estimator-btn.active {
  border-color: var(--brand-blue);
  background: #eff6ff;
  color: var(--brand-blue);
}

.estimator-result {
  background: #ffffff;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-global);
  padding: 16px;
  font-size: 14.5px;
  color: #166534;
  line-height: 1.5;
}

/* ==========================================================================
   4. PROBLEM SECTION (VOICE OF CUSTOMER & PROBLEM CARDS)
   ========================================================================== */
.section-block {
  margin-top: 56px;
}

.section-header-wrap {
  text-align: center;
  margin-bottom: 32px;
}

.section-subtag {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary-cta);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  display: block;
}

.section-h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.3px;
}

.problem-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.problem-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--danger-red);
  border-radius: var(--radius-global);
  padding: 24px;
  box-shadow: var(--shadow-subtle);
}

.problem-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.problem-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.problem-voc-quote {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
}

/* ==========================================================================
   5. SOLUTION SECTION (BENEFITS-OVER-FEATURES)
   ========================================================================== */
.solution-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.solution-item-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-global);
  padding: 24px;
  box-shadow: var(--shadow-subtle);
}

.feature-pill {
  display: inline-block;
  background: #eff6ff;
  color: var(--brand-blue);
  font-size: 14px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 6px;
  margin-bottom: 12px;
  border: 1px solid #dbeafe;
}

.benefit-copy {
  font-size: 15.5px;
  color: var(--text-dark);
  line-height: 1.6;
}

/* ==========================================================================
   6. SOCIAL PROOF & VERIFIED REVIEWS SECTION
   ========================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.review-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-global);
  padding: 24px;
  box-shadow: var(--shadow-subtle);
}

.review-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.review-stars-val {
  color: #f59e0b;
  font-weight: bold;
  font-size: 15px;
}

.verified-buyer-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--success-green);
  background: #dcfce7;
  padding: 2px 10px;
  border-radius: 999px;
}

.review-content-text {
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 14px;
}

.reviewer-name-id {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
}

/* ==========================================================================
   7. OBJECTION HANDLING (COLLAPSIBLE ACCORDION FAQ)
   ========================================================================== */
.faq-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-accordion-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-global);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
}

.faq-accordion-item summary {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-accordion-item summary::-webkit-details-marker {
  display: none;
}

.faq-accordion-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-blue);
}

.faq-accordion-item[open] summary::after {
  content: '−';
}

.faq-accordion-body {
  padding: 0 24px 20px 24px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   8. FINAL HIGH-CONTRAST CTA (CLOSING SECTION)
   ========================================================================== */
.final-closing-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--radius-global);
  padding: 48px 24px;
  text-align: center;
  box-shadow: var(--shadow-elevated);
  color: #ffffff;
  margin-bottom: 48px;
}

.final-closing-section h2 {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.final-closing-section p {
  font-size: 16px;
  color: #94a3b8;
  max-width: 640px;
  margin: 0 auto 24px auto;
}

.final-guarantee-note {
  font-size: 13px;
  color: #cbd5e1;
  margin-top: 16px;
}

/* ==========================================================================
   9. STRICT COMPLIANCE FOOTER
   ========================================================================== */
.compliance-footer-bar {
  border-top: 1px solid var(--border-light);
  padding: 32px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-terms-links {
  margin-bottom: 8px;
}

.footer-terms-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 10px;
}

.footer-terms-links a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   10. RESPONSIVE BREAKPOINTS (DESKTOP GRID SYSTEM)
   ========================================================================== */
@media (min-width: 768px) {
  .hero-h1 {
    font-size: 34px;
  }
  .estimator-options {
    grid-template-columns: repeat(3, 1fr);
  }
  .problem-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-container {
    padding: 56px 40px;
  }
}
