/* -------------------------
   Design Tokens (easy tweaks)
-------------------------- */
:root{
  --bg:#f9f9f9;
  --text:#333;
  --muted:#555;
  --border:#ddd;
  --brand:#6ec487;
  --brand-hover:#5cb976;
  --link:#0074d4;
  --shadow-sm:0 4px 10px rgba(0,0,0,0.05);
  --shadow-md:0 6px 14px rgba(0,0,0,0.1);
}

/* General Page Styles */
*{box-sizing:border-box}
html{-webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale}
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
}

/* Layout Container */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(1rem, 2vw, 1.5rem);
}

/* Logo Header */
.logo-header {
  text-align: center;
  margin-bottom: 0.25rem;
}

.logo-image {
  width: 500px;
  height: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

/* Pricing Section */
.pricing {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  background-color: var(--bg);
  padding: 40px 20px;
}

.plan {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  width: 280px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.plan-icon {
  width: 60px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin-bottom: 15px;
  image-rendering: -webkit-optimize-contrast;
}

.plan h2 {
  font-size: 1.25rem;
  margin: 10px 0;
}

.plan p {
  margin: 6px 0;
  color: var(--muted);
}

.price {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 12px 0;
  color: #222;
}

/* Subscribe Buttons */
.subscribe-button {
  display: inline-block;
  padding: 12px 20px;
  background-color: var(--brand);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  transition: background-color 0.2s ease, transform 0.06s ease;
  outline: none;
}

.subscribe-button:hover { background-color: var(--brand-hover); }
.subscribe-button:active{ transform: translateY(1px); }
.subscribe-button:focus-visible{
  outline: 3px solid color-mix(in oklab, var(--brand) 60%, white);
  outline-offset: 2px;
}

/* Highlighted Plan (Standard) */
.highlight {
  border: 2px solid var(--brand);
  box-shadow: var(--shadow-md);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  white-space: nowrap;
}

/* --- Testimonials --- */
.testimonials { background: var(--bg); }
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 18px;
}
.review-stars {
  font-size: 1.1rem;
  line-height: 1;
  margin-bottom: 10px;
}
.review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.review-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.review-author { line-height: 1.2; }
.review-handle { color: var(--muted); font-size: 0.95rem; }
.review-text { color: var(--text); line-height: 1.6; margin: 0; }

/* --- Compact FAQ (Homepage) --- */
.faq-compact { background: var(--bg); }
.faq-compact .faq-compact-title {
  text-align: center;
  font-size: 1.6rem;
  margin: 0 0 0.75rem;
}

.faq-accordion.compact { display: grid; gap: 12px; }
.faq-accordion.compact .faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* Smaller, tighter buttons than full FAQ page */
.faq-accordion.compact .faq-question {
  appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 12px 40px 12px 14px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  position: relative;
}
.faq-accordion.compact .faq-question:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--brand) 60%, white);
  outline-offset: 2px;
}
.faq-accordion.compact .faq-question::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform .2s ease;
  font-size: 0.95rem;
  color: #666;
}
.faq-accordion.compact .faq-question[aria-expanded="true"]::after {
  transform: translateY(-50%) rotate(180deg);
}

.faq-accordion.compact .faq-answer {
  padding: 0 14px 12px;
  color: var(--muted);
}
.faq-accordion.compact .faq-answer p,
.faq-accordion.compact .faq-answer ul { margin: 0; line-height: 1.6; }

/* Footer */
.footer {
  margin-top: 1.5rem;
  text-align: center;
}
.footer a{ color: var(--link); }

/* Responsive Design */
@media (max-width: 900px) {
  .pricing { gap: 15px; }
  .plan { width: 45%; } /* 2 per row on tablets */
}

@media (min-width: 900px) {
  /* 2-column reviews on desktop */
  .reviews-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .highlight {
    transform: scale(1.05);
    z-index: 2;
    order: 2; /* force highlight to middle in row of 3 */
  }
  .plan:first-child { order: 1; }
  .plan:last-child  { order: 3; }
  .faq-compact { margin-bottom: 1rem; }
}

/* ---- MOBILE VIEW FIXED ---- */
@media (max-width: 600px) {
  .container {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .logo-header {
    margin-bottom: 0.5rem;
  }

  .pricing {
    flex-direction: column;
    align-items: stretch; /* let cards fill width like testimonials */
    gap: 16px;
    margin-top: 0.5rem;
    padding-top: 0;
    /* match .container side padding so edges align */
    padding-inline: clamp(1rem, 2vw, 1.5rem);
    padding-bottom: 0.5rem;
  }

  .plan {
    width: 100%;           /* same width as review cards */
    margin: 0;
    box-sizing: border-box;
  }

  /* promo line spacing down to testimonials */
  .special-offer {
    margin-bottom: 0.5rem;
  }

  /* keep homepage FAQ tight above footer on mobile */
  .faq-compact {
    margin-bottom: 0.5rem;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce){
  * { animation: none !important; transition: none !important; }
  .plan:hover, .highlight { transform: none !important; }
}
