/* Marketing site base styles. Colours come from tokens.css only. */

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-strong); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 900; color: var(--ink-900); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: 56px; padding-bottom: 56px; }
.section__title { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 28px; }
.band { background: var(--surface-alt); }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip-link:focus { left: 8px; }

/* ---- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; text-decoration: none; line-height: 1.1;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--lg { min-height: 54px; padding: 14px 28px; font-size: 1.1rem; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-hover); color: #fff; }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: rgb(255 255 255 / .12); color: inherit; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header, menu and footer: wp-theme.css. */

/* ---- Hero ------------------------------------------------------------ */
.hero {
  color: #fff;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgb(255 255 255 / .12), transparent 60%),
    linear-gradient(135deg, var(--green-900), var(--green-700) 55%, var(--green-600));
}
.hero__inner { padding-top: 72px; padding-bottom: 80px; max-width: 860px; margin-left: 0; }
@media (min-width: 1212px) { .hero__inner { margin-left: calc((100vw - var(--wrap)) / 2); } }
.eyebrow { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; opacity: .9; }
.hero__title { color: #fff; font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
.hero__lead { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 640px; opacity: .95; margin-bottom: 28px; }

.pagehero { background: linear-gradient(135deg, var(--green-900), var(--green-700)); color: #fff; }
.pagehero .wrap { padding-top: 48px; padding-bottom: 48px; }
.pagehero h1 { color: #fff; font-size: clamp(1.9rem, 4.5vw, 3rem); margin: 0; }
.pagehero__crumb { display: inline-block; color: #dcebc8; font-weight: 700; text-decoration: none; margin-bottom: 8px; }
.pagehero__crumb:hover { color: #fff; }
.pagehero__crumb::before { content: "\2190\00a0"; }
.pagehero__lead { margin: 12px 0 0; font-size: 1.15rem; max-width: 720px; opacity: .95; }

/* ---- Cards ----------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column; gap: 8px; padding: 22px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover { border-color: var(--green-500); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.card__title { font-weight: 900; font-size: 1.15rem; color: var(--brand-strong); }
.card__body { color: var(--text-muted); flex: 1; }
.card__more { color: var(--accent); font-weight: 700; }

/* ---- Points ---------------------------------------------------------- */
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.point h3 { font-size: 1.2rem; margin-top: 12px; }
.point p { color: var(--ink-700); }
.point__num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 900;
}

.area p { max-width: 820px; color: var(--ink-700); }

/* ---- Placeholder ----------------------------------------------------- */
.pending {
  border: 2px dashed var(--orange-600); background: var(--orange-100); border-radius: var(--radius-lg);
  padding: 22px 24px; max-width: 760px;
}
.pending__label { font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--orange-700); margin-bottom: 6px; }
.pending p:last-child { margin: 0; }

/* ---- Card rows: centred, never a short row hugging the left ---------- */
/* auto-fill grids reserve empty tracks, so three cards in a four-track row sat left with a
   hole on the right. Wrapping flex rows centre whatever is there, full row or partial. */
.cards, .features, .quotes, .gallery {
  display: flex; flex-wrap: wrap; justify-content: center;
}
.cards > *    { flex: 1 1 240px; max-width: 340px; }
.features > * { flex: 1 1 250px; max-width: 380px; }
.quotes > *   { flex: 1 1 300px; max-width: 520px; }
.gallery > *  { flex: 1 1 220px; max-width: 300px; }

/* <picture> wraps every content image (marketing-site.md MS-16). display:contents makes it
   generate no box, so the <img> stays a direct layout child of whatever contained it before.
   Without this, wrapping every image on the site would silently reflow flex and grid parents. */
picture {
  display: contents;
}

/* The other half of display:contents, and it is not optional.
   Promoting <picture> out of the layout hoists ALL of its children into the parent, <source>
   elements included — and a grid or flex parent then BLOCKIFIES them, overriding the browser's
   own `source { display: none }`. Each one becomes a real, invisible, zero-height item occupying
   a cell. On the SmartFence page that put two empty boxes in the first row and pushed the product
   photo into row 2, column 2: below the text and to the right of it.
   Hiding them costs nothing — the browser reads srcset and media off the element regardless of
   its display, so format negotiation still picks the .avif. */
picture > source {
  display: none;
}
