/* ============================================================
   CYF – Shared Stylesheet
   ============================================================ */

:root {
  --green: #6eb323;
  --dark-green: #11462e;
  --black: #171717;
  --light-green-bg: #f7fffb;
  --card-border: #cbe6cb;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: var(--black);
  background: #fff;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Header & Nav ─────────────────────────────────────────── */

header {
  background: white;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 100;
}

header img.logo {
  height: 72px;
}

nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

nav a.nav-link {
  color: var(--black);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  transition: color 0.2s;
}

nav a.nav-link:hover,
nav a.nav-link[aria-current="page"] {
  color: var(--dark-green);
}

.cta-button {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background-color: var(--dark-green);
  color: white !important;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.cta-button:hover {
  background-color: #0d3b26;
}

.cta-button.green {
  background-color: var(--green);
}

.cta-button.green:hover {
  background-color: #5a9a1c;
}

/* ── Hero (home page) ─────────────────────────────────────── */

.hero {
  position: relative;
  padding: 12rem 2rem;
  background: url("farm_bg.jpg") center center / cover no-repeat;
  color: white;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.hero .content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-family: "Slabo 13px", serif;
  font-size: 3.25rem;
  font-weight: 400;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.92;
  max-width: 520px;
}

.hero .cta-button {
  font-size: 1.1rem;
  padding: 0.9rem 2.25rem;
}

.hero-aside {
  margin-top: 1.5rem;
  color: white;
  font-size: 1rem;
  opacity: 0.9;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-aside:hover {
  opacity: 1;
}

/* ── Page hero (non-home pages) ───────────────────────────── */

.page-hero {
  background: var(--dark-green);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.page-hero h1 {
  font-family: "Slabo 13px", serif;
  font-size: 2.75rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.page-hero p {
  font-size: 1.1rem;
  opacity: 0.82;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Section basics ───────────────────────────────────────── */

.section {
  padding: 4.5rem 0;
}

.section.alt {
  background: var(--light-green-bg);
}

.section.dark {
  background: var(--dark-green);
  color: white;
}

.section-heading {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--black);
  text-align: center;
}

.section-heading.light {
  color: white;
}

.section-subheading {
  text-align: center;
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 3rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.section-subheading.light {
  color: rgba(255, 255, 255, 0.78);
}

/* ── Pain points ──────────────────────────────────────────── */

.pain-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.pain-card {
  background: white;
  border-left: 4px solid var(--green);
  padding: 1.75rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pain-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--dark-green);
}

.pain-card p {
  font-size: 0.97rem;
  color: #444;
  line-height: 1.65;
}

/* ── Team ─────────────────────────────────────────────────── */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 5rem;
  max-width: 900px;
  margin: 0 auto;
}

.team-card {
  text-align: center;
}

.team-photo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #dde8d8;
  margin: 0 auto 1.25rem;
}

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 1.25rem;
}

.team-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
}

.team-role {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.team-card > p:last-child {
  font-size: 0.97rem;
  color: #444;
  line-height: 1.65;
  text-align: left;
}

/* ── Feature cards (Why CYF) ──────────────────────────────── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2rem 1.5rem;
  background: white;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.feature-card img {
  height: 44px;
  margin-bottom: 1rem;
}

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

.feature-card p {
  font-size: 0.97rem;
  color: #444;
}


/* ── Demo chart illustration ──────────────────────────────── */

.demo-wrap {
  max-width: 820px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.demo-wrap.visible {
  opacity: 1;
  transform: translateY(0);
}

.demo-panel {
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(110, 179, 35, 0.28);
  border-radius: 12px;
  overflow: hidden;
}

.demo-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.demo-device {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  font-size: 0.93rem;
}

.demo-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6eb323;
  flex-shrink: 0;
  animation: demo-pulse 2.2s ease-in-out infinite;
}

@keyframes demo-pulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.82); }
}

.demo-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.demo-badge {
  padding: 0.18rem 0.55rem;
  border: 1px solid rgba(110, 179, 35, 0.35);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  transition: background 0.35s, color 0.35s, border-color 0.35s;
  letter-spacing: 0.03em;
}

.demo-badge.active {
  background: #6eb323;
  border-color: #6eb323;
  color: #fff;
}

.demo-farm-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.38);
  margin-left: 0.2rem;
}

.demo-chart {
  padding: 0.5rem 0.5rem 0;
}

.demo-chart svg {
  width: 100%;
  height: auto;
  display: block;
}

.demo-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.7rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  flex-wrap: wrap;
}

.demo-stat {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.demo-stat--right {
  margin-left: auto;
}

.demo-stat-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: #6eb323;
}

.demo-stat-lbl {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.38);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 600px) {
  .demo-farm-label,
  .demo-stat--right { display: none; }
  .demo-hdr { padding: 0.6rem 0.9rem; }
  .demo-stats { gap: 1.25rem; }
}

/* ── Device ticker ────────────────────────────────────────── */

.device-ticker {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

.device-ticker-word {
  display: inline;
  font-weight: 600;
  color: white;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.device-ticker-note {
  font-size: 0.75rem;
  font-weight: 400;
  color: #6eb323;
  margin-left: 0.35em;
}

/* ── Pricing teaser ───────────────────────────────────────── */

.pricing-cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.pricing-card {
  background: white;
  border: 2px solid var(--card-border);
  border-radius: 10px;
  padding: 2rem 2.5rem;
  text-align: center;
  min-width: 210px;
}

.pricing-card h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #777;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.pricing-card .price {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--dark-green);
  line-height: 1.1;
}

.pricing-card .price-note {
  font-size: 0.88rem;
  color: #555;
  margin-top: 0.35rem;
}

.pricing-footnote {
  text-align: center;
  font-size: 0.88rem;
  color: #666;
  margin-bottom: 1.75rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.text-center {
  text-align: center;
}

/* ── Testimonials (hidden by default) ─────────────────────── */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  border-top: 3px solid var(--green);
}

.testimonial-card blockquote {
  font-size: 1.02rem;
  line-height: 1.65;
  color: #333;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.testimonial-card .attribution {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--dark-green);
}

/* ── CTA band ─────────────────────────────────────────────── */

.cta-section {
  background: var(--green);
  color: white;
  padding: 4.5rem 2rem;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.cta-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.cta-section p {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  opacity: 0.92;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .cta-button {
  background: var(--dark-green);
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

.cta-section .cta-button:hover {
  background: #0d3b26;
}

/* ── Footer ───────────────────────────────────────────────── */

footer {
  background: #1a1a1a;
  color: #aaa;
  padding: 2.5rem 2rem;
  text-align: center;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin-bottom: 1.25rem;
}

footer a {
  color: #9ecf6a;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}

footer a:hover {
  color: white;
}

footer img.footer-icon {
  height: 15px;
  filter: brightness(0) invert(0.65);
}

.copyright {
  color: #555;
  font-size: 0.82rem;
  margin-top: 0.5rem;
}

/* ── How It Works page ────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  counter-reset: step-counter;
}

.step {
  background: white;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 2rem 1.75rem;
  position: relative;
  counter-increment: step-counter;
}

.step::before {
  content: counter(step-counter);
  display: block;
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--dark-green);
}

.step p {
  font-size: 0.97rem;
  color: #444;
  line-height: 1.65;
}

.faq {
  max-width: 720px;
  margin: 0 auto;
}

details.faq-item {
  border-bottom: 1px solid #e0e0e0;
}

details.faq-item summary {
  padding: 1.25rem 0;
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--black);
  user-select: none;
}

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

details.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--green);
  flex-shrink: 0;
  margin-left: 1rem;
  line-height: 1;
}

details.faq-item[open] summary::after {
  content: "−";
}

details.faq-item p {
  padding: 0 0 1.5rem 0;
  color: #444;
  line-height: 1.7;
  font-size: 0.97rem;
}

/* ── Pricing page ─────────────────────────────────────────── */

.monthly-fee-block {
  text-align: center;
  padding: 1rem 0 2rem;
}

.big-price {
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--dark-green);
  line-height: 1;
}

.big-price sup {
  font-size: 2rem;
  vertical-align: super;
}

.big-price-label {
  font-size: 1rem;
  color: #666;
  margin-top: 0.35rem;
}

.example-box {
  background: var(--light-green-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 1.75rem 2rem;
  max-width: 520px;
  margin: 2rem auto 0;
  text-align: center;
}

.example-box p {
  color: #444;
  line-height: 1.7;
  font-size: 0.97rem;
}

.example-box strong {
  color: var(--dark-green);
}

.hardware-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.hardware-card {
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 1.5rem;
  background: white;
}

.hardware-card h3 {
  font-size: 1.05rem;
  color: var(--dark-green);
  margin-bottom: 0.4rem;
}

.hardware-card p {
  font-size: 0.93rem;
  color: #555;
  line-height: 1.6;
}

/* ── Videos page ──────────────────────────────────────────── */

.videos-empty {
  text-align: center;
  padding: 6rem 2rem;
}

.videos-empty h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--dark-green);
}

.videos-empty p {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 2rem;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 768px) {
  header {
    padding: 0.75rem 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  header img.logo {
    height: 56px;
  }

  nav a.nav-link {
    display: none;
  }

  .hero {
    padding: 8rem 1.5rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .big-price {
    font-size: 3.25rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.85rem;
  }

  .section-heading {
    font-size: 1.65rem;
  }

  .cta-section h2 {
    font-size: 1.65rem;
  }
}
