/* =====================================================================
   Fernly marketing site styles. CSP-friendly: no inline anything.
   ===================================================================== */

:root {
  --green-900: #1f3d27;
  --green-700: #2f6f3e;
  --green-500: #4a9357;
  --green-100: #e0efe1;
  --cream:     #f5f1e8;
  --cream-2:   #faf7ef;
  --ink:       #1a2118;
  --ink-2:     #455045;
  --line:      #e6e0cf;
  --amber:     #d98e2b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
code { background: var(--cream-2); padding: 1px 6px; border-radius: 4px; font-size: 0.9em; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
header.site {
  background: rgba(245, 241, 232, 0.85);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand {
  font-weight: 800; font-size: 22px; color: var(--green-900);
  letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px;
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 16px;
}
.nav-links a {
  color: var(--ink-2); margin-left: 28px; font-weight: 500; font-size: 15px;
}
.nav-links a:hover, .nav-links a.nav-active { color: var(--green-900); text-decoration: none; }
.nav-cta {
  display: inline-block; margin-left: 28px; padding: 9px 18px; border-radius: 8px;
  background: var(--green-700); color: #fff !important; font-weight: 600; font-size: 14px;
}
.nav-cta:hover { background: var(--green-900); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 10px;
  background: var(--green-700); color: #fff; font-weight: 600; font-size: 16px;
  border: 0; cursor: pointer; transition: background .15s ease, transform .1s ease;
  text-decoration: none;
}
.btn:hover { background: var(--green-900); text-decoration: none; }
.btn:active { transform: translateY(1px); }
/* Give buttons breathing room when they follow a paragraph or lede. */
p + .btn,
.lede + .btn,
ul + .btn,
hr + .btn { margin-top: 20px; }
.btn-ghost {
  background: transparent; color: var(--green-900);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: #fff; border-color: var(--green-700); color: var(--green-900); }
.btn-amber { background: var(--amber); color: #fff; }
.btn-amber:hover { background: #b87523; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
section.tight { padding: 56px 0; }
section.cream-2 { background: var(--cream-2); }
section.gradient-cream {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  position: relative; overflow: hidden;
}
section.dark-green {
  background: var(--green-900);
  color: #e7eee7;
  position: relative;
  overflow: hidden;
}

h1, h2, h3 { color: var(--green-900); letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; margin: 0 0 20px; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; margin: 0 0 18px; }
h3 { font-size: 22px; font-weight: 700; margin: 0 0 10px; }
.lede { font-size: 19px; color: var(--ink-2); max-width: 640px; margin: 0; }
.lede-centred { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600;
  font-size: 12px; color: var(--green-700);
  background: var(--green-100); padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.muted { color: var(--ink-2); }
.text-centre { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.max-640 { max-width: 640px; }
.max-680 { max-width: 680px; }
.max-720 { max-width: 720px; }
.max-780 { max-width: 780px; }
.max-920 { max-width: 920px; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2-3-2 { grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.grid-hero { grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.gap-32 { gap: 32px; }
.gap-40 { gap: 40px; }

.card {
  background: #fff; padding: 28px; border-radius: 14px;
  border: 1px solid var(--line);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(31,61,39,0.06); }
.card .icon, .card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--green-100); color: var(--green-700);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
  font-weight: 700;
}
/* ---------- Classier pricing cards ---------- */
.card-pricing {
  padding: 40px 36px;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color .15s ease;
}
.card-pricing:hover { border-color: var(--green-100); }
.card-pricing-highlight {
  border: 1px solid var(--green-100);
  background:
    linear-gradient(180deg, rgba(224,239,225,0.35) 0%, #fff 110px);
}
.card-cta {
  max-width: 780px; padding: 48px; text-align: center;
  border: 1px solid var(--line);
  background:
    radial-gradient(900px circle at 100% 0%, rgba(74,147,87,0.10), transparent 55%),
    #fff;
}
.card-checklist ul { padding-left: 0; color: var(--ink-2); margin: 0; list-style: none; }
.card-checklist li { padding: 2px 0; }

.pricing-row-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.pricing-eyebrow {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-2); margin: 0; font-weight: 600;
}
.pricing-tag {
  display: inline-block;
  padding: 3px 10px; border-radius: 999px;
  background: var(--green-100); color: var(--green-700);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.pricing-amount {
  margin: 0; font-size: 40px; font-weight: 700;
  color: var(--green-900); line-height: 1.05; letter-spacing: -0.02em;
}
.pricing-period {
  font-size: 16px; font-weight: 400; color: var(--ink-2);
  letter-spacing: 0; margin-left: 6px;
}
.pricing-divider { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.pricing-list {
  margin: 0; padding: 0; list-style: none; color: var(--ink-2);
}
.pricing-list li {
  padding: 6px 0 6px 26px;
  position: relative;
  font-size: 15px;
}
.pricing-list li::before {
  content: '';
  position: absolute; left: 0; top: 12px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--green-700);
  border-bottom: 2px solid var(--green-700);
  transform: rotate(-45deg);
}

/* ---------- Hero + browser mockup ---------- */
.hero-cta-row { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-small-note { margin-top: 20px; font-size: 14px; }

.hero-image-wrap { position: relative; }
.hero-image-wrap img {
  width: 100%; border-radius: 14px; display: block;
  box-shadow: 0 18px 60px rgba(31,61,39,0.12);
}
.mockup {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; box-shadow: 0 18px 60px rgba(31,61,39,0.10);
  display: none; /* hidden by default; .mockup-visible or site.js shows it */
}
.mockup-visible { display: block; }
.mockup-bar { display: flex; gap: 6px; padding: 10px 14px; background: #f0ebde; border-bottom: 1px solid var(--line); }
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.mockup-dot-red    { background: #e57272; }
.mockup-dot-amber  { background: #e5b572; }
.mockup-dot-green  { background: #7fc287; }
.mockup-url { margin-left: 14px; font-size: 12px; color: #8a8270; }
.mockup-title { background: #3f6b2e; color: #fff; padding: 14px 18px; font-weight: 700; }
.mockup-body { padding: 18px; }
.mockup-period { margin: 0 0 12px; font-weight: 600; color: var(--green-900); }
.mockup-list { display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: 14px; color: var(--ink-2); }
.mockup-list .ok    { color: #1f6f30; font-weight: 600; }
.mockup-list .warn  { color: #7a5a00; font-weight: 600; }
.mockup-total {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 14px; display: flex; justify-content: space-between;
}
.mockup-total strong { color: var(--green-900); }
.mockup-button {
  margin-top: 14px; width: 100%; padding: 10px;
  background: #3f6b2e; color: #fff; border: 0; border-radius: 6px;
  font-weight: 600; cursor: default;
}

/* ---------- Trust band ---------- */
.trust-band {
  background: var(--green-900); color: #d6e3d6;
  padding: 24px 0;
}
.trust-band .container {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  text-align: center; font-size: 14px;
}
.trust-band strong { color: #fff; display: block; font-size: 22px; }

/* ---------- How it works numbers ---------- */
.step-num {
  font-size: 48px; font-weight: 800; color: var(--green-500); line-height: 1;
}
.step-num-small {
  font-size: 32px; font-weight: 800; color: var(--green-500);
}
.step-row {
  display: grid; grid-template-columns: 60px 1fr; gap: 24px; align-items: start;
  margin-bottom: 40px;
}

/* ---------- Decorative backgrounds ---------- */
.bg-decor {
  position: absolute; inset: 0; pointer-events: none;
}
.bg-decor img { width: 100%; height: 100%; object-fit: cover; }
.bg-decor-soft  { opacity: 0.08; }
.bg-decor-photo { opacity: 0.18; }
.section-inner-relative { position: relative; }

/* ---------- Testimonial ---------- */
.testimonial-quote {
  font-size: 24px; line-height: 1.4; color: #fff; font-weight: 500; margin: 0 0 24px;
}
.testimonial-author {
  margin: 0; color: #a8b6a8; font-size: 14px;
}

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item summary {
  cursor: pointer; font-weight: 600; color: var(--green-900); font-size: 18px;
  list-style: none; display: flex; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev {
  display: inline-block; width: 24px; color: var(--green-500);
  transition: transform .15s ease;
}
.faq-item[open] summary .chev { transform: rotate(90deg); }
.faq-item .answer { margin: 12px 0 0 24px; color: var(--ink-2); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.contact-list {
  margin-top: 32px; display: flex; flex-direction: column; gap: 18px;
}
.contact-label { margin: 0; font-weight: 600; color: var(--green-900); }
.contact-value { margin: 4px 0 0; }

/* ---------- Legal pages ---------- */
.legal { max-width: 780px; }
.legal h2 { margin-top: 40px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 16px 0; }
.legal table th, .legal table td { padding: 10px; border: 1px solid var(--line); text-align: left; }
.legal table thead tr { background: var(--cream-2); }

/* ---------- Pricing page extras ---------- */
.what-feature-card { padding: 24px; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--green-900); color: #d0dccf;
  padding: 60px 0 32px; margin-top: 48px;
}
footer.site h4 {
  color: #fff; margin: 0 0 14px; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
footer.site a { color: #d0dccf; }
footer.site a:hover { color: #fff; }
.footer-cols {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer-bottom {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px; color: #94a496;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.footer-tag { color: #a8b6a8; max-width: 340px; }
.footer-tag strong { color: #fff; }
.footer-address {
  color: #a8b6a8; font-size: 13px; margin-top: 18px;
}

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .grid-3, .grid-2, .grid-4, .grid-2-3-2, .grid-hero,
  .footer-cols, .contact-grid { grid-template-columns: 1fr; }
  .trust-band .container { grid-template-columns: 1fr 1fr; }
  .nav-links a { margin-left: 14px; font-size: 14px; }
  .nav-cta { margin-left: 14px; padding: 7px 14px; }
}
