/* ============================================================
   WSysFarm — marketing landing page
   Editorial-agrarian SaaS: Fraunces display + Albert Sans body,
   portal-green family with a warm wheat accent.
   ============================================================ */

:root {
  --green: #2e6b34;
  --green-dark: #1f4a24;
  --green-deep: #14301a;
  --green-soft: #5a8f51;
  --bg: #f4f6f2;
  --card: #ffffff;
  --ink: #1d241c;
  --muted: #6b7567;
  --line: #dde3d8;
  --chip: #e7eee4;
  --tint: #eaf0e6;
  --wheat: #d9a441;
  --wheat-deep: #8a6418;
  --cream: #f7f3e8;
  --warn: #b3261e;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Albert Sans", "Segoe UI", system-ui, sans-serif;

  --radius: 14px;
  --shadow-lg: 0 24px 60px rgba(20, 48, 26, 0.18);
  --shadow-md: 0 10px 30px rgba(20, 48, 26, 0.10);
  --shell: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font: 16.5px/1.6 var(--font-body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--green); }

:focus-visible {
  outline: 3px solid var(--wheat);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--wheat);
  color: var(--green-deep);
  padding: 10px 18px;
  font-weight: 600;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}
.shell-narrow { max-width: 780px; }

/* ---------------------------------------------------------------
   Type
   --------------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--wheat-deep);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::after {
  content: "";
  height: 1.5px;
  width: 44px;
  background: var(--wheat);
  display: inline-block;
}
.eyebrow-light { color: var(--wheat); }

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  color: var(--green-deep);
  margin: 0 0 18px;
  max-width: 21ch;
}
.section-sub {
  max-width: 56ch;
  color: var(--muted);
  margin: 0 0 38px;
  font-size: 17.5px;
}
.section-sub strong { color: var(--green-dark); }

.br-desk { display: none; }
@media (min-width: 720px) { .br-desk { display: inline; } }

/* ---------------------------------------------------------------
   Buttons
   --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
              background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-wheat {
  background: var(--wheat);
  color: var(--green-deep);
}
.btn-wheat:hover {
  background: #e6b455;
  box-shadow: 0 10px 26px rgba(217, 164, 65, 0.35);
}

.btn-green {
  background: var(--green);
  color: #fff;
}
.btn-green:hover {
  background: var(--green-dark);
  box-shadow: 0 10px 26px rgba(46, 107, 52, 0.30);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: transparent;
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.btn-outline-green {
  border-color: var(--green);
  color: var(--green-dark);
  background: transparent;
}
.btn-outline-green:hover { background: var(--chip); }

.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------------------------------------------------------------
   Header
   --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--green-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-mark { width: 34px; height: 34px; object-fit: contain; }
.logo-word {
  font-family: var(--font-display);
  font-weight: 640;
  font-size: 20px;
  color: #fff;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
}
.site-nav a {
  color: #cfdcc8;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.header-cta { flex: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--green-deep);
    padding: 10px 24px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 10px; font-size: 16px; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */

.hero {
  position: relative;
  background:
    radial-gradient(1100px 540px at 78% -10%, rgba(90, 143, 81, 0.45), transparent 65%),
    linear-gradient(168deg, var(--green-dark) 0%, var(--green-deep) 70%);
  color: #f0f4ec;
  overflow: hidden;
}

.hero-contours, .cta-contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-contours path, .cta-contours path {
  fill: none;
  stroke: rgba(244, 246, 242, 0.10);
  stroke-width: 1.5;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 104px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.3rem);
  font-weight: 640;
  color: #fff;
  margin: 0 0 22px;
}

.hero-sub {
  font-size: 18.5px;
  line-height: 1.65;
  color: #d5e0cf;
  max-width: 52ch;
  margin: 0 0 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.hero-meta {
  font-size: 13.5px;
  color: #a9bba1;
  letter-spacing: 0.02em;
  margin: 0;
}

/* Hero visual: scale scene + phone */

.hero-visual {
  position: relative;
  min-height: 420px;
}

.scale-scene {
  position: absolute;
  left: -28px;
  bottom: 18px;
  width: min(400px, 100%);
}
.sc-plate { fill: #0e2413; }
.sc-plate-hi { fill: rgba(244, 246, 242, 0.12); }
.sc-foot, .sc-post { fill: #0e2413; }
.sc-head { fill: #d9e2d3; }
.sc-lcd { fill: #1d241c; }
.sc-led { fill: var(--wheat); }
.bt-waves path {
  fill: none;
  stroke: var(--wheat);
  stroke-width: 2.4;
  stroke-linecap: round;
  opacity: 0.85;
}
.bt-waves path:nth-child(2) { opacity: 0.55; }
.bt-waves path:nth-child(3) { opacity: 0.3; }

.steer > path, .steer > rect { fill: #7d9a6f; }
.steer .steer-eye { fill: #14301a; }
.steer-tag path { fill: var(--wheat); }

.phone {
  position: absolute;
  right: 6px;
  top: 0;
  width: 212px;
  border-radius: 34px;
  padding: 10px;
  background: #10241455;
  background: linear-gradient(170deg, #2c3a2a, #131f12);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
  animation: phone-drift 7s ease-in-out infinite;
}
@keyframes phone-drift {
  0%, 100% { transform: translateY(0) rotate(1.2deg); }
  50% { transform: translateY(-12px) rotate(1.2deg); }
}

.phone-screen-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 25px;
  background: var(--bg);
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 56px;
    padding-bottom: 72px;
  }
  .hero-visual {
    min-height: 380px;
    max-width: 460px;
  }
}
@media (max-width: 460px) {
  .phone { width: 196px; right: 0; }
  .scale-scene { width: 320px; bottom: 8px; }
}

/* ---------------------------------------------------------------
   Sections
   --------------------------------------------------------------- */

.section { padding: 96px 0; }
.section-tinted { background: var(--tint); }

.section-dark {
  background:
    radial-gradient(900px 480px at 18% 0%, rgba(90, 143, 81, 0.35), transparent 60%),
    linear-gradient(160deg, var(--green-dark), var(--green-deep) 75%);
  color: #dce5d6;
}
.section-dark .section-title { color: #fff; }
.section-dark strong { color: var(--wheat); }

/* ---------------------------------------------------------------
   Steps (How it works)
   --------------------------------------------------------------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding: 0;
  margin: 48px 0 0;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-soft);
}

.step-num {
  position: absolute;
  top: -16px;
  left: 24px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--wheat);
  color: var(--green-deep);
  font-family: var(--font-display);
  font-weight: 640;
  font-size: 17px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(217, 164, 65, 0.4);
}

.step-icon { width: 44px; height: 44px; color: var(--green); margin-bottom: 14px; }
.step-icon svg { width: 100%; height: 100%; }

.step h3 { font-size: 21px; color: var(--green-deep); margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }

@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; gap: 34px; max-width: 480px; }
}

/* ---------------------------------------------------------------
   Feature grid
   --------------------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 46px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover {
  transform: translateY(-4px);
  border-bottom-color: var(--wheat);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--chip);
  border-radius: 12px;
  color: var(--green-dark);
  margin-bottom: 16px;
  transition: transform 0.25s ease, background 0.25s ease;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature:hover .feature-icon {
  transform: rotate(-6deg) scale(1.06);
  background: var(--wheat);
}

.feature h3 { font-size: 18.5px; color: var(--green-deep); margin-bottom: 7px; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

@media (max-width: 1020px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* Real app screenshots */

.app-shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 56px auto 0;
  max-width: 880px;
}
.phone-shot {
  margin: 0;
  text-align: center;
}
.phone-shot img {
  width: 100%;
  height: auto;
  border-radius: 26px;
  border: 6px solid var(--green-deep);
  box-shadow: var(--shadow-md);
  background: var(--card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.phone-shot:hover img {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.phone-shot figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}
.app-shots-note {
  text-align: center;
  margin: 26px 0 0;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--wheat-deep);
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .app-shots { grid-template-columns: 1fr; max-width: 300px; }
}

/* ---------------------------------------------------------------
   Photo bands (duotone, real imagery)
   --------------------------------------------------------------- */

.field-band {
  position: relative;
  min-height: 340px;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.field-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.field-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(20, 48, 26, 0.35) 0%,
    rgba(20, 48, 26, 0.12) 40%,
    rgba(20, 48, 26, 0.74) 100%);
  z-index: -1;
}
.field-band .shell { width: 100%; }
.field-quote {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  color: #fff;
  max-width: 34ch;
  text-wrap: balance;
  margin: 0;
  padding: 40px 0 44px;
  text-shadow: 0 2px 18px rgba(20, 48, 26, 0.6);
}
.field-quote em {
  font-style: normal;
  color: var(--wheat);
}

/* ---------------------------------------------------------------
   Portal teaser
   --------------------------------------------------------------- */

.portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 30px;
  display: grid;
  gap: 14px;
}
.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--muted);
  font-size: 16px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--chip);
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M4 8.5 7 11.5 12.5 5" fill="none" stroke="%232e6b34" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-size: 13px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Browser mock */

.browser {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(0.6deg);
  transition: transform 0.3s ease;
}
.browser:hover { transform: rotate(0deg) translateY(-4px); }

.browser-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--green-deep);
  padding: 10px 14px;
}
.browser-dots { display: inline-flex; gap: 6px; }
.browser-dots i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}
.browser-dots i:first-child { background: var(--wheat); }
.browser-url {
  background: rgba(255, 255, 255, 0.12);
  color: #cfdcc8;
  font-size: 11.5px;
  border-radius: 999px;
  padding: 4px 14px;
  letter-spacing: 0.02em;
}

.browser-shot {
  display: block;
  width: 100%;
  height: auto;
  max-height: 580px;
  object-fit: cover;
  object-position: top;
}

@media (max-width: 980px) {
  .portal-grid { grid-template-columns: 1fr; gap: 40px; }
  .browser { max-width: 560px; }
}

/* ---------------------------------------------------------------
   Plans
   --------------------------------------------------------------- */

.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.plan h3 { font-size: 20px; color: var(--green-deep); }

.plan-price {
  font-family: var(--font-display);
  font-weight: 640;
  font-size: 40px;
  color: var(--green-dark);
  margin: 10px 0 2px;
  line-height: 1;
}
.plan-price span {
  font-size: 15px;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 500;
}

.plan-limit { color: var(--muted); font-size: 14.5px; margin: 4px 0 16px; }
.plan-limit strong { color: var(--ink); }

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 9px;
  font-size: 14.5px;
  color: var(--muted);
  flex: 1;
}
.plan ul li {
  padding-left: 22px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M3.5 8.5 6.5 11.5 12.5 4.5" fill="none" stroke="%23d9a441" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat 0 4px / 14px;
}

.plan .btn { justify-content: center; }

.plan-featured {
  border: 2px solid var(--green);
  box-shadow: var(--shadow-md);
}
.plan-flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
  padding: 4px 14px;
  white-space: nowrap;
}

@media (max-width: 1020px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plan-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------
   Hardware (dark)
   --------------------------------------------------------------- */

.hardware-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}
.hardware-copy p { color: #c4d2bd; font-size: 16.5px; max-width: 54ch; }
.hardware-copy .btn { margin-top: 10px; }

.indicator { width: min(380px, 100%); margin: 0 auto; display: block; }
.ind-body { fill: #dfe7da; }
.ind-lcd { fill: #14301a; }
.ind-digits {
  font: 700 44px "Consolas", monospace;
  fill: #b6e3a8;
  letter-spacing: 4px;
}
.ind-tag {
  font: 700 9px var(--font-body);
  fill: var(--wheat);
  letter-spacing: 1.5px;
}
.ind-btn { fill: #aebfa6; }
.ind-stand { fill: #0e2413; }
.ind-bt circle { fill: var(--wheat); }
.ind-bt path { stroke: var(--green-deep); }

@media (max-width: 880px) {
  .hardware-grid { grid-template-columns: 1fr; gap: 36px; }
  .hardware-visual { order: 2; }
}

/* ---------------------------------------------------------------
   Download
   --------------------------------------------------------------- */

.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 42px;
  max-width: 880px;
}

.dl-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.dl-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--chip);
  border-radius: 14px;
  color: var(--green-dark);
  margin-bottom: 16px;
}
.dl-icon svg { width: 30px; height: 30px; }

.dl-card h3 { font-size: 21px; color: var(--green-deep); margin-bottom: 8px; }
.dl-card p { color: var(--muted); font-size: 15px; margin: 0 0 20px; }

.dl-soon { background: var(--cream); }
.dl-soon .dl-icon { background: #efe6cd; }

@media (max-width: 760px) { .download-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------
   FAQ
   --------------------------------------------------------------- */

.faq-list { margin-top: 38px; display: grid; gap: 12px; }

.faq-list details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 22px;
  transition: border-color 0.2s ease;
}
.faq-list details[open] { border-color: var(--green-soft); }

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16.5px;
  color: var(--green-deep);
  padding: 18px 30px 18px 0;
  list-style: none;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--wheat-deep);
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq-list details p {
  margin: 0;
  padding: 0 0 20px;
  color: var(--muted);
  font-size: 15.5px;
}

/* ---------------------------------------------------------------
   CTA band
   --------------------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 50% 120%, rgba(90, 143, 81, 0.5), transparent 70%),
    linear-gradient(180deg, var(--green-deep), var(--green-dark));
  color: #fff;
  text-align: center;
  padding: 96px 0;
}
.cta-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.cta-band.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 48, 26, 0.82), rgba(20, 48, 26, 0.88));
  z-index: 1;
}
.cta-contours { z-index: 1; }

.cta-inner { position: relative; z-index: 2; }
.cta-band h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: 30px;
}
.cta-band .hero-actions { justify-content: center; }
.cta-band .hero-meta { margin-top: 18px; }

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */

.site-footer {
  background: #0e2413;
  color: #aebfa6;
  padding: 64px 0 0;
  font-size: 14.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}

.footer-brand p { max-width: 38ch; margin: 16px 0 0; line-height: 1.6; }
.footer-brand .logo-word { font-size: 18px; }

.footer-nav { display: grid; gap: 9px; align-content: start; }
.footer-nav h4 {
  margin: 0 0 6px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--wheat);
}
.footer-nav a {
  color: #c4d2bd;
  text-decoration: none;
}
.footer-nav a:hover { color: #fff; text-decoration: underline; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  padding-bottom: 26px;
  font-size: 13.5px;
}
.footer-base a { color: #c4d2bd; }
.footer-base a:hover { color: #fff; }
.photo-credit { color: #7e9176; font-size: 12.5px; }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------------------------------------------------------------
   Scroll reveal
   --------------------------------------------------------------- */

/* Hidden-until-revealed only when the script confirmed it is running (it
   adds .js to <html>); if the script never executes — blocked, failed
   download, ancient browser — everything renders normally. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* no-JS fallback: never hide content if script fails to run */
.no-observer .reveal { opacity: 1; transform: none; }

/* ---------------------------------------------------------------
   Reduced motion
   --------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .phone { animation: none; }
}
