/* assets/css/main.css */

/* General reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Layout */
.page-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
header {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
}
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto;
  padding: 0;
}
.nav-links li a {
  text-decoration: none;
  color: #444;
  font-size: 0.92rem;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background-color 0.15s, color 0.15s;
}
.nav-links li a:hover {
  background-color: #dcfce7;
  color: #15803D;
}
.nav-ctas {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cta-button {
  background-color: #007BFF;
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 5px;
  font-size: 0.88rem;
  white-space: nowrap;
}
.cta-button:hover {
  background-color: #0056b3;
}

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #333;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.hamburger {
  position: relative;
}
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}
.hamburger::before { top: -7px; }
.hamburger::after  { top: 7px; }
/* Animate to X when open */
.nav-toggle[aria-expanded="true"] .hamburger { background-color: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger::after  { top: 0; transform: rotate(-45deg); }

/* Footer */
footer {
  background-color: #f8f8f8;
  border-top: 1px solid #ddd;
  padding: 20px;
  margin-top: 40px;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-bottom {
  max-width: 1100px;
  margin: 20px auto 0;
}
.footer-section {
  flex: 1;
  margin-right: 20px;
}
.footer-section h4 {
  margin-bottom: 10px;
}
.footer-section ul {
  list-style: none;
}
.footer-section ul li a {
  text-decoration: none;
  color: #555;
}
.footer-bottom {
  text-align: center;
  margin-top: 20px;
  color: #aaa;
}

/* Section styling */
section {
  margin-bottom: 30px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

/* Hero section */
.hero {
  text-align: center;
  padding: 30px 20px 25px;
  background-color: #f0fdf4;
  border-radius: 8px;
}
.hero-featured-img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 6px;
  margin: 20px auto 0;
  display: block;
}
.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 8px;
  color: #15803D;
}
.hero-what {
  font-size: 1.3rem;
  color: #555;
  margin-bottom: 24px;
}
.hero-canonical {
  font-size: 1.15rem;
  max-width: 750px;
  margin: 0 auto 16px;
  line-height: 1.7;
  color: #333;
}
.hero-result {
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto 16px;
  color: #444;
  line-height: 1.6;
}

/* Approach section */
.approach {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.approach p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 16px;
}

/* Features section */
.features h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}
.features ul {
  margin-left: 20px;
  margin-bottom: 20px;
}
.features ul li {
  margin-bottom: 10px;
}

/* CTA buttons — in-page usage (scoped so nav button is unaffected) */
.page-wrapper .cta-button {
  display: inline-block;
  margin-top: 15px;
  text-decoration: none;
}

body {
  background-color: #f0fdf4;
}

.testimonial-section {
  margin: 40px 0;
}
.testimonial-section h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
}
.testimonial-section blockquote {
  margin: 20px auto;
  max-width: 800px;
  font-style: italic;
}
.testimonial-section cite {
  display: block;
  margin-top: 8px;
  text-align: right;
  color: #555;
}

ul {
  list-style: none;
  padding-left: 0;
}

ul li {
  margin-bottom: 10px;
  padding-left: 0;
}

form.beta-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
}

form.beta-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
}

form.beta-form input[type="text"],
form.beta-form input[type="email"],
form.beta-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

form.beta-form textarea {
  resize: vertical;
}

form.beta-form input[type="checkbox"] {
  margin-right: 8px;
}

form.beta-form button[type="submit"] {
  background-color: #007BFF;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  cursor: pointer;
}

form.beta-form button[type="submit"]:hover {
  background-color: #0056b3;
}

/* Partner banner on homepage */
.partner-banner {
  background-color: #15803D;
  color: #fff;
  padding: 30px;
  text-align: center;
  border-radius: 8px;
  margin: 30px 0;
}
.partner-banner h2 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 1.5rem;
}
.partner-banner p {
  color: #ccc;
  margin-bottom: 15px;
  font-size: 1.05rem;
}
.cta-button-white {
  background-color: #fff !important;
  color: #15803D !important;
}
.cta-button-white:hover {
  background-color: #e0e0e0 !important;
}

/* Partner nav button */
.cta-partner {
  background-color: #15803D !important;
  color: #fff !important;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 15px;
}
.feature-card {
  background: #f0fdf4;
  padding: 20px;
  border-radius: 6px;
  border: 1px solid #e0e8f0;
}
.feature-card h3 {
  color: #15803D;
  margin-bottom: 8px;
  font-size: 1.1rem;
}
.feature-card p {
  font-size: 0.95rem;
  color: #555;
}
.three-col {
  grid-template-columns: repeat(3, 1fr);
}

/* Expert quotes */
.expert-carousel {
  text-align: center;
  padding: 30px 20px;
}
.expert-quote {
  max-width: 800px;
  margin: 0 auto;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #444;
  padding: 20px 30px;
  background: #f0fdf4;
  border-left: 4px solid #22C55E;
  border-radius: 4px;
  text-align: left;
  transition: opacity 0.6s ease;
}
.expert-quote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-weight: bold;
  color: #15803D;
  font-size: 0.9rem;
}

/* Research quote */
.research-quote {
  max-width: 700px;
  margin: 15px auto;
  padding: 15px 25px;
  background: #f0fdf4;
  border-left: 4px solid #22C55E;
  border-radius: 4px;
  font-style: italic;
  color: #444;
}
.research-quote cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-weight: bold;
  color: #15803D;
  font-size: 0.9rem;
}

/* Data tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
  font-size: 0.95rem;
}
.data-table th {
  background-color: #22C55E;
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: bold;
}
.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #e0e0e0;
}
.data-table tbody tr:nth-child(odd) {
  background-color: #f0fdf4;
}
.data-table tbody tr:hover {
  background-color: #dcfce7;
}

/* Pilot terms table */
.pilot-terms-table td:first-child {
  width: 180px;
  background-color: #f0fdf4;
  white-space: nowrap;
}

/* Evidence list */
.evidence-list {
  list-style: disc !important;
  padding-left: 25px !important;
  margin: 10px 0;
}
.evidence-list li {
  padding-left: 5px;
  margin-bottom: 8px;
  font-style: italic;
  color: #444;
}

/* History brief */
.history-brief {
  text-align: center;
}
.history-brief p {
  max-width: 800px;
  margin: 0 auto 15px;
}

/* Testimonial preview on homepage */
.testimonial-preview {
  text-align: center;
}
.testimonial-preview blockquote {
  max-width: 700px;
  margin: 15px auto;
  font-style: italic;
  color: #444;
  transition: opacity 0.6s ease;
}
.testimonial-preview cite {
  display: block;
  margin-top: 5px;
  color: #555;
  font-style: normal;
}

/* Pilot page CTA */
.pilot-cta {
  text-align: center;
  background: #f0fdf4;
  padding: 30px;
  border-radius: 8px;
}
.pilot-contact {
  margin-top: 15px;
}
.pilot-contact p {
  margin-bottom: 5px;
}
.pilot-contact a {
  color: #22C55E;
}

/* Join / Pricing page */
.pricing-section {
  text-align: center;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 700px;
  margin: 20px auto;
}
.pricing-card {
  background: #fff;
  border: 2px solid #e0e8f0;
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
}
.pricing-recommended {
  border-color: #22C55E;
}
.pricing-amount {
  font-size: 2.2rem;
  font-weight: bold;
  color: #15803D;
  margin: 10px 0 5px;
}
.pricing-amount span {
  font-size: 1rem;
  font-weight: normal;
  color: #666;
}
.pricing-detail {
  color: #22C55E;
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.cta-join {
  background-color: #e74c3c !important;
  color: #fff !important;
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.05rem;
  margin-top: 15px;
}
.cta-join:hover {
  background-color: #c0392b !important;
}
.scholarship-note {
  margin-top: 20px;
  color: #666;
  font-size: 0.9rem;
}
.scholarship-note a {
  color: #22C55E;
}
.join-tagline {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: #444;
}
.learn-list {
  list-style: none !important;
  padding-left: 0 !important;
  max-width: 500px;
  margin: 15px auto;
}
.learn-list li {
  padding: 6px 0 6px 25px;
  position: relative;
}
.learn-list li::before {
  content: "\2713";
  color: #22C55E;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 36px;
  width: auto;
}

/* Founder section */
.founder-section {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}
.founder-photo {
  width: 180px;
  min-width: 180px;
  border-radius: 8px;
}
.founder-text {
  flex: 1;
}
.founder-text p {
  max-width: none;
  text-align: left;
}

/* Book cover */
.book-inline {
  float: right;
  margin: 0 0 15px 25px;
  width: 140px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Spectrum graph in hero */
.hero-graph {
  max-width: 700px;
  width: 100%;
  margin: 20px auto 0;
  display: block;
  border-radius: 6px;
}

/* Image in content sections */
.section-image {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 15px 0;
}
.section-image-centered {
  display: block;
  margin: 15px auto;
  max-width: 600px;
}

/* Section screenshots */
.section-screenshot {
  display: block;
  margin: 1.5rem auto 0;
  max-width: 400px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Stage gallery grid */
.stage-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 20px 0;
}
.stage-gallery figure {
  background: #fff;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #e0e8f0;
}
.stage-gallery img {
  width: 100%;
  height: auto;
}
.stage-gallery figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: #555;
  margin-top: 6px;
}

/* Responsive */
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }
  .nav-links,
  .nav-ctas {
    display: none;
    flex-direction: column;
    width: 100%;
  }
  .nav-links {
    gap: 0;
    padding: 10px 0;
  }
  .nav-links li a {
    display: block;
    padding: 10px 16px;
    font-size: 1rem;
  }
  .nav-ctas {
    padding: 8px 16px 16px;
    gap: 8px;
  }
  .nav-ctas .cta-button {
    text-align: center;
    padding: 10px 16px;
    font-size: 1rem;
  }
  /* Show when toggle is open */
  .navbar.open .nav-links,
  .navbar.open .nav-ctas {
    display: flex;
  }
  .navbar {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0;
  }
  .logo {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .partner-banner h2 {
    font-size: 1.2rem;
  }
  .founder-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .founder-photo {
    width: 140px;
    min-width: auto;
  }
  .book-inline {
    float: none;
    display: block;
    margin: 15px auto;
  }
  .stage-gallery {
    grid-template-columns: 1fr;
  }
  .data-table {
    font-size: 0.85rem;
  }
  .data-table th, .data-table td {
    padding: 8px 10px;
  }
  .partner-options {
    grid-template-columns: 1fr;
  }
}

/* Partner invite page */
.partner-invite-message {
  max-width: 700px;
  margin: 0 auto 30px;
  padding: 20px 30px;
  background: #f0fdf4;
  border-left: 4px solid #22C55E;
  border-radius: 4px;
  font-size: 1.15rem;
  color: #333;
  line-height: 1.7;
}
.partner-invite-message.partner-error {
  border-left-color: #c0392b;
  background: #fdf0ef;
  color: #721c24;
}
.partner-loading {
  text-align: center;
  padding: 40px 20px;
  color: #888;
  font-size: 1.1rem;
}
.partner-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}
.partner-option-card {
  background: #fff;
  border: 2px solid #e0e8f0;
  border-radius: 8px;
  padding: 30px 25px;
}
.partner-option-card h3 {
  color: #15803D;
  margin-bottom: 12px;
  font-size: 1.2rem;
}
.partner-option-card p {
  color: #555;
  margin-bottom: 15px;
  font-size: 0.95rem;
  line-height: 1.6;
}
.partner-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  font-size: 0.95rem;
  color: #333;
}
.partner-form input[type="text"],
.partner-form input[type="email"],
.partner-form input[type="tel"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}
.partner-form button[type="submit"] {
  background-color: #007BFF;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}
.partner-form button[type="submit"]:hover {
  background-color: #0056b3;
}
.partner-form .form-note {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 15px;
}
.partner-success-message {
  background: #d4edda;
  color: #155724;
  padding: 15px 20px;
  border-radius: 4px;
  border: 1px solid #c3e6cb;
  font-size: 1rem;
  line-height: 1.6;
}
.partner-just-me-link {
  display: inline-block;
  margin-top: 10px;
  background-color: #007BFF;
  color: #fff;
  padding: 10px 18px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1rem;
}
.partner-just-me-link:hover {
  background-color: #0056b3;
}

/* FAQ accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-list details {
  border-bottom: 1px solid #e0e8f0;
}
.faq-list summary {
  font-size: 1.15rem;
  font-weight: 600;
  color: #15803D;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::before {
  content: "+";
  display: inline-block;
  width: 24px;
  font-size: 1.3rem;
  color: #15803D;
  transition: transform 0.2s;
}
.faq-list details[open] summary::before {
  content: "\2212";
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list details p {
  padding: 0 0 18px 24px;
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
  max-width: 720px;
}

/* Report showcase — side-by-side text + image */
.report-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  max-width: 1000px;
  margin: 15px auto 0;
}
.report-showcase-text h3 {
  color: #15803D;
  margin-bottom: 8px;
  font-size: 1.2rem;
}
.report-showcase-text p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}
.report-showcase-image img {
  width: 100%;
  border-radius: 8px;
}

/* Screenshots inside feature cards */
.feature-card .section-screenshot {
  margin-top: 12px;
  max-width: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .report-showcase {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   BLOG ARTICLE ENHANCEMENTS
   ============================================================ */

/* --- Article metadata bar --- */
.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 0.88rem;
  color: #666;
  border-top: 1px solid #e0e8f0;
  border-bottom: 1px solid #e0e8f0;
  padding: 10px 0;
  margin: 18px 0 28px;
}
.article-meta-bar .meta-category {
  font-weight: 600;
  color: #15803D;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
}
.article-meta-bar .meta-sep {
  color: #ccc;
}
.article-meta-bar .meta-reading-time::before {
  content: "⏱ ";
}

/* --- Callout / disclaimer box --- */
.bio-callout {
  background: #f0fdf4;
  border-left: 4px solid #15803D;
  border-radius: 0 6px 6px 0;
  padding: 20px 24px;
  margin: 40px 0 24px;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.7;
}
.bio-callout strong {
  display: block;
  margin-bottom: 6px;
  color: #15803D;
  font-size: 1rem;
}

/* --- Related articles section --- */
.related-articles {
  margin: 48px 0 24px;
  padding-top: 28px;
  border-top: 2px solid #e0e8f0;
}
.related-articles h3 {
  font-size: 1.1rem;
  color: #15803D;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.related-article-card {
  background: #f8fafc;
  border: 1px solid #e0e8f0;
  border-radius: 6px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: block;
}
.related-article-card:hover {
  border-color: #15803D;
  box-shadow: 0 2px 8px rgba(21,128,61,0.1);
  text-decoration: none;
}
.related-article-card .rac-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: #15803D;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.related-article-card .rac-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #15803D;
  line-height: 1.4;
}
@media (max-width: 640px) {
  .related-articles-grid {
    grid-template-columns: 1fr;
  }
}

/* --- "Start Here" index block on blog.php --- */
.start-here-block {
  background: linear-gradient(135deg, #15803D 0%, #22C55E 100%);
  color: #fff;
  border-radius: 10px;
  padding: 36px 40px;
  margin: 0 0 48px;
}
.start-here-block h2 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.start-here-block p {
  color: rgba(255,255,255,0.88);
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.65;
}
.start-here-block .start-here-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.start-here-block .start-here-links a {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 5px;
  padding: 9px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.start-here-block .start-here-links a:hover {
  background: rgba(255,255,255,0.28);
  text-decoration: none;
}

/* --- Blog index article list enhancements --- */
.blog-category-section {
  margin-bottom: 40px;
}
.blog-category-section h3 {
  font-size: 1.05rem;
  color: #15803D;
  border-bottom: 2px solid #e0e8f0;
  padding-bottom: 8px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.blog-article-item {
  padding: 10px 0;
  border-bottom: 1px solid #dcfce7;
}
.blog-article-item a {
  font-weight: 600;
  color: #15803D;
  font-size: 0.98rem;
  text-decoration: none;
}
.blog-article-item a:hover {
  text-decoration: underline;
}
.blog-article-excerpt {
  font-size: 0.88rem;
  color: #666;
  margin-top: 3px;
  line-height: 1.5;
}