/* =====================================================================
   Herd Farm Central — site styles
   ---------------------------------------------------------------------
   1. Tokens          8. Product mockups (app frames, pills, tables)
   2. Base            9. Page sections (home, livestock, features…)
   3. Layout         10. Pricing
   4. Type           11. FAQ, contact, forms, modals, toasts
   5. Buttons        12. Demo sandbox
   6. Header & nav   13. Legal
   7. Footer         14. Motion, responsive, print
   ===================================================================== */

/* 1. Tokens ---------------------------------------------------------- */
:root {
    --forest-950: #0b2219;
    --forest-900: #0f2e22;
    --forest-800: #163d2e;
    --forest-700: #1f4d3a;
    --forest-600: #2a6249;
    --leaf-500: #3f8f63;
    --leaf-300: #9fd1b2;
    --leaf-100: #e3f2e8;

    --wheat-600: #9a6408;
    --wheat-500: #d99a2b;
    --wheat-400: #e8b04a;
    --wheat-100: #fbf1dc;

    --cream: #faf7f0;
    --sand: #f2ede1;
    --paper: #ffffff;
    --ink: #14231b;
    --ink-2: #33433a;
    --muted: #5d6b63;
    --line: #e4dfd2;
    --line-strong: #d3ccbb;

    --ok: #2f7d4f;
    --ok-bg: #e2f3e8;
    --warn: #8a5a06;
    --warn-bg: #fdf0d5;
    --danger: #b3372b;
    --danger-bg: #fbe5e1;
    --info: #24628a;
    --info-bg: #e1eef7;

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

    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 22px;
    --r-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(20, 35, 27, .06), 0 1px 3px rgba(20, 35, 27, .05);
    --shadow-md: 0 6px 18px rgba(20, 35, 27, .08), 0 2px 6px rgba(20, 35, 27, .05);
    --shadow-lg: 0 24px 60px -18px rgba(15, 46, 34, .35), 0 8px 20px rgba(15, 46, 34, .08);

    --header-h: 72px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Base ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section[id], [id].anchor { scroll-margin-top: calc(var(--header-h) + 16px); }

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--forest-700); text-underline-offset: 3px; }
a:hover { color: var(--forest-900); }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
    outline: 3px solid var(--wheat-400);
    outline-offset: 2px;
    border-radius: 6px;
}

body.modal-open { overflow: hidden; }

.i { width: 20px; height: 20px; flex: none; }

.skip-link {
    position: fixed; top: -100px; left: 16px; z-index: 300;
    background: var(--forest-700); color: #fff;
    padding: 12px 18px; border-radius: var(--r-sm);
    font-weight: 600; text-decoration: none;
    transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 3. Layout ---------------------------------------------------------- */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.container-narrow { max-width: 860px; }

.section { padding-block: clamp(64px, 9vw, 112px); }
.section-tight { padding-block: clamp(48px, 6vw, 72px); }
.section-sand { background: var(--sand); }
.section-paper { background: var(--paper); }
.section-dark {
    background: var(--forest-900);
    color: #e9f1ec;
    position: relative;
    overflow: hidden;
}
.section-dark::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(60% 50% at 85% 0%, rgba(63, 143, 99, .28), transparent 70%),
        radial-gradient(40% 40% at 0% 100%, rgba(232, 176, 74, .12), transparent 70%);
    pointer-events: none;
}
.section-dark > * { position: relative; }

.section-head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head .lead { margin-top: 16px; }

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}
.split.reverse > :first-child { order: 2; }
.split + .split { margin-top: clamp(72px, 9vw, 120px); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

/* 4. Type ------------------------------------------------------------ */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.15; letter-spacing: -.01em; color: inherit; }
h1, h2, .display {
    font-family: var(--font-display);
    font-optical-sizing: auto;
    font-weight: 600;
    letter-spacing: -.02em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.85rem); line-height: 1.1; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
h1 em, h2 em { font-style: italic; color: var(--leaf-500); font-weight: 500; }
.section-dark h1 em, .section-dark h2 em, .hero-dark h1 em, .cta-box h2 em { color: var(--wheat-400); }

.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); line-height: 1.65; }
.section-dark .lead, .section-dark p { color: #bcd0c4; }
.section-dark h2, .section-dark h3 { color: #fff; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--leaf-500);
    margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head:not(.left) .eyebrow::after,
.page-hero.center .eyebrow::after { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section-dark .eyebrow { color: var(--wheat-400); }

.micro { font-size: .88rem; color: var(--muted); }
.muted { color: var(--muted); }
.text-center { text-align: center; }

.check-list { list-style: none; display: grid; gap: 12px; margin-top: 24px; }
.check-list li { position: relative; padding-left: 32px; color: var(--ink-2); }
.check-list li::before {
    content: "";
    position: absolute; left: 0; top: 3px;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--leaf-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a6249' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.check-list.compact { gap: 8px; margin-top: 16px; font-size: .95rem; }
.section-dark .check-list li { color: #d6e4dc; }
.section-dark .check-list li::before { background-color: rgba(159, 209, 178, .16); }

.text-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-weight: 600; text-decoration: none; color: var(--forest-700);
}
.text-link .i { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.text-link:hover .i { transform: translateX(3px); }
.section-dark .text-link { color: var(--wheat-400); }

/* 5. Buttons --------------------------------------------------------- */
.btn {
    --btn-bg: var(--forest-700);
    --btn-fg: #fff;
    --btn-bd: transparent;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: var(--r-pill);
    border: 1.5px solid var(--btn-bd);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-weight: 600; font-size: .96rem; line-height: 1;
    text-decoration: none; white-space: nowrap;
    cursor: pointer;
    transition: transform .15s var(--ease), background-color .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn .i { width: 18px; height: 18px; }

.btn-primary:hover { --btn-bg: var(--forest-800); }
.btn-accent { --btn-bg: var(--wheat-400); --btn-fg: var(--forest-950); }
.btn-accent:hover { --btn-bg: var(--wheat-500); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--forest-700); --btn-bd: var(--line-strong); }
.btn-outline:hover { --btn-bg: var(--paper); --btn-bd: var(--forest-700); }
.btn-light { --btn-bg: rgba(255, 255, 255, .08); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .28); }
.btn-light:hover { --btn-bg: rgba(255, 255, 255, .16); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--forest-700); padding-inline: 12px; }
.btn-ghost:hover { --btn-bg: var(--leaf-100); box-shadow: none; }
.btn-danger { --btn-bg: transparent; --btn-fg: var(--danger); --btn-bd: #ecc3bc; }
.btn-danger:hover { --btn-bg: var(--danger-bg); }

.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.02rem; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .86rem; }
.btn-xs { min-height: 30px; padding: 0 12px; font-size: .8rem; }
.btn-full { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* 6. Header & nav ---------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    height: var(--header-h);
    background: rgba(250, 247, 240, .82);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, background-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(250, 247, 240, .95); }

.nav { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line); background: #fff; }
.brand-name { font-family: var(--font-display); font-size: 1.22rem; font-weight: 600; letter-spacing: -.01em; line-height: 1; }
.brand-name span { color: var(--leaf-500); }

.nav-menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
    display: inline-flex; align-items: center; gap: 4px;
    height: 40px; padding: 0 12px; border-radius: var(--r-pill);
    background: none; border: 0; cursor: pointer;
    color: var(--ink-2); font-weight: 500; font-size: .95rem; text-decoration: none;
    transition: background-color .15s, color .15s;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { background: rgba(31, 77, 58, .07); color: var(--forest-900); }
.nav-link.current { color: var(--forest-700); font-weight: 600; }
.nav-link .i { width: 14px; height: 14px; transition: transform .2s; }
.nav-link[aria-expanded="true"] .i { transform: rotate(180deg); }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 12px; }

.nav-dd { position: relative; }
.nav-dd-panel {
    position: absolute; top: calc(100% + 10px); left: 50%;
    transform: translateX(-50%);
    width: 580px;
    padding: 12px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    animation: dd-in .18s var(--ease);
}
.nav-dd-panel.single { width: 320px; grid-template-columns: 1fr; }
@keyframes dd-in { from { opacity: 0; transform: translate(-50%, -6px); } }

.nav-dd-item {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 12px; border-radius: var(--r-md);
    text-decoration: none; color: var(--ink);
}
.nav-dd-item:hover { background: var(--cream); color: var(--ink); }
.nav-dd-icon {
    flex: none; width: 36px; height: 36px; border-radius: 10px;
    display: grid; place-items: center;
    background: var(--leaf-100); color: var(--forest-700);
}
.nav-dd-icon .i { width: 18px; height: 18px; }
.nav-dd-title { display: block; font-weight: 600; font-size: .94rem; }
.nav-dd-desc { display: block; font-size: .82rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.nav-dd-foot {
    grid-column: 1 / -1;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    margin-top: 4px; padding: 12px 14px;
    border-radius: var(--r-md);
    background: var(--sand);
    font-size: .88rem; color: var(--ink-2);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 44px; height: 44px; border-radius: 12px;
    border: 1px solid var(--line); background: var(--paper);
    cursor: pointer;
    place-content: center;
}
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle span + span { margin-top: 4px; }
.menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 7. Footer ---------------------------------------------------------- */
.site-footer { background: var(--forest-950); color: #a9bdb1; padding: 64px 0 32px; font-size: .94rem; }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px; }
.site-footer .brand { color: #fff; }
.site-footer .brand-name span { color: var(--leaf-300); }
.footer-blurb { margin-top: 16px; max-width: 320px; line-height: 1.6; }
.footer-loc { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: #d6e4dc; font-size: .88rem; }
.footer-loc .i { width: 16px; height: 16px; color: var(--wheat-400); }
.footer-col h4 { color: #fff; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a { display: block; color: #a9bdb1; text-decoration: none; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    margin-top: 56px; padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
    font-size: .85rem;
}

/* 8. Product mockups ------------------------------------------------- */
.app-frame {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    font-size: .84rem;
    color: var(--ink);
    text-align: left;
}
.app-bar {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px;
    background: var(--sand);
    border-bottom: 1px solid var(--line);
}
.app-dots { display: flex; gap: 6px; }
.app-dots i { width: 10px; height: 10px; border-radius: 50%; background: #d9d2c2; }
.app-url {
    flex: 1; max-width: 340px; margin-inline: auto;
    padding: 4px 12px; border-radius: var(--r-pill);
    background: var(--paper); color: var(--muted);
    font-size: .76rem; text-align: center;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-body { display: grid; grid-template-columns: 150px 1fr; min-height: 360px; }
.app-side { background: var(--forest-900); color: #bcd0c4; padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.app-side .side-brand { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: .95rem; padding: 4px 8px 12px; }
.app-side .nav-item {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 8px; border-radius: 8px;
    color: inherit; font-size: .8rem;
}
.app-side .active { background: rgba(255, 255, 255, .1); color: #fff; }
.app-side .i { width: 15px; height: 15px; }
.app-main { padding: 18px; display: flex; flex-direction: column; gap: 14px; background: #fcfbf8; min-width: 0; }
.app-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.app-title strong { font-size: 1rem; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.kpi span { display: block; font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi strong { display: block; font-size: 1.15rem; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi em { font-style: normal; font-size: .72rem; color: var(--ok); }
.kpi em.down { color: var(--danger); }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 600; font-size: .82rem; }
.panel-head span { font-weight: 500; color: var(--muted); font-size: .74rem; }
.panel-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.panel-head + .panel-row { border-top: 0; }
.panel-row .meta { min-width: 0; }
.panel-row .meta b { display: block; font-weight: 600; font-size: .8rem; }
.panel-row .meta small { color: var(--muted); font-size: .72rem; }
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; }

.pill {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 9px; border-radius: var(--r-pill);
    font-size: .72rem; font-weight: 600; white-space: nowrap;
    background: var(--sand); color: var(--ink-2);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-danger { background: var(--danger-bg); color: var(--danger); }
.pill-info { background: var(--info-bg); color: var(--info); }

.bar { height: 7px; border-radius: 99px; background: var(--sand); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: var(--leaf-500); }
.bar > i.warn { background: var(--wheat-500); }
.bar > i.danger { background: var(--danger); }

.spark { width: 100%; height: 96px; }

/* Floating callouts around the hero mockup */
.mock-stage { position: relative; }
.float-card {
    position: absolute;
    display: flex; gap: 10px; align-items: flex-start;
    width: 250px;
    padding: 12px 14px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    font-size: .8rem;
    line-height: 1.4;
    animation: bob 6s ease-in-out infinite;
}
.float-card b { display: block; font-size: .84rem; }
.float-card small { color: var(--muted); }
.float-card .fc-icon { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; }
.float-card .fc-icon .i { width: 17px; height: 17px; }
.fc-danger .fc-icon { background: var(--danger-bg); color: var(--danger); }
.fc-ok .fc-icon { background: var(--ok-bg); color: var(--ok); }
.fc-info .fc-icon { background: var(--info-bg); color: var(--info); }
.float-a { left: -40px; bottom: -28px; }
.float-b { right: -24px; top: -30px; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* Standalone mock cards used beside copy */
.mock-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    padding: 22px;
    font-size: .88rem;
}
.mock-card h4 { font-size: .95rem; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.mock-card .sub { color: var(--muted); font-size: .8rem; font-weight: 500; }
.mock-stack .mock-card.offset { margin: -20px 0 0 14%; position: relative; }

.hold-banner {
    display: flex; gap: 10px; align-items: center;
    padding: 10px 12px; border-radius: 10px;
    background: var(--danger-bg); color: var(--danger);
    font-weight: 600; font-size: .82rem;
}
.hold-banner .i { width: 18px; height: 18px; }

.pen-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pen-tile { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--paper); }
.pen-tile b { display: block; font-size: .86rem; }
.pen-tile small { display: block; color: var(--muted); font-size: .72rem; margin: 2px 0 8px; }
.pen-tile.over { border-color: #ecc3bc; background: #fff8f6; }
.pen-tile.near { border-color: #f0d8a8; background: #fffbf2; }

.parity { font-size: .84rem; }
.parity th, .parity td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.parity th { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.parity tr.flag td { color: var(--danger); font-weight: 600; }
.parity-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; font-size: .86rem; }

.staff-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.mock-card h4 + .staff-row { border-top: 0; }
.avatar {
    width: 34px; height: 34px; border-radius: 50%; flex: none;
    display: grid; place-items: center;
    background: var(--leaf-100); color: var(--forest-700);
    font-weight: 700; font-size: .74rem;
}
.staff-row .meta { flex: 1; min-width: 0; }
.staff-row .meta b { display: block; font-size: .86rem; }
.staff-row .meta small { color: var(--muted); font-size: .76rem; }

.insight {
    padding: 14px; border-radius: 12px;
    background: linear-gradient(180deg, #fffdf7, #fff);
    border: 1px solid #f0e3c3;
}
.insight + .insight { margin-top: 10px; }
.insight-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; gap: 8px; }
.insight-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; color: var(--wheat-600); text-transform: uppercase; letter-spacing: .06em; }
.insight-chip .i { width: 14px; height: 14px; }
.insight-top small { color: var(--muted); font-size: .74rem; }
.insight p { font-size: .86rem; color: var(--ink-2); }

.row-list { display: grid; gap: 12px; }
.row-item { display: grid; grid-template-columns: 1fr 110px auto; gap: 14px; align-items: center; }
.row-item .meta b { display: block; font-size: .86rem; }
.row-item .meta small { color: var(--muted); font-size: .76rem; }

/* 9. Page sections --------------------------------------------------- */

/* Hero */
.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 8vw, 104px); position: relative; overflow: hidden; }
.hero::before {
    content: "";
    position: absolute; top: -20%; right: -10%;
    width: 70%; height: 120%;
    background: radial-gradient(closest-side, rgba(159, 209, 178, .35), transparent);
    pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; }
.hero .lead { margin-top: 22px; max-width: 560px; }
.hero .btn-row { margin-top: 32px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 32px; list-style: none; font-size: .9rem; color: var(--ink-2); }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof .i { width: 18px; height: 18px; color: var(--leaf-500); }

.badge-note {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 14px 6px 6px; margin-bottom: 24px;
    border-radius: var(--r-pill);
    background: var(--paper); border: 1px solid var(--line);
    font-size: .84rem; color: var(--ink-2); text-decoration: none;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}
.badge-note b { background: var(--wheat-100); color: var(--wheat-600); padding: 3px 10px; border-radius: var(--r-pill); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.badge-note:hover { color: var(--ink); border-color: var(--line-strong); }

/* Page hero (inner pages) */
.page-hero { padding: clamp(48px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); position: relative; }
.page-hero.center { text-align: center; }
.page-hero.center .lead { margin-inline: auto; }
.page-hero .lead { margin-top: 20px; max-width: 700px; }
.page-hero .btn-row { margin-top: 28px; }
.page-hero.center .btn-row { justify-content: center; }
.hero-dark { background: var(--forest-900); color: #fff; overflow: hidden; }
.hero-dark::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(50% 70% at 90% 10%, rgba(63, 143, 99, .35), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgba(232, 176, 74, .14), transparent 70%);
}
.hero-dark > * { position: relative; }
.hero-dark .lead { color: #bcd0c4; }
.hero-dark .breadcrumb, .hero-dark .breadcrumb a { color: #9fb6a8; }
.hero-dark .eyebrow { color: var(--wheat-400); }
.hero-dark .hero-proof { color: #d6e4dc; }
.hero-dark .hero-proof .i { color: var(--leaf-300); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--muted); margin-bottom: 20px; }
.page-hero.center .breadcrumb { justify-content: center; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--forest-700); text-decoration: underline; }

.jump-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.page-hero.center .jump-links { justify-content: center; }
.jump-links a {
    padding: 8px 14px; border-radius: var(--r-pill);
    background: var(--paper); border: 1px solid var(--line);
    font-size: .86rem; font-weight: 500; text-decoration: none; color: var(--ink-2);
    transition: border-color .15s, color .15s;
}
.jump-links a:hover { border-color: var(--forest-700); color: var(--forest-700); }
.hero-dark .jump-links a { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: #e9f1ec; }
.hero-dark .jump-links a:hover { border-color: var(--wheat-400); color: #fff; }

/* Species strip */
.species-strip { padding: 26px 0; border-block: 1px solid var(--line); background: var(--paper); }
.species-strip .container { display: flex; align-items: center; gap: 16px 32px; flex-wrap: wrap; justify-content: center; }
.species-strip p { font-size: .88rem; color: var(--muted); font-weight: 500; }
.species-strip ul { display: flex; gap: 10px; flex-wrap: wrap; list-style: none; justify-content: center; }
.species-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px 8px 10px; border-radius: var(--r-pill);
    background: var(--cream); border: 1px solid var(--line);
    font-weight: 600; font-size: .92rem; color: var(--ink-2);
}
.species-chip .i { width: 22px; height: 22px; color: var(--forest-700); }
.species-chip.custom { border-style: dashed; color: var(--muted); }

/* Before / after */
.contrast { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: stretch; }
.contrast-card { border-radius: var(--r-lg); padding: 32px; }
.contrast-card h3 { font-size: 1.1rem; margin-bottom: 18px; }
.contrast-before { background: var(--paper); border: 1px dashed var(--line-strong); }
.contrast-before ul { list-style: none; display: grid; gap: 12px; color: var(--muted); }
.contrast-before li { display: flex; gap: 10px; }
.contrast-before li .i { color: #c58a7f; width: 18px; height: 18px; margin-top: 3px; }
.contrast-after { background: var(--forest-800); color: #e9f1ec; box-shadow: var(--shadow-lg); }
.contrast-after h3 { color: #fff; }
.contrast-after .check-list { margin-top: 0; }
.contrast-after .check-list li { color: #d6e4dc; }
.contrast-after .check-list li::before { background-color: rgba(159, 209, 178, .16); }
.contrast-arrow { display: grid; place-items: center; color: var(--leaf-500); }
.contrast-arrow .i { width: 32px; height: 32px; }

/* Pillars */
.pillar {
    display: flex; flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 32px;
    transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.pillar-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--leaf-100); color: var(--forest-700); margin-bottom: 20px; }
.pillar-icon .i { width: 26px; height: 26px; }
.pillar.gold .pillar-icon { background: var(--wheat-100); color: var(--wheat-600); }
.pillar.blue .pillar-icon { background: var(--info-bg); color: var(--info); }
.pillar h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.pillar > p { color: var(--muted); margin-top: 10px; }
.pillar .check-list { flex: 1; align-content: start; }
.pillar .text-link { margin-top: 24px; }

/* Feature cards */
.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 26px;
    transition: border-color .2s, box-shadow .2s;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.card-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--leaf-100); color: var(--forest-700); margin-bottom: 16px; flex: none; }
.card-icon .i { width: 22px; height: 22px; }
.card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; }
.card .tag { margin-top: 14px; }
.section-dark .card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }
.section-dark .card:hover { border-color: rgba(255, 255, 255, .22); box-shadow: none; }
.section-dark .card-icon { background: rgba(232, 176, 74, .14); color: var(--wheat-400); }
.section-dark .card p { color: #a9bdb1; }

.tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: var(--r-pill);
    background: var(--sand); color: var(--ink-2);
    font-size: .75rem; font-weight: 600;
}
.tag-green { background: var(--leaf-100); color: var(--forest-700); }
.tag-gold { background: var(--wheat-100); color: var(--wheat-600); }
.tag-blue { background: var(--info-bg); color: var(--info); }

/* Showcase tabs */
.showcase-tabs {
    display: flex; gap: 6px; justify-content: center; flex-wrap: wrap;
    padding: 6px; margin: 0 auto 48px; width: fit-content; max-width: 100%;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-pill);
}
.showcase-tab {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: var(--r-pill);
    border: 0; background: none; cursor: pointer;
    font-weight: 600; font-size: .92rem; color: var(--muted);
    transition: background-color .2s, color .2s;
}
.showcase-tab .i { width: 18px; height: 18px; }
.showcase-tab:hover { color: var(--ink); }
.showcase-tab[aria-selected="true"] { background: var(--forest-700); color: #fff; }
.showcase-panel { animation: fade-up .4s var(--ease); }
.showcase-panel h3 { font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 600; line-height: 1.15; }
.showcase-panel p { color: var(--muted); margin-top: 14px; }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } }

/* Stat band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { padding: 8px 0 8px 20px; border-left: 2px solid rgba(232, 176, 74, .5); }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 600; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; font-size: .92rem; color: #a9bdb1; }

/* Field-ready list */
.field-list { display: grid; gap: 14px; margin-top: 28px; list-style: none; }
.field-item { display: flex; gap: 16px; padding: 18px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); }
.field-item .card-icon { margin: 0; }
.field-item h3 { font-size: 1rem; }
.field-item p { color: var(--muted); font-size: .93rem; margin-top: 4px; }

/* Phone mock */
.phone {
    width: 290px; max-width: 100%; margin-inline: auto;
    border-radius: 42px; padding: 12px;
    background: #10251c;
    box-shadow: var(--shadow-lg), inset 0 0 0 2px #2b4237;
}
.phone-screen { border-radius: 32px; overflow: hidden; background: #fcfbf8; min-height: 540px; display: flex; flex-direction: column; font-size: .82rem; }
.phone-top { background: var(--forest-800); color: #fff; padding: 26px 18px 16px; }
.phone-top small { color: #9fb6a8; font-size: .72rem; }
.phone-top b { display: block; font-size: 1.05rem; margin-top: 2px; }
.phone-offline { display: inline-flex; gap: 6px; align-items: center; margin-top: 10px; padding: 4px 10px; border-radius: 99px; background: rgba(232, 176, 74, .18); color: var(--wheat-400); font-size: .72rem; font-weight: 600; }
.phone-offline .i { width: 13px; height: 13px; }
.phone-body { padding: 14px; display: grid; gap: 10px; }
.phone-field { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.phone-field small { display: block; color: var(--muted); font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; }
.phone-field b { font-size: .92rem; }
.phone-btn { margin-top: 4px; padding: 12px; border-radius: 12px; background: var(--forest-700); color: #fff; text-align: center; font-weight: 600; }
.phone-queue { text-align: center; color: var(--muted); font-size: .72rem; }

/* Story */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.story-media { position: relative; }
.story-media img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.story-tag {
    position: absolute; left: -20px; bottom: 28px;
    background: var(--paper); border-radius: var(--r-md); padding: 14px 18px;
    box-shadow: var(--shadow-lg);
    display: flex; gap: 12px; align-items: center;
}
.story-tag .i { color: var(--wheat-500); width: 24px; height: 24px; }
.story-tag b { display: block; font-size: .95rem; }
.story-tag small { color: var(--muted); }
.story-quote {
    font-family: var(--font-display); font-style: italic;
    font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.45; color: var(--forest-800);
    border-left: 3px solid var(--wheat-400); padding-left: 20px; margin: 24px 0;
}
.story-text p { color: var(--ink-2); }
.story-text p + p { margin-top: 14px; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.principle { display: flex; gap: 12px; }
.principle .i { color: var(--leaf-500); width: 22px; height: 22px; margin-top: 2px; }
.principle b { display: block; font-size: .95rem; }
.principle p { color: var(--muted); font-size: .9rem; }

/* Module index (features) */
.module-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.module-group { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; }
.module-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.module-group-head .card-icon { margin: 0; width: 40px; height: 40px; }
.module-group h3 { font-size: 1.05rem; }
.module-group ul { list-style: none; display: grid; gap: 7px; font-size: .92rem; color: var(--ink-2); flex: 1; align-content: start; }
.module-group li { display: flex; gap: 8px; align-items: baseline; }
.module-group li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--leaf-500); flex: none; transform: translateY(-2px); }
.module-group .text-link { margin-top: 16px; font-size: .9rem; }

/* Alert chips */
.alert-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; list-style: none; max-width: 920px; margin: 0 auto; }
.alert-chips li {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
    color: #e9f1ec; font-weight: 500; font-size: .92rem;
}
.alert-chips li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf-300); }
.alert-chips li.warn::before { background: var(--wheat-400); }
.alert-chips li.crit::before { background: #f08a7b; }
.alert-chips li.addon { border-style: dashed; }
.alert-legend { display: flex; gap: 20px; justify-content: center; margin-top: 24px; font-size: .84rem; color: #a9bdb1; flex-wrap: wrap; }
.alert-legend span { display: inline-flex; gap: 6px; align-items: center; }
.alert-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* Timeline */
.timeline { list-style: none; position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-bottom: 20px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
    content: ""; position: absolute; left: -26px; top: 5px;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--paper); border: 3px solid var(--leaf-500);
}
.timeline li.now::before { background: var(--wheat-400); border-color: var(--wheat-500); box-shadow: 0 0 0 5px rgba(232, 176, 74, .2); }
.tl-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tl-head b { font-size: .92rem; }
.tl-head time { font-size: .78rem; color: var(--muted); }
.timeline p { font-size: .86rem; color: var(--muted); margin-top: 2px; }

/* Species settings mock */
.species-mock { display: grid; grid-template-columns: 210px 1fr; min-height: 300px; }
.species-list { border-right: 1px solid var(--line); padding: 10px; display: grid; gap: 2px; align-content: start; background: #fcfbf8; }
.species-list div { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: .84rem; }
.species-list div.active { background: var(--leaf-100); font-weight: 600; }
.species-list .i { width: 20px; height: 20px; color: var(--forest-700); }
.species-list small { margin-left: auto; color: var(--muted); font-size: .72rem; }
.species-form { padding: 18px; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; align-content: start; }
.species-form .full { grid-column: 1 / -1; }
.species-form label { display: block; font-size: .66rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.fake-input { border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: .84rem; background: #fff; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* Process steps */
.process { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.process li { counter-increment: step; padding: 22px; border-radius: var(--r-md); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.process li::before {
    content: counter(step);
    display: grid; place-items: center;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--wheat-400); color: var(--forest-950); font-weight: 700;
    margin-bottom: 14px;
}
.process b { display: block; color: #fff; }
.process span { display: block; color: #a9bdb1; font-size: .92rem; margin-top: 4px; }
.process.light li { background: var(--paper); border-color: var(--line); }
.process.light b { color: var(--ink); }
.process.light span { color: var(--muted); }

/* Add-on cards */
.addon {
    display: flex; flex-direction: column;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 28px;
}
.addon-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.addon-top .card-icon { margin: 0; }
.addon h3 { font-size: 1.2rem; }
.addon > p { color: var(--muted); margin-top: 8px; }
.addon .check-list { flex: 1; align-content: start; }
.addon-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }

.website-cards .card { background: rgba(255, 255, 255, .04); }

/* CTA */
.cta-final { padding: clamp(56px, 8vw, 96px) 0; }
.cta-box {
    position: relative; overflow: hidden;
    border-radius: 28px;
    padding: clamp(36px, 6vw, 72px);
    background: var(--forest-800);
    color: #fff;
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
.cta-box::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(50% 80% at 100% 0%, rgba(232, 176, 74, .28), transparent 70%), radial-gradient(50% 60% at 0% 100%, rgba(63, 143, 99, .4), transparent 70%);
}
.cta-box > * { position: relative; }
.cta-box h2 { color: #fff; }
.cta-box p { color: #c8dacf; margin-top: 14px; font-size: 1.08rem; }
.cta-box .btn-row { justify-content: flex-end; }

/* 10. Pricing -------------------------------------------------------- */
.billing-switch {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 5px; border-radius: var(--r-pill);
    background: var(--paper); border: 1px solid var(--line);
    margin-top: 28px;
}
.billing-switch button {
    border: 0; background: none; cursor: pointer;
    padding: 9px 18px; border-radius: var(--r-pill);
    font-weight: 600; font-size: .9rem; color: var(--muted);
    display: inline-flex; align-items: center; gap: 8px;
}
.billing-switch button[aria-pressed="true"] { background: var(--forest-700); color: #fff; }
.currency-switch { margin-top: 10px; }
.founding-offer { max-width: 760px; margin: 0 auto 20px; padding: 12px 16px; border-radius: 12px; background: var(--wheat-100); color: var(--forest-950); text-align: center; font-size: .95rem; }
.ngn-note { max-width: 760px; margin: 0 auto 20px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--wheat-400); text-align: center; }
.plan-price .from { font-size: .85rem; font-weight: 600; color: var(--ink-500, #5b6b5d); margin-right: 4px; }
.plan-price .cur { font-size: .8rem; letter-spacing: .04em; }
.save-pill { padding: 2px 8px; border-radius: 99px; background: var(--wheat-100); color: var(--wheat-600); font-size: .72rem; font-weight: 700; }
.billing-switch button[aria-pressed="true"] .save-pill { background: var(--wheat-400); color: var(--forest-950); }

.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan {
    position: relative;
    display: flex; flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 28px 24px;
}
.plan.popular { border: 2px solid var(--forest-700); box-shadow: var(--shadow-lg); }
.plan-flag {
    position: absolute; top: -13px; left: 24px;
    padding: 4px 12px; border-radius: var(--r-pill);
    background: var(--forest-700); color: #fff;
    font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.plan h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.plan-desc { color: var(--muted); font-size: .9rem; margin-top: 6px; min-height: 4.4em; }
.plan-price { display: flex; align-items: baseline; gap: 2px; margin-top: 16px; }
.plan-price .cur { font-size: 1.2rem; font-weight: 600; color: var(--ink-2); align-self: flex-start; margin-top: 6px; }
.plan-price .amount { font-family: var(--font-display); font-size: 3rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price .per { color: var(--muted); font-size: .9rem; margin-left: 4px; }
.plan-billed { font-size: .8rem; color: var(--muted); margin-top: 6px; min-height: 1.3em; }
.plan-cap { margin: 18px 0; padding: 12px 14px; border-radius: var(--r-md); background: var(--cream); font-size: .9rem; }
.plan-cap b { display: block; }
.plan-cap span { color: var(--muted); font-size: .84rem; }
.plan .btn { margin-bottom: 20px; }
.plan-inherit { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.plan .check-list { margin-top: 12px; font-size: .9rem; gap: 10px; }
.plan .check-list li { padding-left: 28px; }
.plan .check-list li::before { width: 18px; height: 18px; top: 2px; background-size: 11px; }

.plans-note { text-align: center; margin-top: 28px; color: var(--muted); font-size: .92rem; }

.plan-mini { padding: 22px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s var(--ease); }
.plan-mini:hover { border-color: var(--forest-700); transform: translateY(-2px); color: var(--ink); }
.plan-mini.popular { border-color: var(--forest-700); box-shadow: 0 0 0 1px var(--forest-700); }
.plan-mini h3 { font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan-mini .amount { font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; line-height: 1.1; margin-top: 6px; }
.plan-mini .amount small { font-family: var(--font-sans); font-size: .85rem; color: var(--muted); font-weight: 500; }
.plan-mini p { font-size: .88rem; color: var(--muted); }

.compare-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); -webkit-overflow-scrolling: touch; }
.compare-table { min-width: 760px; font-size: .92rem; }
.compare-table th, .compare-table td { padding: 12px 18px; border-bottom: 1px solid var(--line); text-align: center; }
.compare-table thead th { background: var(--paper); font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; padding-block: 20px; }
.compare-table tbody th { text-align: left; font-weight: 500; color: var(--ink-2); }
.compare-table th:first-child { width: 38%; }
.compare-table .col-pop { background: rgba(227, 242, 232, .5); }
.compare-table .group th { background: var(--cream); text-align: left; font-family: var(--font-sans); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; padding-block: 10px; }
.compare-table .yes { color: var(--ok); font-weight: 700; }
.compare-table .no { color: #b5b0a3; }
.compare-table .ao { color: var(--wheat-600); font-weight: 600; font-size: .84rem; }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }

/* ROI calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.calc-box { background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-lg); }
.calc-group + .calc-group { margin-top: 24px; }
.calc-group label { display: flex; justify-content: space-between; font-weight: 600; font-size: .94rem; margin-bottom: 10px; }
.calc-group output { font-variant-numeric: tabular-nums; color: var(--forest-700); }
input[type="range"] { width: 100%; accent-color: var(--forest-700); }
.calc-results { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.calc-result { padding: 22px; border-radius: var(--r-md); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.calc-result span { display: block; font-size: .78rem; color: #a9bdb1; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.calc-result strong { display: block; font-family: var(--font-display); font-size: 2.4rem; color: #fff; margin-top: 6px; font-variant-numeric: tabular-nums; font-weight: 600; }
.calc-result.gold strong { color: var(--wheat-400); }
.section-dark .calc-box p.micro { color: var(--muted); margin-top: 18px; }

/* 11. FAQ, contact, forms, modals, toasts ---------------------------- */
.faq-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.faq-nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 2px; }
.faq-nav a { padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-size: .92rem; font-weight: 500; }
.faq-nav a:hover { background: var(--paper); color: var(--forest-700); }
.faq-search { position: relative; margin-bottom: 32px; }
.faq-search .i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.faq-search input { width: 100%; padding: 14px 16px 14px 46px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--paper); font-size: 1rem; }
.faq-search input:focus { outline: none; border-color: var(--forest-700); box-shadow: 0 0 0 4px rgba(63, 143, 99, .15); }
.faq-empty { color: var(--muted); padding: 24px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--r-md); }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group h2 { font-size: 1.5rem; margin-bottom: 16px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color .2s; }
.faq-item[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq-item summary {
    list-style: none; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 18px 22px; font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%;
    background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4d3a' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
    transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 22px 20px; color: var(--ink-2); }
.faq-answer p + p { margin-top: 10px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact-info .lead { margin-top: 18px; }
.next-steps { list-style: none; counter-reset: s; display: grid; gap: 18px; margin-top: 36px; }
.next-steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.next-steps li::before { content: counter(s); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--leaf-100); color: var(--forest-700); font-weight: 700; }
.next-steps b { display: block; }
.next-steps span { color: var(--muted); font-size: .94rem; }
.contact-direct { margin-top: 36px; padding: 20px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); display: flex; gap: 14px; align-items: center; }
.contact-direct .card-icon { margin: 0; }
.contact-direct p { font-size: .94rem; color: var(--muted); }

.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-md); }
.form-card h2 { font-size: 1.6rem; margin-bottom: 6px; }
.form-card > p { color: var(--muted); margin-bottom: 24px; font-size: .95rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label, .form-fieldset legend { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--ink); }
.optional { font-weight: 400; color: var(--muted); }
.form-group input, .form-group textarea, .select-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: #fff;
    font-size: .96rem;
    transition: border-color .15s, box-shadow .15s;
}
.form-group textarea { resize: vertical; min-height: 96px; }
.form-group input:focus, .form-group textarea:focus, .select-input:focus {
    outline: none; border-color: var(--forest-700); box-shadow: 0 0 0 4px rgba(63, 143, 99, .15);
}
.select-input {
    appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6b63' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat;
    padding-right: 38px;
}
.form-fieldset { border: 0; margin-bottom: 18px; }
.checkbox-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.checkbox-chip { position: relative; cursor: pointer; }
.checkbox-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.checkbox-chip span {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 14px; border-radius: var(--r-pill);
    border: 1px solid var(--line-strong); background: #fff;
    font-size: .88rem; font-weight: 500;
    transition: background-color .15s, border-color .15s, color .15s;
}
.checkbox-chip .i { width: 17px; height: 17px; }
.checkbox-chip input:checked + span { background: var(--forest-700); border-color: var(--forest-700); color: #fff; }
.checkbox-chip input:focus-visible + span { outline: 3px solid var(--wheat-400); outline-offset: 2px; }
.form-footnote { text-align: center; color: var(--muted); font-size: .84rem; margin-top: 12px; }
.form-message { margin-top: 14px; font-size: .92rem; }
.form-message:empty { margin: 0; }
.form-message.success { padding: 12px 14px; border-radius: 10px; background: var(--ok-bg); color: var(--ok); }
.form-message.error { padding: 12px 14px; border-radius: 10px; background: var(--danger-bg); color: var(--danger); }
.form-error { color: var(--danger); font-size: .88rem; margin-bottom: 10px; }
.form-error:empty { margin: 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.modal {
    position: fixed; inset: 0; z-index: 200;
    display: grid; place-items: center;
    padding: 16px;
    background: rgba(11, 34, 25, .55);
    backdrop-filter: blur(4px);
    animation: fade .2s ease;
}
@keyframes fade { from { opacity: 0; } }
.modal-content {
    width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto;
    background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
    animation: fade-up .25s var(--ease);
}
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px 0; }
.modal-header h3 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; }
.modal-close { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--cream); font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink-2); }
.modal-close:hover { background: var(--sand); }
.modal-body { padding: 18px 26px 26px; }
.modal-intro { color: var(--muted); font-size: .94rem; margin-bottom: 18px; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; }

.toast-stack { position: fixed; bottom: 20px; right: 20px; z-index: 400; display: grid; gap: 10px; max-width: min(420px, calc(100vw - 40px)); }
.toast {
    padding: 14px 18px; border-radius: 12px;
    background: var(--forest-900); color: #fff;
    box-shadow: var(--shadow-lg); font-size: .92rem;
    border-left: 4px solid var(--leaf-300);
    animation: toast-in .3s var(--ease);
}
.toast-error { border-left-color: #f08a7b; }
.toast-info { border-left-color: var(--wheat-400); }
.toast.leaving { opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

.noscript-banner { position: fixed; bottom: 0; left: 0; right: 0; padding: 14px; text-align: center; background: var(--wheat-100); z-index: 500; }

/* 12. Demo sandbox --------------------------------------------------- */
.demo-app { display: grid; grid-template-columns: 220px 1fr; min-height: 620px; }
.demo-app .app-side { padding: 18px 12px; }
.demo-app .app-side button {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 10px 12px; border-radius: 10px; border: 0;
    background: none; color: #bcd0c4; cursor: pointer; font-size: .9rem; font-weight: 500; text-align: left;
}
.demo-app .app-side button:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.demo-app .app-side button[aria-selected="true"] { background: rgba(255, 255, 255, .12); color: #fff; }
.demo-app .app-side .i { width: 18px; height: 18px; }
.demo-app .side-foot { margin-top: auto; padding: 12px; font-size: .76rem; color: #8aa597; line-height: 1.5; }
.demo-main { padding: 24px; background: #fcfbf8; min-width: 0; font-size: .92rem; }
.demo-toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.demo-toolbar h3 { font-size: 1.15rem; }
.demo-toolbar .tools { display: flex; gap: 8px; flex-wrap: wrap; }
.search-input { padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); min-width: 240px; background: #fff; font-size: .9rem; }
.search-input:focus { outline: none; border-color: var(--forest-700); box-shadow: 0 0 0 3px rgba(63, 143, 99, .15); }
.demo-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.table-scroll { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.data-table { font-size: .88rem; min-width: 640px; }
.data-table th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 11px 14px; border-bottom: 1px solid var(--line); background: #fcfbf8; font-weight: 600; }
.data-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .tag-id { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: .84rem; font-weight: 600; }
.data-table .species-cell { display: inline-flex; align-items: center; gap: 8px; }
.data-table .species-cell .i { width: 18px; height: 18px; color: var(--forest-700); }
.data-table .actions { display: flex; gap: 6px; justify-content: flex-end; }
.data-table .empty { text-align: center; color: var(--muted); padding: 32px; }
.demo-pens { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.demo-pen { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 10px; }
.demo-pen.over { border-color: #ecc3bc; background: #fff8f6; }
.demo-pen.near { border-color: #f0d8a8; }
.demo-pen-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.demo-pen-head b { font-size: 1rem; display: block; }
.demo-pen-head small { color: var(--muted); font-size: .78rem; }
.demo-pen-count { display: flex; justify-content: space-between; font-size: .84rem; color: var(--muted); }
.demo-pen-count b { color: var(--ink); font-variant-numeric: tabular-nums; }
.demo-pen-actions { display: flex; gap: 6px; }
.demo-pen-actions button { flex: 1; }
.demo-hint { display: flex; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--info-bg); color: var(--info); font-size: .86rem; }
.demo-hint .i { width: 18px; height: 18px; margin-top: 2px; }
.demo-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--sand); font-size: .84rem; color: var(--muted); }
.demo-footer span { display: inline-flex; gap: 8px; align-items: center; }
.demo-footer .i { width: 16px; height: 16px; }

/* 13. Legal ---------------------------------------------------------- */
.legal-section { padding: 0 0 96px; }
.legal-layout { display: grid; grid-template-columns: 250px 1fr; gap: 56px; align-items: start; }
.legal-layout > *, .faq-layout > *, .split > *, .hero-grid > *, .demo-app > * { min-width: 0; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; font-size: .88rem; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
.legal-toc h2 { font-family: var(--font-sans); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.legal-toc-group { font-weight: 700; margin: 14px 0 6px; color: var(--ink); }
.legal-toc ol { padding-left: 18px; display: grid; gap: 4px; }
.legal-toc a { color: var(--ink-2); text-decoration: none; }
.legal-toc a:hover { color: var(--forest-700); text-decoration: underline; }
.legal-article { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 48px); max-width: 840px; }
.legal-article h3 { font-size: 1.15rem; margin: 32px 0 10px; scroll-margin-top: calc(var(--header-h) + 16px); }
.legal-article p, .legal-article li { color: var(--ink-2); }
.legal-article p + p { margin-top: 12px; }
.legal-article ul, .legal-article ol { padding-left: 22px; display: grid; gap: 8px; margin: 12px 0; }
.legal-part { font-size: 2rem; scroll-margin-top: calc(var(--header-h) + 16px); }
.legal-article .legal-part ~ .legal-part { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.legal-note { padding: 14px 18px; border-radius: 12px; background: var(--leaf-100); margin: 16px 0; }
.legal-updated { margin-top: 16px; font-size: .88rem; color: var(--muted); }
.legal-table-wrap { position: relative; overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; }
.legal-table { font-size: .88rem; min-width: 560px; }
.legal-table th, .legal-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table th { background: var(--cream); font-weight: 600; }
.legal-table tr:last-child td { border-bottom: 0; }
/* The legal page uses the shared .badge eyebrow. */
.badge { display: inline-block; padding: 5px 12px; border-radius: var(--r-pill); background: var(--leaf-100); color: var(--forest-700); font-size: .8rem; font-weight: 600; margin-bottom: 14px; }
.page-hero-lead { margin-top: 20px; max-width: 700px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); }

/* 404 */
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.not-found .big { font-family: var(--font-display); font-size: clamp(5rem, 14vw, 9rem); line-height: 1; color: var(--leaf-300); font-weight: 600; }
.not-found .btn-row { justify-content: center; margin-top: 28px; }
.not-found .lead { margin: 16px auto 0; max-width: 520px; }

/* 14. Motion, responsive, print -------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .08s !important; }
.d2 { transition-delay: .16s !important; }
.d3 { transition-delay: .24s !important; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
    .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
    .footer-top { grid-template-columns: repeat(4, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
    .float-a { left: -12px; }
    .float-b { right: -12px; }
    .module-groups { grid-template-columns: repeat(2, 1fr); }
    .nav-link { padding: 0 9px; }
}

@media (max-width: 960px) {
    .menu-toggle { display: grid; }
    /* backdrop-filter would make the header the containing block of the
       fixed menu panel, collapsing it to the header's height. */
    .site-header, .site-header.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--cream); }
    .nav-menu {
        position: fixed; top: var(--header-h); left: 0; right: 0; height: calc(100dvh - var(--header-h));
        flex-direction: column; align-items: stretch; gap: 2px;
        padding: 16px 16px 32px; margin: 0;
        background: var(--cream);
        overflow-y: auto;
        display: none;
    }
    .nav-menu.open { display: flex; animation: fade-up .25s var(--ease); }
    .nav-link { height: 48px; justify-content: space-between; font-size: 1.02rem; border-radius: 12px; padding: 0 12px; }
    .nav-dd-panel, .nav-dd-panel.single {
        position: static; transform: none; width: auto;
        grid-template-columns: 1fr;
        box-shadow: none; border: 0; background: transparent; padding: 0 0 8px 8px;
        animation: none;
    }
    .nav-dd-foot { display: none; }
    .nav-dd > .nav-link { width: 100%; }
    .nav-actions { margin: 16px 0 0; flex-direction: column; align-items: stretch; }
    .nav-actions .btn { width: 100%; }

    .hero-grid, .split, .story-grid, .contact-grid, .calc, .cta-box { grid-template-columns: 1fr; }
    .split.reverse > :first-child { order: 0; }
    .cta-box .btn-row { justify-content: flex-start; }
    .grid-3, .principles { grid-template-columns: 1fr 1fr; }
    .grid-4, .stats { grid-template-columns: 1fr 1fr; }
    .contrast { grid-template-columns: 1fr; }
    .contrast-arrow { transform: rotate(90deg); }
    .process { grid-template-columns: 1fr 1fr; }
    .faq-layout, .legal-layout { grid-template-columns: 1fr; }
    .faq-nav { display: none; }
    .legal-toc { position: static; max-height: none; }
    .story-tag { left: 16px; }
    .demo-app { grid-template-columns: 1fr; }
    .demo-app .app-side { flex-direction: row; overflow-x: auto; gap: 6px; }
    .demo-app .app-side button { width: auto; white-space: nowrap; }
    .demo-app .side-brand, .demo-app .side-foot { display: none; }
    .footer-top { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
    .container { padding-inline: 16px; }
    .grid-2, .grid-3, .grid-4, .module-groups, .principles, .plans { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .process { grid-template-columns: 1fr; }
    .app-body { grid-template-columns: 1fr; }
    .app-body > .app-side { display: none; }
    .kpis, .demo-summary { grid-template-columns: 1fr 1fr; }
    .two-col { grid-template-columns: 1fr; }
    .float-card { position: relative; inset: auto; width: auto; margin-top: 12px; animation: none; }
    .species-mock { grid-template-columns: 1fr; }
    .species-list { border-right: 0; border-bottom: 1px solid var(--line); grid-template-columns: 1fr 1fr; }
    .species-form { grid-template-columns: 1fr; }
    .pen-tiles { grid-template-columns: 1fr 1fr; }
    .mock-stack .mock-card.offset { margin: 16px 0 0; }
    .showcase-tabs { border-radius: var(--r-md); }
    .showcase-tab { padding: 9px 12px; font-size: .86rem; }
    .calc-results { grid-template-columns: 1fr; }
    .search-input { min-width: 0; width: 100%; }
    .demo-toolbar .tools { width: 100%; }
    .story-tag { position: static; margin: -28px 0 0 16px; width: fit-content; }
    .row-item { grid-template-columns: 1fr 70px auto; }
    .plan-desc { min-height: 0; }
    .hero .btn-row .btn, .cta-box .btn-row .btn { flex: 1 1 100%; }
}

@media print {
    .site-header, .site-footer, .menu-toggle, .toast-stack, .modal, .cta-final, .showcase-tabs { display: none !important; }
    body { background: #fff; color: #000; }
    .section-dark, .hero-dark { background: #fff !important; color: #000 !important; }
    .js .reveal { opacity: 1; transform: none; }
}


/* From the barn: a short loop of real farm footage in a phone-shaped frame.
   The clip is phone video (portrait, 360 px wide), so it is shown near that size rather than stretched. */
.barn-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 88px); align-items: center; position: relative; }
.barn-copy .lead { color: rgba(233, 241, 236, .82); }
.barn-copy .check-list li { color: #e9f1ec; }
.barn-copy .text-link { margin-top: 26px; color: var(--wheat-400); }
.barn-media { position: relative; margin: 0; justify-self: center; }
.reel {
    position: relative;
    width: 300px; max-width: 78vw; aspect-ratio: 9 / 16;
    padding: 10px; border-radius: 38px;
    background: #0b1a13;
    box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .55), inset 0 0 0 2px #2b4237, 0 0 0 1px rgba(255, 255, 255, .06);
}
.reel-video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 29px; background: #1d2f25; }
.reel::after {
    content: ""; position: absolute; inset: 10px; border-radius: 29px; pointer-events: none;
    background: linear-gradient(to top, rgba(8, 22, 15, .55), transparent 30%), linear-gradient(to bottom, rgba(8, 22, 15, .35), transparent 22%);
}
.reel-live {
    position: absolute; top: 24px; left: 24px; z-index: 1;
    display: inline-flex; gap: 7px; align-items: center;
    padding: 5px 11px; border-radius: var(--r-pill);
    background: rgba(8, 22, 15, .62); color: #fff; font-size: .72rem; font-weight: 600;
    backdrop-filter: blur(6px);
}
.reel-live i { width: 7px; height: 7px; border-radius: 50%; background: #ef5b4f; animation: reel-pulse 1.8s ease-out infinite; }
.reel-toggle {
    position: absolute; right: 22px; bottom: 22px; z-index: 1;
    width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .94); color: var(--forest-800); box-shadow: var(--shadow-md);
    transition: transform .2s var(--ease);
}
.reel-toggle:hover { transform: scale(1.06); }
.reel-toggle:focus-visible { outline: 3px solid var(--wheat-400); outline-offset: 3px; }
.reel-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.reel-toggle .reel-icon-play { display: none; }
.reel-toggle.is-paused .reel-icon-play { display: block; }
.reel-toggle.is-paused .reel-icon-pause { display: none; }
.reel-card-a { left: -170px; top: 16%; }
.reel-card-b { right: -150px; bottom: 15%; animation-delay: -3s; }
@keyframes reel-pulse { 0% { box-shadow: 0 0 0 0 rgba(239, 91, 79, .65); } 70%, 100% { box-shadow: 0 0 0 8px rgba(239, 91, 79, 0); } }
@media (max-width: 1100px) { .reel-card-a { left: -110px; } .reel-card-b { right: -90px; } }
@media (max-width: 900px) {
    .barn-grid { grid-template-columns: 1fr; }
    .barn-media { justify-self: center; }
    .reel-card-a { left: -60px; top: 10%; }
    .reel-card-b { right: -50px; bottom: 10%; }
}
@media (max-width: 560px) {
    .reel-card-a, .reel-card-b { position: static; width: auto; margin-top: 14px; animation: none; }
}
@media (prefers-reduced-motion: reduce) { .reel-live i { animation: none; } }
.barn-reel .float-card { color: var(--ink); }


/* Full-bleed farm footage: the closing call to action on the home page sits over a grazing flock,
   and the Livestock page has a wide band of cattle. Both clips are 1280x720 and about 3 MB. */
.cta-pasture, .film-band { position: relative; overflow: hidden; isolation: isolate; background: var(--forest-900); }
.pasture-video, .film-band-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cta-pasture { padding: clamp(96px, 13vw, 180px) 0; }
.cta-pasture::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(to bottom, rgba(15, 46, 34, .35), rgba(15, 46, 34, .1) 40%, rgba(15, 46, 34, .55));
}
.cta-pasture .cta-box {
    background: rgba(15, 46, 34, .72);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55);
}
.film-band { color: #fff; min-height: clamp(460px, 48vw, 620px); display: flex; align-items: flex-end; }
.film-band::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(10, 30, 22, .86) 0%, rgba(10, 30, 22, .55) 45%, rgba(10, 30, 22, 0) 75%), linear-gradient(to top, rgba(10, 30, 22, .7), transparent 45%);
}
.film-band-inner { width: 100%; padding-block: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: end; }
.film-band-copy { max-width: 560px; }
.film-band .eyebrow { color: var(--wheat-400); }
.film-band h2 { color: #fff; }
.film-band h2 em { color: var(--wheat-400); }
.film-band p { margin-top: 16px; color: rgba(233, 241, 236, .86); font-size: 1.08rem; line-height: 1.65; }
.film-chips { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; justify-self: end; width: min(100%, 290px); margin-bottom: 52px; }
.film-chips li {
    display: flex; gap: 10px; align-items: center; padding: 11px 14px;
    background: rgba(255, 255, 255, .94); color: var(--ink); border-radius: 14px; box-shadow: var(--shadow-md);
}
.film-chips b { display: block; font-size: .84rem; }
.film-chips small { color: var(--muted); font-size: .76rem; }
.film-chips .fc-icon { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); }
.film-chips li:nth-child(2) .fc-icon { background: var(--info-bg); color: var(--info); }
.film-chips .i { width: 17px; height: 17px; }
@media (max-width: 900px) {
    .film-band::before { background: linear-gradient(to top, rgba(10, 30, 22, .9) 10%, rgba(10, 30, 22, .45) 60%, rgba(10, 30, 22, .2)); }
    .film-band-inner { grid-template-columns: 1fr; padding-top: 200px; }
    .film-chips { justify-self: start; margin-bottom: 0; }
}
@media (max-width: 560px) { .film-chips li:nth-child(3) { display: none; } }


/* Livestock species: a mosaic of farm footage under the species editor (one tall tile, two stacked). */
.species-mosaic { margin-top: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 16px; height: clamp(420px, 44vw, 560px); }
.mosaic-tile { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-lg); background: var(--forest-900); box-shadow: var(--shadow-lg); }
.mosaic-tile.tile-tall { grid-row: span 2; }
.mosaic-tile video { display: block; width: 100%; height: 100%; object-fit: cover; }
.mosaic-tile::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(10, 30, 22, .7), transparent 45%); }
.mosaic-tile figcaption { position: absolute; left: 18px; bottom: 16px; z-index: 1; color: #fff; }
.mosaic-tile figcaption b { display: block; font-family: var(--font-display); font-size: 1.15rem; }
.mosaic-tile figcaption small { color: rgba(233, 241, 236, .85); font-size: .8rem; }
.mosaic-tile .reel-toggle { right: 14px; bottom: 14px; width: 36px; height: 36px; }
.mosaic-tile .reel-toggle svg { width: 15px; height: 15px; }
@media (max-width: 760px) {
    .species-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
    .mosaic-tile { aspect-ratio: 4 / 5; }
    .mosaic-tile.tile-tall { grid-row: auto; grid-column: span 2; aspect-ratio: 16 / 10; }
    .mosaic-tile figcaption small { display: none; }
}

/* Legal centre: Privacy, Terms and Cookies share one layout: document tabs, an at-a-glance
   summary, numbered sections, a contents list that follows the reader, and a print layout. */
.legal-hero { padding-bottom: clamp(64px, 8vw, 96px); }
.legal-hero .lead { max-width: 680px; margin-top: 16px; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 12px 36px; margin-top: 28px; font-size: .86rem; }
.legal-meta dt { color: #9fb6a8; text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; font-weight: 600; }
.legal-meta dd { margin: 3px 0 0; color: #e9f1ec; font-weight: 500; }
.legal-tabs-wrap { position: relative; z-index: 1; margin-top: -40px; margin-bottom: 40px; }
.legal-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.legal-tab {
    display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
    box-shadow: var(--shadow-md); color: var(--ink); text-decoration: none;
    transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.legal-tab:hover { border-color: var(--line-strong); transform: translateY(-2px); color: var(--ink); }
.legal-tab .i { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--leaf-100); color: var(--forest-700); }
.legal-tab b { display: block; font-size: .95rem; }
.legal-tab small { display: block; margin-top: 2px; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.legal-tab.is-current { border-color: var(--forest-700); box-shadow: 0 0 0 1px var(--forest-700), var(--shadow-md); }
.legal-tab.is-current .i { background: var(--forest-700); color: #fff; }

.legal-page .legal-toc ol { counter-reset: toc; list-style: none; padding-left: 0; gap: 2px; }
.legal-page .legal-toc li { counter-increment: toc; }
.legal-page .legal-toc a { display: flex; gap: 10px; padding: 6px 10px; border-radius: 8px; line-height: 1.35; }
.legal-page .legal-toc a::before { content: counter(toc); flex: none; width: 18px; color: var(--muted); font-variant-numeric: tabular-nums; }
.legal-page .legal-toc a:hover { background: var(--cream); text-decoration: none; }
.legal-page .legal-toc a.is-active { background: var(--leaf-100); color: var(--forest-800); font-weight: 600; }
.legal-print {
    margin-top: 16px; width: 100%; display: inline-flex; gap: 8px; align-items: center; justify-content: center;
    padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--cream);
    color: var(--ink-2); font: 500 .82rem var(--font-sans); cursor: pointer;
}
.legal-print:hover { border-color: var(--line-strong); color: var(--ink); }
.legal-print svg { width: 16px; height: 16px; }

.glance { padding: 22px 24px; margin-bottom: 8px; border-radius: var(--r-md); background: var(--cream); border: 1px solid var(--line); }
.glance-title { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--forest-700); }
.glance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin-top: 14px; }
.glance-card { padding-left: 14px; border-left: 3px solid var(--wheat-400); }
.glance-card b { display: block; color: var(--ink); font-size: .95rem; }
.legal-article .glance-card p { margin-top: 3px; font-size: .88rem; color: var(--muted); }
.legal-article .glance-foot { margin-top: 16px; font-size: .78rem; color: var(--muted); }

.legal-block { padding-top: 34px; margin-top: 34px; border-top: 1px solid var(--line); }
.legal-block:first-of-type { border-top: 0; margin-top: 18px; }
.legal-h { display: flex; gap: 14px; align-items: baseline; font-size: clamp(1.3rem, 2vw, 1.55rem); margin-bottom: 14px; scroll-margin-top: calc(var(--header-h) + 20px); }
.legal-num {
    flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
    background: var(--forest-700); color: #fff; font: 600 .85rem var(--font-sans); transform: translateY(-3px);
}
.legal-article code { font-size: .82em; padding: 1px 6px; border-radius: 5px; background: var(--cream); border: 1px solid var(--line); white-space: nowrap; }
.legal-article .legal-table td:first-child { font-weight: 500; color: var(--ink); }
.legal-contact {
    display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
    margin-top: 48px; padding: 24px 26px; border-radius: var(--r-md); background: var(--forest-800); color: #fff;
}
.legal-contact h2 { font-size: 1.2rem; color: #fff; }
.legal-article .legal-contact p { margin-top: 6px; color: #c8dacf; font-size: .92rem; }
.legal-article .legal-contact a:not(.btn) { color: var(--wheat-400); }
.legal-contact .btn { background: var(--wheat-400); color: var(--forest-900); border-color: transparent; }

@media (max-width: 900px) {
    .legal-tabs { gap: 8px; }
    .legal-tab { flex-direction: column; gap: 8px; padding: 12px; }
    .legal-tab b { font-size: .84rem; line-height: 1.25; }
    .legal-tab small { display: none; }
    .legal-page .legal-layout { grid-template-columns: 1fr; gap: 24px; }
    .legal-page .legal-toc { position: static; max-height: none; }
    .legal-page .legal-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .glance-grid, .legal-page .legal-toc ol { grid-template-columns: 1fr; }
    .legal-article { padding: 22px 18px; }
}
@media print {
    .legal-page [data-include], .legal-page .skip-link, .legal-tabs-wrap, .legal-toc, .legal-contact .btn, .toast-stack { display: none !important; }
    .legal-page .legal-hero { background: none; color: #000; padding: 0 0 16px; }
    .legal-page .legal-hero::before { display: none; }
    .legal-page .legal-hero h1, .legal-meta dd { color: #000; }
    .legal-page .legal-hero .lead, .legal-meta dt, .legal-page .breadcrumb { color: #444; }
    .legal-page .legal-layout { display: block; }
    .legal-page .legal-article { border: 0; padding: 0; max-width: none; }
    .legal-contact { background: none; color: #000; border: 1px solid #999; }
    .legal-contact h2, .legal-article .legal-contact p { color: #000; }
    .legal-block { break-inside: auto; }
    .legal-h { break-after: avoid; }
    .legal-table-wrap { overflow: visible; }
}
