/* ==========================================================================
   LawnLeaks — hand-written CSS (no framework, no build step)
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0c1f14;
  --ink-soft: #1a3324;
  --ink-mute: #4a6754;
  --paper: #f2f7f3;
  --mist: #e4efe6;
  --leaf: #14532d;
  --blade: #3f8f5a;
  --lime: #a3e635;
  --amber: #f59e0b;
  --rust: #c2410c;
  --line: rgba(20, 83, 45, 0.14);
  --white: #ffffff;

  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.625rem;
  --fs-2xl: 2.125rem;
  --fs-hero: clamp(2.75rem, 8vw, 5.5rem);

  --space-1: 0.375rem;
  --space-2: 0.75rem;
  --space-3: 1.25rem;
  --space-4: 2rem;
  --space-5: 3.25rem;
  --space-6: 5rem;

  --radius: 12px;
  --radius-sm: 8px;
  --container: 72rem;
  --shadow: 0 1px 2px rgba(12, 31, 20, 0.06), 0 16px 40px -20px rgba(12, 31, 20, 0.28);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@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;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(163, 230, 53, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(20, 83, 45, 0.08), transparent 50%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 var(--space-2); letter-spacing: -0.02em; font-family: var(--font-display); }
h1 { font-size: var(--fs-hero); font-weight: 600; }
h2 { font-size: var(--fs-2xl); font-weight: 600; }
h3 { font-size: var(--fs-lg); font-weight: 600; }
p  { margin: 0 0 var(--space-3); }
a  { color: var(--leaf); text-underline-offset: 3px; }
a:hover { color: var(--blade); }
ul, ol { margin: 0 0 var(--space-3); padding-left: 1.35em; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--ink); color: var(--white); padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { left: .75rem; top: .75rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 650; font-size: var(--fs-sm); line-height: 1.2;
  padding: .85em 1.4em; border-radius: var(--radius-sm); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--lime); color: var(--ink); }
.btn-primary:hover { background: #b6f04a; color: var(--ink); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.12); color: var(--white); border-color: rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); color: var(--white); }
.btn-dark { background: var(--leaf); color: var(--paper); }
.btn-dark:hover { background: var(--ink-soft); color: var(--paper); }

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 40;
}
.site-header.is-solid {
  position: fixed;
  background: rgba(242, 247, 243, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-solid .brand-name,
.site-header.is-solid .nav-links a,
.site-header.is-solid .nav-toggle { color: var(--ink); }
.site-header.is-solid .nav-links a:hover { color: var(--leaf); }
.site-header.is-solid .brand-name em { color: var(--blade); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  height: 4.5rem;
}
.nav-right { display: flex; align-items: center; gap: .75rem; }
.nav-cta { display: none; }
@media (min-width: 640px) { .nav-cta { display: inline-flex; } }

.brand {
  display: flex; align-items: center; gap: .65rem;
  text-decoration: none; color: var(--white);
}
.brand:hover { color: var(--white); text-decoration: none; }
.brand-mark { width: 2.25rem; height: 2.25rem; flex-shrink: 0; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand-name em { font-style: normal; color: var(--lime); }

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.75rem;
  font-size: var(--fs-sm);
  font-weight: 550;
}
.nav-links a {
  color: rgba(255,255,255,.9);
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--lime); }
@media (min-width: 768px) { .nav-links { display: flex; } }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border: 0; background: transparent;
  color: var(--white); cursor: pointer; border-radius: var(--radius-sm);
}
@media (min-width: 768px) { .nav-toggle { display: none; } }

.mobile-menu {
  border-top: 1px solid rgba(255,255,255,.12);
  background: rgba(12, 31, 20, 0.96);
  padding: var(--space-3);
  backdrop-filter: blur(10px);
}
.mobile-menu a {
  display: block;
  padding: .7rem 0;
  color: rgba(255,255,255,.9);
  text-decoration: none;
  font-size: 1.05rem;
}
.site-header.is-solid .mobile-menu {
  background: rgba(242, 247, 243, 0.98);
  border-top-color: var(--line);
}
.site-header.is-solid .mobile-menu a { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  color: var(--white);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: hero-drift 28s ease-in-out infinite alternate;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12,31,20,.55) 0%, rgba(12,31,20,.32) 42%, rgba(12,31,20,.8) 100%),
    linear-gradient(90deg, rgba(12,31,20,.5) 0%, transparent 58%);
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  padding-top: 7rem;
  padding-bottom: 4rem;
}
.hero-brand {
  margin: 0 0 var(--space-3);
  font-size: var(--fs-hero);
  font-weight: 600;
  animation: rise-in .9s cubic-bezier(.22,1,.36,1) both;
}
.hero-brand em { font-style: normal; color: var(--lime); }
.hero-headline {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  font-weight: 500;
  line-height: 1.25;
  animation: rise-in .9s cubic-bezier(.22,1,.36,1) .12s both;
}
.hero-lead {
  margin: var(--space-3) 0 0;
  max-width: 32rem;
  color: rgba(255,255,255,.86);
  font-size: 1.05rem;
  animation: rise-in .9s cubic-bezier(.22,1,.36,1) .22s both;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: .75rem;
  margin-top: var(--space-4);
  animation: rise-in .9s cubic-bezier(.22,1,.36,1) .32s both;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes hero-drift {
  from { transform: scale(1.04); }
  to   { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media img { animation: none; }
}

/* ---------- Sections ---------- */
.section { padding: var(--space-6) 0; }
.section-alt { background: rgba(228, 239, 230, 0.55); }
.section-kicker {
  margin: 0;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blade);
}
.section-title { margin-top: var(--space-2); max-width: 36rem; }
.section-lead {
  margin-top: var(--space-3);
  max-width: 36rem;
  color: var(--ink-mute);
  font-size: 1.05rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Leak list ---------- */
.leak-list { margin-top: var(--space-5); }
.leak-row {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease;
}
.leak-row:hover { border-top-color: rgba(20, 83, 45, 0.35); color: inherit; text-decoration: none; }
.leak-row:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 720px) {
  .leak-row {
    grid-template-columns: 8rem 1fr auto;
    align-items: baseline;
    gap: var(--space-4);
  }
}
.leak-cost {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--rust);
}
.leak-title {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  transition: color .15s ease;
}
.leak-row:hover .leak-title { color: var(--leaf); }
.leak-blurb {
  margin: .4rem 0 0;
  max-width: 38rem;
  color: var(--ink-mute);
  font-size: var(--fs-sm);
}
.leak-link {
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--leaf);
  white-space: nowrap;
}
.leak-row:hover .leak-link { text-decoration: underline; }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-5);
}
@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.55);
}
.step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--blade);
  line-height: 1;
}
.step h3 { margin-top: var(--space-2); }
.step p { margin: var(--space-2) 0 0; color: var(--ink-mute); font-size: var(--fs-sm); }

/* ---------- Article ---------- */
.page-hero {
  padding: 8rem 0 3rem;
  background:
    linear-gradient(180deg, rgba(20,83,45,.08), transparent 70%),
    var(--paper);
}
.page-hero .kicker {
  margin: 0 0 var(--space-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blade);
}
.page-hero h1 {
  max-width: 40rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
}
.page-hero .lead {
  max-width: 36rem;
  margin-top: var(--space-3);
  color: var(--ink-mute);
  font-size: 1.1rem;
}
.meta-row {
  display: flex; flex-wrap: wrap; gap: .75rem 1.25rem;
  margin-top: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--ink-mute);
}
.meta-pill {
  display: inline-flex;
  padding: .25rem .65rem;
  border-radius: 999px;
  background: rgba(194, 65, 12, 0.1);
  color: var(--rust);
  font-weight: 650;
  font-size: var(--fs-xs);
}

.article-body { padding: 0 0 var(--space-6); }
.prose { max-width: 40rem; margin-inline: auto; }
.prose h2 { margin-top: var(--space-5); }
.prose h3 { margin-top: var(--space-4); }
.prose p, .prose li { color: var(--ink-soft); }
.prose p { margin-top: 1.15rem; }
.prose ul { margin-top: 1rem; }
.prose strong { color: var(--ink); font-weight: 650; }

.callout {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
}
.callout p { margin: 0; color: var(--ink-soft); }

.soft-cta {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}
.soft-cta h2 { font-size: 1.55rem; }
.soft-cta p { color: var(--ink-mute); max-width: 34rem; }
.soft-cta .btn { margin-top: var(--space-3); }

.article-nav {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}
.article-nav a {
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.article-nav span {
  display: block;
  margin-bottom: .2rem;
  font-size: var(--fs-xs);
  font-weight: 550;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- Simple pages ---------- */
.simple-page { padding: 8rem 0 var(--space-6); }
.simple-page h1 { max-width: 36rem; font-size: clamp(2rem, 4vw, 3rem); }
.simple-page .prose { margin-top: var(--space-4); margin-inline: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(242, 247, 243, 0.78);
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-grid {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-5) 0;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; }
}
.footer-brand .brand { color: var(--paper); }
.footer-brand .brand-name em { color: var(--lime); }
.footer-tagline {
  margin: var(--space-3) 0 0;
  max-width: 18rem;
  font-size: var(--fs-sm);
  color: rgba(242, 247, 243, 0.65);
  line-height: 1.55;
}
.footer-tagline a { color: var(--lime); }
.footer-col h2 {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lime);
}
.footer-col a {
  display: block;
  margin-top: .7rem;
  color: rgba(242, 247, 243, 0.72);
  text-decoration: none;
  font-size: var(--fs-sm);
}
.footer-col a:hover { color: var(--lime); }
.footer-note {
  margin: var(--space-3) 0 0;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: rgba(242, 247, 243, 0.62);
}
.footer-note a { color: var(--lime); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: var(--space-3) 0;
  font-size: var(--fs-xs);
  color: rgba(242, 247, 243, 0.45);
}
.footer-bottom p { margin: 0; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 -12px 40px rgba(0,0,0,.25);
}
.cookie-banner.is-visible { display: block; }
.cookie-banner-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-3) 0;
}
@media (min-width: 768px) {
  .cookie-banner-inner {
    flex-direction: row;
    align-items: center;
  }
}
.cookie-banner p {
  margin: 0;
  flex: 1;
  font-size: var(--fs-sm);
  color: rgba(242, 247, 243, 0.8);
}
.cookie-banner a { color: var(--lime); }
.cookie-actions { display: flex; gap: .5rem; flex-shrink: 0; }
.cookie-actions .btn { border-radius: var(--radius-sm); }
.btn-cookie-decline {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255,255,255,.3);
}
.btn-cookie-decline:hover { background: rgba(255,255,255,.1); color: var(--paper); }

/* ---------- 404 ---------- */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8rem var(--space-3) var(--space-6);
}
.error-page h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
.error-page p { color: var(--ink-mute); max-width: 28rem; margin-inline: auto; }
