/* ============================================================================
   home.css — the Meadow homepage.

   Written from scratch. The page it replaces was a capture of another brand's
   homepage with the words swapped: same sections, same order, same paragraphs,
   same illustrations. This one is built around what Meadow actually is — a
   Windows app and a browser extension that sell verified bandwidth delivery,
   and settle the points in USDG — including the parts that are limits rather
   than selling points.

   Colour is the Meadow ramp (see rebrand-lime.js MEADOW_RAMP), not the old
   brand's chartreuse that the rebuilt article shell still carries.
   ========================================================================== */

:root {
  --m-900: #0d3f29;
  --m-800: #145230;
  --m-700: #18653d;
  --m-600: #1d7c4a;
  --m-500: #1d9c57;
  --m-400: #2fbf71;
  --m-300: #4cd689;
  --m-200: #86e4b4;
  --m-100: #bcf0d4;
  --m-50: #e3f8ec;

  --ink: #0b1f17;
  --ink-2: #14241c;
  --paper: #f7fbf8;
  --paper-2: #eef7f1;
  --muted: #55685d;
  --muted-dark: rgba(247, 251, 248, 0.62);
  --line: rgba(11, 31, 23, 0.12);
  --line-dark: rgba(247, 251, 248, 0.14);

  --gold: #ffc94d;
  --gold-soft: #ffd98a;

  --display: 'Sora', ui-sans-serif, system-ui, sans-serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;

  --r-pill: 999px;
  --r-card: 22px;
  --r-sm: 12px;
  --shadow: 0 18px 48px -24px rgba(11, 31, 23, 0.38);
  --wrap: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.mh-wrap { width: min(100% - 44px, var(--wrap)); margin-inline: auto; }

/* ---------------------------------------------------------------- typography */

.mh-h1,
.mh-h2,
.mh-h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
}

.mh-h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
.mh-h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
.mh-h3 { font-size: clamp(1.2rem, 1.9vw, 1.5rem); font-weight: 700; letter-spacing: -0.02em; }

.mh-lede { font-size: clamp(1.02rem, 1.35vw, 1.2rem); color: var(--muted); margin: 20px 0 0; max-width: 34ch; }
.mh-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--m-600);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--r-pill);
  padding: 7px 15px 7px 11px;
}
.mh-eyebrow::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--m-400); box-shadow: 0 0 0 3px rgba(47, 191, 113, 0.22);
}

/* ---------------------------------------------------------------------- nav */

.mh-nav {
  position: sticky; top: 0; z-index: 60;
  padding: 14px 0;
  background: linear-gradient(to bottom, rgba(247, 251, 248, 0.9), rgba(247, 251, 248, 0.72));
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.mh-nav.is-stuck { border-bottom-color: var(--line); box-shadow: 0 10px 30px -26px rgba(11, 31, 23, 0.6); }
.mh-nav__inner {
  display: flex; align-items: center; gap: 26px;
  width: min(100% - 44px, var(--wrap)); margin-inline: auto;
}
.mh-brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.03em; text-decoration: none; }
.mh-brand svg { display: block; flex: none; }
.mh-brand sup { font-size: 9px; font-weight: 600; color: var(--muted); margin-left: 1px; }

.mh-nav__links { display: flex; gap: 4px; margin-left: auto; }
.mh-nav__links a {
  text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  padding: 9px 14px; border-radius: var(--r-pill);
  transition: background 0.18s ease, color 0.18s ease;
}
.mh-nav__links a:hover { background: rgba(29, 156, 87, 0.1); color: var(--m-700); }

.mh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-size: 14.5px; font-weight: 600;
  padding: 12px 22px; border-radius: var(--r-pill);
  border: 1px solid transparent; text-decoration: none; cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.mh-btn:hover { transform: translateY(-1px); }
.mh-btn--dark { background: var(--ink); color: var(--paper); }
.mh-btn--dark:hover { background: var(--m-900); box-shadow: 0 14px 30px -16px rgba(11, 31, 23, 0.7); }
.mh-btn--green { background: var(--m-400); color: var(--ink); }
.mh-btn--green:hover { background: var(--m-300); box-shadow: 0 16px 34px -16px rgba(47, 191, 113, 0.75); }
.mh-btn--ghost { border-color: var(--line-dark); color: var(--paper); }
.mh-btn--ghost:hover { background: rgba(247, 251, 248, 0.1); }
.mh-btn--ghost-dark { border-color: var(--line); color: var(--ink); }
.mh-btn--ghost-dark:hover { background: rgba(11, 31, 23, 0.05); }

/* --------------------------------------------------------------------- hero */

.mh-hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: clamp(72px, 11vw, 132px) 0 clamp(64px, 8vw, 104px);
}
#mhScene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mh-hero__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 8% 12%, rgba(11, 31, 23, 0.94) 0%, rgba(11, 31, 23, 0.62) 42%, rgba(11, 31, 23, 0.1) 78%),
    linear-gradient(to bottom, rgba(11, 31, 23, 0.7) 0%, rgba(11, 31, 23, 0) 26%);
  pointer-events: none;
}
.mh-hero__inner { position: relative; z-index: 1; }
.mh-hero .mh-eyebrow { color: var(--m-200); background: rgba(247, 251, 248, 0.07); border-color: var(--line-dark); }
.mh-hero .mh-eyebrow::before { box-shadow: 0 0 0 3px rgba(76, 214, 137, 0.25); }
.mh-hero .mh-h1 { margin-top: 24px; max-width: 17ch; }
.mh-hero .mh-h1 em { font-style: normal; color: var(--m-300); }
.mh-hero .mh-lede { color: var(--muted-dark); max-width: 46ch; font-size: clamp(1.04rem, 1.4vw, 1.22rem); }
.mh-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.mh-strip {
  display: flex; flex-wrap: wrap; gap: 10px 30px;
  margin-top: 52px; padding-top: 26px;
  border-top: 1px solid var(--line-dark);
  font-size: 14px; color: var(--muted-dark);
}
.mh-strip b { color: var(--paper); font-weight: 600; }
.mh-strip span { display: inline-flex; align-items: center; gap: 9px; }
.mh-strip svg { flex: none; opacity: 0.75; }

/* ------------------------------------------------------------- section heads */

.mh-sec { padding: clamp(72px, 9vw, 118px) 0; }
.mh-sec--paper2 { background: var(--paper-2); }
.mh-sec--dark { background: var(--ink); color: var(--paper); }
.mh-head { max-width: 62ch; }
.mh-head .mh-h2 { margin-top: 16px; }
.mh-head p { color: var(--muted); margin: 18px 0 0; font-size: 1.05rem; }
.mh-sec--dark .mh-head p { color: var(--muted-dark); }
.mh-sec--dark .mh-eyebrow { color: var(--m-200); background: rgba(247, 251, 248, 0.07); border-color: var(--line-dark); }

/* -------------------------------------------------------------------- steps */

.mh-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.mh-step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 30px 28px 32px; position: relative; overflow: hidden;
}
.mh-step::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--m-400), var(--m-200));
}
.mh-step__n {
  font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: 0.06em;
  color: var(--m-600); display: block; margin-bottom: 16px;
}
.mh-step p { margin: 14px 0 0; color: var(--muted); font-size: 15.5px; }
.mh-step code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 13px;
  background: var(--m-50); color: var(--m-800); border-radius: 6px; padding: 2px 6px;
}

/* ------------------------------------------------------------------ clients */

.mh-clients { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 56px; }
.mh-client {
  border: 1px solid var(--line-dark); border-radius: var(--r-card);
  padding: 34px 32px; background: rgba(247, 251, 248, 0.045);
}
.mh-client__top { display: flex; align-items: center; gap: 13px; }
.mh-client__top svg { flex: none; }
.mh-client p { color: var(--muted-dark); font-size: 15.5px; margin: 16px 0 0; }
.mh-client ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.mh-client li { display: flex; gap: 11px; font-size: 15px; color: var(--muted-dark); }
.mh-client li svg { flex: none; margin-top: 4px; }

/* ------------------------------------------------------------------- settle */

.mh-settle-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; margin-top: 52px; }
.mh-rate {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 34px 34px 30px; box-shadow: var(--shadow);
}
.mh-rate__eq { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; }
.mh-rate__eq span { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.mh-rate__eq i { font-style: normal; color: var(--m-400); font-size: 1.5rem; }
.mh-rate__note { color: var(--muted); font-size: 15px; margin: 16px 0 0; }
.mh-rate dl { margin: 26px 0 0; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 13px; }
.mh-rate dl div { display: flex; justify-content: space-between; gap: 20px; font-size: 14.5px; }
.mh-rate dt { color: var(--muted); }
.mh-rate dd { margin: 0; font-weight: 600; text-align: right; }

.mh-check { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.mh-check li { display: flex; gap: 14px; }
.mh-check svg { flex: none; margin-top: 3px; }
.mh-check b { display: block; font-weight: 600; }
.mh-check p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

/* ------------------------------------------------------------------- limits */

/* The section most homepages do not have. Every line is a thing a reader would
   otherwise discover after installing. */
.mh-limits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--r-card); overflow: hidden; margin-top: 52px; }
.mh-limit { background: var(--ink); padding: 30px 30px 32px; }
.mh-limit h3 { font-family: var(--display); font-weight: 700; font-size: 16.5px; letter-spacing: -0.01em; margin: 0; display: flex; align-items: center; gap: 10px; }
.mh-limit h3 span { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(255, 201, 77, 0.35); border-radius: var(--r-pill); padding: 3px 9px; }
.mh-limit p { margin: 13px 0 0; color: var(--muted-dark); font-size: 15px; }

/* ---------------------------------------------------------------------- faq */

.mh-faq { margin-top: 48px; border-top: 1px solid var(--line); }
.mh-faq details { border-bottom: 1px solid var(--line); }
.mh-faq summary {
  cursor: pointer; list-style: none; padding: 24px 46px 24px 0; position: relative;
  font-family: var(--display); font-weight: 700; font-size: clamp(1.02rem, 1.5vw, 1.16rem); letter-spacing: -0.015em;
}
.mh-faq summary::-webkit-details-marker { display: none; }
.mh-faq summary::after {
  content: ''; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px;
  border-right: 2px solid var(--m-500); border-bottom: 2px solid var(--m-500);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.24s ease;
}
.mh-faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.mh-faq .mh-ans { padding: 0 60px 26px 0; color: var(--muted); font-size: 16px; }
.mh-faq .mh-ans > :first-child { margin-top: 0; }
.mh-faq .mh-ans > :last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------------- cta */

.mh-cta {
  position: relative; overflow: hidden; color: var(--paper);
  background: linear-gradient(135deg, var(--m-800) 0%, var(--m-600) 52%, var(--m-500) 100%);
  padding: clamp(66px, 8vw, 104px) 0;
}
.mh-cta::after {
  content: ''; position: absolute; right: -140px; bottom: -190px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 201, 77, 0.34) 0%, rgba(255, 201, 77, 0) 68%);
}
.mh-cta__inner { position: relative; z-index: 1; max-width: 60ch; }
.mh-cta .mh-h2 { color: var(--paper); }
.mh-cta p { color: rgba(247, 251, 248, 0.82); margin: 18px 0 0; font-size: 1.05rem; }
.mh-cta__row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.mh-cta__fine { margin-top: 22px; font-size: 13.5px; color: rgba(247, 251, 248, 0.66); }

/* ------------------------------------------------------------------- footer */

.mh-foot { background: var(--ink); color: var(--muted-dark); padding: 62px 0 40px; font-size: 15px; }
.mh-foot__top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-start; }
.mh-foot .mh-brand { color: var(--paper); }
.mh-foot .mh-brand sup { color: var(--muted-dark); }
.mh-foot__cols { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.mh-foot__col { display: grid; gap: 13px; align-content: start; }
.mh-foot__col h4 { margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(247, 251, 248, 0.42); }
.mh-foot__col a { text-decoration: none; color: var(--muted-dark); transition: color 0.18s ease; }
.mh-foot__col a:hover { color: var(--paper); }
.mh-foot__social { display: flex; gap: 10px; }
.mh-foot__social a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(247, 251, 248, 0.08);
  border: 1px solid var(--line-dark); transition: background 0.2s ease;
}
.mh-foot__social a:hover { background: rgba(247, 251, 248, 0.16); }
.mh-foot__rule { height: 1px; background: var(--line-dark); margin: 46px 0 26px; }
.mh-foot__bottom { display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between; font-size: 13.5px; }
.mh-foot__policies { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.mh-foot__policies a { text-decoration: none; color: var(--muted-dark); }
.mh-foot__policies a:hover { color: var(--paper); text-decoration: underline; }

/* ------------------------------------------------- three kinds of points */

.mh-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.mh-point {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 26px 24px 28px;
}
.mh-point img { width: 46px; height: 46px; flex: none; border-radius: 12px; }
.mh-point b { display: block; font-family: var(--display); font-weight: 700; font-size: 16.5px; letter-spacing: -0.01em; }
.mh-point p { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; }

/* --------------------------------------------------------- the dashboard */

.mh-shot { margin-top: 40px; }
.mh-shot figure { margin: 0; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.mh-shot img { width: 100%; display: block; }
.mh-shot figcaption { padding: 13px 18px; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); }

/* ------------------------------------------------------ from the library */

.mh-learn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; }
.mh-card {
  display: block; text-decoration: none; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.22s ease;
}
.mh-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mh-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.mh-card span { display: block; padding: 18px 20px 22px; font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: -0.015em; line-height: 1.28; }

/* ------------------------------------------------------------------- reveal */

[data-mh-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
  transition-delay: var(--d, 0ms);
}
[data-mh-reveal].is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1000px) {
  .mh-steps { grid-template-columns: 1fr; }
  .mh-clients { grid-template-columns: 1fr; }
  .mh-settle-grid { grid-template-columns: 1fr; gap: 40px; }
  .mh-limits { grid-template-columns: 1fr; }
  .mh-points { grid-template-columns: 1fr; }
  .mh-learn-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .mh-nav__links { display: none; }
  .mh-hero .mh-h1 { max-width: none; }
  .mh-strip { gap: 12px 22px; }
  .mh-faq .mh-ans { padding-right: 20px; }
  .mh-foot__top { flex-direction: column; gap: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-mh-reveal] { opacity: 1; transform: none; transition: none; }
  .mh-btn { transition: none; }
}
