/* ==========================================================
   Intefern — design system
   ========================================================== */
:root {
  --fern: #2F6B4F;
  --fern-dark: #245540;
  --mint: #E4F1E9;
  --mint-soft: #F2F8F4;
  --ink: #1E2723;
  --ink-soft: #4A5651;
  --muted: #6F7B75;
  --amber: #E8A33D;
  --bg: #FBFCFA;
  --white: #fff;
  --line: #DCE5DF;

  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 72px;
  --sp-7: 104px;

  --r-1: 10px;
  --r-2: 16px;
  --r-3: 26px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(30, 39, 35, .06), 0 1px 1px rgba(30, 39, 35, .04);
  --shadow-2: 0 4px 12px rgba(30, 39, 35, .06), 0 2px 4px rgba(30, 39, 35, .04);
  --shadow-3: 0 24px 56px rgba(30, 39, 35, .12), 0 8px 18px rgba(30, 39, 35, .06);

  --max: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font-head: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; color: var(--ink); }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute;
  left: var(--sp-2);
  top: -80px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--r-pill);
  font-weight: 600;
  transition: top .2s var(--ease);
}
.skip:focus { top: var(--sp-2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 14px max(var(--sp-3), calc((100vw - var(--max)) / 2));
  background: rgba(251, 252, 250, .82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .16em;
  color: var(--ink);
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--fern);
  color: var(--white);
  font-size: 21px;
  letter-spacing: 0;
  box-shadow: var(--shadow-2);
}
.site-header nav { display: flex; align-items: center; gap: var(--sp-4); font-size: 15px; font-weight: 500; }
.site-header nav a:not(.nav-cta) { color: var(--ink-soft); transition: color .2s var(--ease); }
.site-header nav a:not(.nav-cta):hover { color: var(--fern); }
.nav-cta {
  display: inline-flex;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: var(--fern);
  color: var(--white);
  font-weight: 600;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.nav-cta:hover { background: var(--fern-dark); transform: translateY(-2px); box-shadow: var(--shadow-2); }

/* ---------- Layout ---------- */
.section-grid, .reviews, .proof {
  padding: var(--sp-7) max(var(--sp-3), calc((100vw - var(--max)) / 2));
}
.section-grid, .reviews {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--sp-3);
  row-gap: var(--sp-5);
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 var(--sp-3);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--mint);
  color: var(--fern);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.blink-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(232, 163, 61, .25);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; } }

h2 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.05;
  letter-spacing: -.03em;
  margin-bottom: var(--sp-3);
}
h2 em, h1 em { font-style: normal; color: var(--fern); }
h2 span { color: var(--fern); }
h2 u { text-decoration: none; background: linear-gradient(transparent 68%, rgba(232, 163, 61, .45) 68%); }

/* ---------- Hero ---------- */
.hero {
  min-height: 680px;
  align-items: center;
  background:
    radial-gradient(900px 480px at 85% 0%, var(--mint) 0%, transparent 70%),
    var(--bg);
}
.hero-copy { grid-column: 1 / 8; }
h1 {
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1;
  letter-spacing: -.035em;
  margin-bottom: var(--sp-3);
}
.hero-lede { max-width: 520px; font-size: 19px; color: var(--ink-soft); }
.hero-actions { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-4); }
.microcopy { font-size: 14px; line-height: 1.45; color: var(--muted); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  font: 600 16px var(--font-body);
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
}
.button:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); }
.button:disabled { opacity: .6; cursor: wait; transform: none; }
.button-dark { background: var(--fern); color: var(--white); }
.button-dark:hover { background: var(--fern-dark); }
.button-light { background: var(--fern); color: var(--white); }
.button-light:hover { background: var(--fern-dark); }

/* Hero art — diagnostic panel */
.hero-art {
  grid-column: 8 / 13;
  position: relative;
  height: 440px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--r-3);
  background: linear-gradient(155deg, #2A4F3E 0%, var(--ink) 100%);
  color: var(--white);
  box-shadow: var(--shadow-3);
}
.art-label { position: absolute; top: 20px; left: 22px; z-index: 2; font-size: 11px; font-weight: 600; letter-spacing: .14em; color: rgba(255,255,255,.75); }
.art-label span { color: var(--amber); animation: pulse 2s ease-in-out infinite; }
.art-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(228, 241, 233, .35); }
.ring-one { width: 260px; height: 260px; }
.ring-two { width: 350px; height: 350px; border-style: dashed; border-color: rgba(228, 241, 233, .22); }
.art-core {
  position: relative;
  z-index: 1;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--fern);
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 700;
  line-height: .9;
  text-align: center;
  box-shadow: 0 0 0 12px rgba(228, 241, 233, .12);
}
.art-core small { margin-top: 6px; font-family: var(--font-body); font-size: 9px; font-weight: 600; letter-spacing: .16em; }
.crosshair { position: absolute; width: 100%; height: 100%; opacity: .18; }
.crosshair circle, .crosshair line { fill: none; stroke: var(--mint); }
.data-chip {
  position: absolute;
  z-index: 2;
  padding: 10px 14px;
  border-radius: var(--r-1);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
}
.data-chip strong { display: block; margin-top: 2px; font-family: var(--font-head); font-size: 18px; letter-spacing: 0; color: var(--amber); }
.chip-a { top: 24%; right: 7%; }
.chip-b { bottom: 20%; left: 7%; }
.chip-c { bottom: 8%; right: 12%; }

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden;
  white-space: nowrap;
  background: var(--fern);
  color: var(--mint);
  padding: 16px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .22em;
}
.ticker div { display: inline-block; width: max-content; animation: marquee 40s linear infinite; }
.ticker span { display: inline-block; width: 7px; height: 7px; margin: 0 22px; border-radius: 50%; background: var(--amber); font-size: 0; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Signs ---------- */
.signs { background: var(--mint-soft); border-block: 1px solid var(--line); }
.section-intro { grid-column: 1 / 6; }
.section-intro > p:not(.eyebrow) { color: var(--ink-soft); max-width: 400px; }

.signs .button { margin-top: var(--sp-4); }

.leak-list { grid-column: 6 / 13; display: grid; gap: var(--sp-2); }
.leak {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: var(--sp-2);
  align-items: start;
  padding: var(--sp-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  box-shadow: var(--shadow-1);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.leak:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); }
.number {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--mint);
  color: var(--fern);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
}
.leak h3 { font-size: 19px; line-height: 1.25; letter-spacing: -.02em; margin-bottom: 6px; }
.leak p { margin: 0; font-size: 15px; color: var(--ink-soft); }
.status {
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: rgba(232, 163, 61, .18);
  color: #8A5A0C;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
}

/* ---------- How it works ---------- */
.trust > div:first-child { grid-column: 1 / 6; }
.service-cards { grid-column: 6 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.service-cards article {
  padding: var(--sp-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-2);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.service-cards article:hover { transform: translateY(-6px); box-shadow: var(--shadow-3); border-color: var(--fern); }
.service-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: var(--sp-4); border-radius: 14px; background: var(--mint); color: var(--fern); font-size: 24px; }
.card-tag { margin-bottom: 8px; color: var(--amber); font-size: 12px; font-weight: 600; letter-spacing: .12em; }
.service-cards h3 { font-size: 24px; line-height: 1.15; letter-spacing: -.025em; margin-bottom: 12px; }
.service-cards article p:last-child { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* ---------- Promise (dark) ---------- */
.proof { background: var(--ink); color: var(--white); text-align: center; }
.proof .eyebrow { background: rgba(228, 241, 233, .12); color: var(--mint); }
.proof-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: var(--sp-1) var(--sp-4);
  font-family: var(--font-head);
  font-size: clamp(28px, 4.6vw, 58px);
  line-height: 1.1;
  letter-spacing: -.03em;
}
.proof-line strong { font-weight: 700; }
.proof-line strong:last-child { color: var(--amber); }
.proof-line span { font-size: .55em; font-weight: 600; letter-spacing: .12em; color: rgba(255,255,255,.6); }
.proof-note { max-width: 520px; margin: var(--sp-4) auto 0; font-size: 18px; color: rgba(255,255,255,.75); }

/* ---------- Reviews ---------- */
.reviews { background: var(--mint-soft); border-top: 1px solid var(--line); }
.reviews-intro { grid-column: 1 / 6; }
.reviews-intro > p:not(.eyebrow) { color: var(--ink-soft); max-width: 400px; }
.review-grid { grid-column: 6 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.review-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-2);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.review-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-3); }
.review-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(155deg, #2A4F3E, var(--ink));
}
.review-media video { display: block; width: 100%; height: 100%; object-fit: contain; background: transparent; }
.review-body { display: flex; flex-direction: column; flex: 1; padding: var(--sp-3); }
.review-body img {
  align-self: flex-start;
  height: 40px;
  width: auto;
  max-width: 100%;
  padding: 4px 10px;
  margin-bottom: var(--sp-2);
  object-fit: contain;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-1);
}
.review-quote { margin-bottom: var(--sp-3); font-size: 16px; line-height: 1.55; color: var(--ink); }
.review-byline { display: grid; gap: 2px; margin: auto 0 0; padding-top: var(--sp-2); border-top: 1px solid var(--line); font-size: 14px; }
.review-byline strong { font-family: var(--font-head); font-size: 16px; }
.review-byline span { color: var(--muted); }

/* ---------- Contact ---------- */
.contact > div { grid-column: 1 / 6; }
.contact-copy { color: var(--ink-soft); max-width: 420px; }
.contact form, .form-success {
  grid-column: 7 / 13;
  padding: var(--sp-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-3);
}
.contact form { display: flex; flex-direction: column; gap: var(--sp-3); }
.form-success { font-family: var(--font-head); font-size: 22px; font-weight: 600; color: var(--fern); margin: 0; }
.contact label { font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--ink-soft); }
.contact input, .contact textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--r-1);
  font: 400 16px var(--font-body);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.contact input::placeholder, .contact textarea::placeholder { color: #9AA5A0; }
.contact input:hover, .contact textarea:hover { border-color: #B9C7BF; }
.contact input:focus, .contact textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--fern);
  box-shadow: 0 0 0 4px rgba(47, 107, 79, .18);
}
.contact textarea { resize: vertical; min-height: 110px; }
.contact .button { align-self: flex-start; }
#lead-form-status { margin: 0; min-height: 0; font-size: 15px; color: #B3402B; }
#lead-form-status:empty { display: none; }
.form-note { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: var(--sp-4) max(var(--sp-3), calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--muted);
}
footer a { color: var(--fern); font-weight: 600; }
footer a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .section-grid, .reviews, .proof { padding-block: var(--sp-6); }
  .section-grid, .reviews { display: block; }
  .hero { min-height: 0; }
  .hero-copy, .section-intro, .reviews-intro, .contact > div { margin-bottom: var(--sp-5); }
  .hero-art { height: 380px; }
  .service-cards, .review-grid { grid-template-columns: 1fr 1fr; }
  .trust > div:first-child { margin-bottom: var(--sp-5); }
  .site-header nav { gap: var(--sp-2); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header nav a:not(.nav-cta) { display: none; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-art { height: 340px; }
  .ring-two { width: 290px; height: 290px; }
  .ring-one { width: 210px; height: 210px; }
  .service-cards, .review-grid { grid-template-columns: 1fr; }
  .leak { grid-template-columns: 40px 1fr; }
  .status { grid-column: 2; justify-self: start; }
  .contact form, .form-success { padding: var(--sp-3); }
  .contact .button { align-self: stretch; }
  footer { flex-direction: column; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ticker { white-space: normal; text-align: center; }
  .ticker div { width: auto; }
  .ticker div { display: block; max-height: 3.2em; overflow: hidden; }
}
