/* Landing page (Views/Home/Index.cshtml). A static, cached file rather than an inline
   <style>: the page HTML halves, and repeat visits do not download these rules again.
   The admin-picked colours, font and size stay inline in the page (they change per site). */
:root {
    /* Brand accent — admin-skinnable via Landing Page Appearance (overridden below). */
    --pri: #16a34a;
    --pri-light: #22c55e;
    --pri-dark: #15803d;
    --pri-deep: #0f5132;
    /* Portal accents. These were a fixed orange (pesticide) and blue (buyer)
       that stayed put whatever brand colours an admin picked. Each portal now
       takes a different point between the two picked colours, so the three are
       still tellable apart with nothing off-brand on the page. Text and links
       use --pri-ink, the brand colour darkened enough to read on white. */
    --accent-farm: var(--pri);
    --accent-pest: color-mix(in srgb, var(--pri) 45%, var(--pri-dark));
    --accent-buyer: var(--pri-dark);
    --ink: #0f172a;
    --ink-soft: #334155;
    --muted: #64748b;
    --line: #e6ebf1;
    --line-soft: #eef2f7;
    --bg-soft: #f5f8f5;
    --bg-tint: #ecf5ee;
    /* Brand-coloured surfaces — the stats band, CTA card, hero stat card,
       featured portal and footer are painted in the two colours picked in
       Admin → Landing Page Appearance. They used to be those colours stirred
       into near-black, which read as dark grey whatever was selected.
       --on-brand is the text colour that stays readable on them, and --pri-ink
       the brand colour darkened enough to be text on white; both are computed
       per theme in the block further down. */
    --brand-1: var(--pri-dark);
    --brand-2: var(--pri);
    --on-brand: #fff;
    --pri-ink: var(--pri-dark);
    --radius: 16px;
    --shadow-sm: 0 1px 2px rgba(16,24,40,.05);
    --shadow-md: 0 8px 24px rgba(16,24,40,.08);
    --shadow-lg: 0 24px 60px rgba(16,24,40,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 78px; }
body {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, .brand-name { font-family: "Plus Jakarta Sans", "Inter", sans-serif; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--pri); outline-offset: 3px; border-radius: 6px; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Shared section header */
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pri-dark); background: var(--bg-tint); border: 1px solid color-mix(in srgb, var(--pri) 22%, transparent); padding: .38rem .8rem; border-radius: 30px; }
.sec-head { text-align: center; max-width: 42rem; margin: 0 auto 46px; }
.sec-head h2 { font-size: 2.1rem; font-weight: 800; letter-spacing: -.025em; margin: 1rem 0 .7rem; line-height: 1.15; }
.sec-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: inherit; font-weight: 600; border-radius: 11px; cursor: pointer; border: 1px solid transparent; transition: background .18s, border-color .18s, color .18s, transform .1s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn i { font-size: 1.02em; }
.btn-sm { padding: .5rem 1rem; font-size: .87rem; }
.btn-md { padding: .78rem 1.4rem; font-size: .95rem; }
.btn-primary { background: var(--pri); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--pri) 26%, transparent); }
.btn-primary:hover { background: var(--pri-dark); color: #fff; }
.btn-orange { background: var(--accent-pest); color: var(--on-brand); }
.btn-orange:hover { background: color-mix(in srgb, var(--accent-pest) 78%, #000); color: var(--on-brand); }
.btn-ghost { background: #fff; color: var(--ink-soft); border-color: var(--line); }
.btn-ghost:hover { border-color: #cbd5e1; background: var(--bg-soft); color: var(--ink); }
/* On brand-coloured surfaces — the label has to survive a light brand colour. */
.btn-light { background: #fff; color: var(--pri-ink); }
.btn-light:hover { background: color-mix(in srgb, var(--pri) 10%, #fff); color: var(--pri-ink); }
.btn-outline-light { background: transparent; color: var(--on-brand); border-color: color-mix(in srgb, var(--on-brand) 40%, transparent); }
.btn-outline-light:hover { background: color-mix(in srgb, var(--on-brand) 12%, transparent); border-color: color-mix(in srgb, var(--on-brand) 65%, transparent); color: var(--on-brand); }
.btn-block { width: 100%; }

/* ===== Top nav ===== */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.8); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s, background .2s; }
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(16,24,40,.05); background: rgba(255,255,255,.92); }
/* min-width:0 lets the brand shrink instead of forcing the bar wider than
   the viewport (which is what pushed the nav items into each other). */
.nav-inner { display: flex; align-items: center; gap: 1rem; height: 62px; min-width: 0; }
.brand { display: flex; align-items: center; gap: .6rem; min-width: 0; flex-shrink: 1; }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-links .btn, .nav-link, .nav-lang { white-space: nowrap; }
.brand-logo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 1.05rem; background: linear-gradient(135deg, var(--pri-light), var(--pri-dark)); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.brand-name { font-weight: 800; font-size: 1.02rem; letter-spacing: -.01em; }
.nav-links { display: flex; align-items: center; gap: .3rem; margin-inline-start: auto; }
.nav-sep { flex: 0 0 auto; align-self: center; width: 1px; height: 20px; background: var(--line); margin: 0 .3rem; }
/* Segmented language switch */
.nav-lang { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 10px; padding: 2px; background: #fff; }
.nav-lang a { font-size: .78rem; font-weight: 700; color: var(--muted); padding: .28rem .55rem; border-radius: 7px; transition: color .15s, background .15s; }
.nav-lang a:hover { color: var(--pri-dark); }
.nav-lang a.on { color: #fff; background: var(--pri); }
.nav-toggle { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 1.3rem; cursor: pointer; }
/* Marketplace + hamburger, shown side by side on small screens only */
.nav-mobile-actions { display: none; align-items: center; gap: .45rem; margin-inline-start: auto; }
.nav-mobile-actions .nav-mkt { height: 42px; }

/* Plain text link in the nav bar (Marketplace) */
.nav-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; font-size: .92rem; color: var(--ink-soft); padding: .5rem .85rem; border-radius: 9px; transition: color .15s, background .15s; }
.nav-link:hover { color: var(--pri-dark); background: color-mix(in srgb, var(--pri) 8%, transparent); }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg-tint) 0%, #f5faf6 55%, #fff 100%); padding: 70px 0 60px; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(15,23,42,.04) 1px, transparent 1px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 75%); mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 75%); z-index: 1; }
.hero > .container { position: relative; z-index: 2; }

/* ===== Hero backdrop =====
   Footage sits behind the hero when one has been placed in wwwroot/images/hero.
   It is texture, not subject: the copy, the buttons and the white product card
   are the page, so the scrim keeps the image at the strength of a watermark and
   the existing ink colours stay exactly as legible as they are without it. */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; background-size: cover; background-position: center 62%; background-repeat: no-repeat; }
.hero-bg-video { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; display: block; }

/* A looping video is a battery and data cost a phone visitor never asked for, and
   on a narrow screen the footage is almost entirely behind the copy anyway. The
   still does the same job for a fraction of the bytes. */
@media (max-width: 860px) { .hero-bg-video { display: none; } }

/* Someone who has asked the system to stop moving things means it. */
@media (prefers-reduced-motion: reduce) { .hero-bg-video { display: none; } }

/* Two gradients doing two different jobs: the horizontal one clears the left
   column where the headline and buttons live, the vertical one fades the footage
   into the white section that follows so the hero has no hard bottom edge. */
.hero-bg-scrim {
    position: absolute; inset: 0;
    background:
        linear-gradient(100deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.93) 34%, rgba(255,255,255,.68) 62%, rgba(255,255,255,.78) 100%),
        linear-gradient(180deg, rgba(255,255,255,.86) 0%, rgba(255,255,255,.55) 40%, rgba(255,255,255,.92) 100%);
}
[dir="rtl"] .hero-bg-scrim {
    background:
        linear-gradient(260deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.93) 34%, rgba(255,255,255,.68) 62%, rgba(255,255,255,.78) 100%),
        linear-gradient(180deg, rgba(255,255,255,.86) 0%, rgba(255,255,255,.55) 40%, rgba(255,255,255,.92) 100%);
}

/* The dot texture is for the plain gradient hero; over footage it reads as noise. */
.hero.has-backdrop::before { opacity: .35; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.hero-title { font-size: 3.15rem; line-height: 1.06; font-weight: 800; letter-spacing: -.03em; margin: .3rem 0 1.1rem; color: var(--ink); }
.hero-title .accent { color: var(--pri-dark); }
.hero-lead { font-size: 1.14rem; line-height: 1.65; color: var(--ink-soft); max-width: 32rem; margin: 0 0 1.7rem; }
/* Clean copy: headings break into even lines, paragraphs never leave one word alone
   on the last line, and section intros read at a comfortable measure. */
h1, h2, h3, .hero-title { text-wrap: balance; }
p { text-wrap: pretty; }
.guide-head p, section .container > div > p { line-height: 1.6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-checks { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin-top: 1.5rem; }
.hero-checks span { display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; color: var(--ink-soft); font-weight: 500; }
.hero-checks i { color: var(--pri); font-size: 1.05rem; }

/* Hero product visual */
.hero-art { position: relative; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.art-card { width: 100%; max-width: 340px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
/* Sliding image showcase — Farming / Pesticide / Buyers */
.art-slider { position: relative; overflow: hidden; }
.art-track { display: flex; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.art-slide { position: relative; flex: 0 0 100%; height: 178px; display: grid; place-items: center; color: rgba(255,255,255,.92); font-size: 3.6rem; overflow: hidden; }
.art-slide.s-farm { background: linear-gradient(135deg, var(--pri-light), var(--pri-dark)); }
.art-slide.s-pest { background: linear-gradient(135deg, var(--pri), var(--accent-pest)); }
.art-slide.s-buyer { background: linear-gradient(135deg, var(--accent-pest), var(--accent-buyer)); }
/* A slide holds every photo from its folder stacked; only .on is visible, and the
   script below cross-fades between them. One photo simply stays on. */
.art-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; opacity: 0; transition: opacity .8s ease; }
.art-slide img.on { opacity: 1; }
/* Bottom shade so the "Live" badge and dots stay readable over any photo */
.art-slide::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(0,0,0,.12) 0%, transparent 32%, transparent 62%, rgba(0,0,0,.28) 100%); pointer-events: none; }
.art-slider .badge-live { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 3; font-size: .68rem; font-weight: 700; color: var(--ink); background: #fff; padding: .3rem .6rem; border-radius: 20px; display: inline-flex; align-items: center; gap: .4rem; box-shadow: var(--shadow-sm); }
.art-slider .badge-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pri); box-shadow: 0 0 0 0 color-mix(in srgb, var(--pri) 55%, transparent); animation: artpulse 2s infinite; }
@keyframes artpulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pri) 45%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.art-dots { position: absolute; inset-inline-end: 14px; bottom: 14px; z-index: 3; display: flex; gap: 6px; }
.art-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 20px; background: rgba(255,255,255,.5); cursor: pointer; transition: background .2s, width .2s; }
.art-dot.on { background: #fff; width: 20px; }
.art-body { padding: 16px 18px 18px; }
.art-co { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.art-body h4 { margin: .25rem 0 .35rem; font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; transition: opacity .3s; }
.art-sub { font-size: .9rem; color: var(--ink-soft); transition: opacity .3s; }
@media (prefers-reduced-motion: reduce) { .art-track { transition: none; } .art-slide img { transition: none; } .art-slider .badge-live .dot { animation: none; } }
.art-stat { width: 100%; max-width: 340px; background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); color: var(--on-brand); border-radius: 18px; padding: 18px 20px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-md); }
.art-stat .as-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; background: color-mix(in srgb, var(--on-brand) 14%, transparent); flex: 0 0 auto; }
.art-stat strong { display: block; font-family: "Plus Jakarta Sans"; font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.art-stat span { font-size: .82rem; color: color-mix(in srgb, var(--on-brand) 75%, transparent); }

/* Hero search bar */

/* ===== Guided path — chevron stepper =====
   The new user's map of the whole journey, in one glance: watch → sign up →
   pick a business → sign in. Each segment is a real link to that step, so the
   bar does the guiding, not just the describing. Built as breadcrumb chevrons
   (clip-path arrows) that mirror cleanly under RTL and fold to a stacked list
   on a phone. */
.guide { padding: 50px 0 8px; }
.guide-head { text-align: center; max-width: 42rem; margin: 0 auto 30px; }
.guide-head h2 { font-size: 1.8rem; font-weight: 800; letter-spacing: -.025em; margin: 1rem 0 .55rem; line-height: 1.15; }
.guide-head p { color: var(--muted); font-size: 1.02rem; margin: 0; }

.guide-steps { display: flex; gap: 8px; align-items: stretch; }
/* Each segment is a real button now — a tab that selects its stage. */
.gstep {
    flex: 1 1 0; min-width: 0; position: relative; display: flex; align-items: center; gap: .75rem;
    padding: 1rem 1.6rem 1rem 1.9rem; color: var(--ink); text-align: start; font: inherit; border: 0; cursor: pointer;
    background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 12px 28px -18px rgba(15,23,42,.3);
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%, 20px 50%);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.gstep:first-child { clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%); padding-inline-start: 1.3rem; border-radius: 14px 0 0 14px; }
.gstep:last-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 20px 50%); border-radius: 0 14px 14px 0; }
.gstep:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 20px 38px -20px rgba(15,23,42,.42); }
.gstep:focus-visible { outline: 2px solid var(--pri); outline-offset: 2px; }
.gstep .gs-num { position: relative; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
    font-family: "Plus Jakarta Sans"; font-weight: 800; font-size: 1rem;
    background: color-mix(in srgb, var(--pri) 13%, #fff); color: var(--pri-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pri) 22%, transparent);
    transition: background .18s ease, color .18s ease; }
.gstep .gs-ck { display: none; font-size: 1.1rem; }
.gstep .gs-ic { flex: 0 0 auto; font-size: 1.25rem; color: var(--pri); transition: color .18s ease; }
.gstep .gs-txt { min-width: 0; line-height: 1.2; }
.gstep .gs-k { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.gstep .gs-l { display: block; font-size: .92rem; font-weight: 500; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }

/* Done: the stages already passed — a green badge with a tick, so the trail
   behind the current step reads as completed and nothing feels lost. */
.gstep.is-done .gs-num { background: var(--pri); color: #fff; box-shadow: none; }
.gstep.is-done .gs-n { display: none; }
.gstep.is-done .gs-ck { display: block; }
.gstep.is-done .gs-ic { color: var(--pri); }

/* Active: the stage you are on, lit like a wizard's current step. */
.gstep.is-active { background: linear-gradient(135deg, var(--pri-light), var(--pri-dark)); color: #fff;
    box-shadow: 0 16px 34px -16px color-mix(in srgb, var(--pri) 72%, transparent); }
.gstep.is-active .gs-num { background: rgba(255,255,255,.22); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.gstep.is-active .gs-ic { color: #fff; }
.gstep.is-active .gs-k { color: rgba(255,255,255,.8); }
.gstep.is-active .gs-l { color: #fff; }

/* ---- The stage panel: what the selected step is, and its one action ----
   It sits under the bar and changes with the active step, with Back / Next and
   a progress row so moving between stages never loses the reader. */
.guide-stage {
    margin-top: 16px; border-radius: 18px; padding: 22px 24px;
    background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
}
.gpanel { display: none; align-items: center; gap: 18px; }
.gpanel.is-on { display: flex; }
@keyframes gp-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) { .gpanel.is-on { animation: gp-in .32s cubic-bezier(.4,0,.2,1); } }
.gp-ic { flex: 0 0 auto; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 1.65rem;
    background: color-mix(in srgb, var(--pri) 12%, #fff); color: var(--pri-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pri) 18%, transparent); }
.gp-main { flex: 1 1 auto; min-width: 0; }
.gp-main h3 { margin: 0 0 .3rem; font-size: 1.22rem; font-weight: 800; letter-spacing: -.01em; }
.gp-main p { margin: 0; color: var(--muted); font-size: .96rem; }
.gp-cta { flex: 0 0 auto; }
/* Navigation is the chevron tabs themselves now — no Back / Next buttons. The
   foot carries the reassurance points and the progress dots instead. */
.guide-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem 1.25rem; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(15,23,42,.08); }
.guide-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; }
.guide-checks li { display: inline-flex; align-items: center; gap: .45rem; font-size: .86rem; font-weight: 600; color: var(--ink-soft); }
.guide-checks i { color: var(--pri); font-size: 1.02rem; }
.guide-dots { display: flex; gap: 7px; }
.gdot { width: 9px; height: 9px; border-radius: 20px; border: 0; padding: 0; cursor: pointer;
    background: color-mix(in srgb, var(--pri) 20%, #d7e0e8); transition: width .2s ease, background .2s ease; }
.gdot.on { width: 24px; background: var(--pri); }
.guide-tip { margin: 12px 0 0; font-size: .82rem; color: var(--muted); display: inline-flex; align-items: center; gap: .5rem; }
.guide-tip i { color: var(--pri); font-size: .95rem; }

/* RTL: the arrows point the other way, so every notch is mirrored on x. */
[dir="rtl"] .gstep { clip-path: polygon(100% 0, 20px 0, 0 50%, 20px 100%, 100% 100%, calc(100% - 20px) 50%); }
[dir="rtl"] .gstep:first-child { clip-path: polygon(100% 0, 20px 0, 0 50%, 20px 100%, 100% 100%); border-radius: 0 14px 14px 0; }
[dir="rtl"] .gstep:last-child { clip-path: polygon(100% 0, 0 0, 0 100%, 100% 100%, calc(100% - 20px) 50%); border-radius: 14px 0 0 14px; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .gstep { background: rgba(255,255,255,.94); }
    .gstep.is-start { background: linear-gradient(135deg, var(--pri-light), var(--pri-dark)); }
}
/* Phone: the chevron row would crush four labels into slivers, so it becomes a
   stacked list — each step a full rounded card, joined by a short connector. */
@media (max-width: 860px) {
    .guide-steps { flex-direction: column; gap: 10px; }
    .gstep, .gstep:first-child, .gstep:last-child,
    [dir="rtl"] .gstep, [dir="rtl"] .gstep:first-child, [dir="rtl"] .gstep:last-child {
        clip-path: none; border-radius: 14px; padding: .95rem 1.1rem;
    }
    .gstep:not(:last-child)::after {
        content: ""; position: absolute; inset-inline-start: 34px; bottom: -10px; height: 10px; width: 2px;
        background: color-mix(in srgb, var(--pri) 30%, transparent);
    }
    /* The stage panel stacks: icon and title together on top, the action a
       full-width button under them. */
    .gpanel { flex-direction: column; align-items: stretch; gap: 14px; text-align: start; }
    .gpanel .gp-cta { width: 100%; }
    .guide-foot { justify-content: center; }
}

/* ===== Sections ===== */
.section { padding: 82px 0; }
.section.soft { background: var(--bg-soft); }

/* Today's prices */
.price-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
/* Companies — one mixed strip that drifts left-to-right; hover or focus pauses it.
   The section is just this slider now (no heading over it), so its top padding is
   trimmed and it sits closer to the band above. */
#market { padding-top: 40px; }
/* Stepping carousel. Without JS (or with reduced motion) it is a plain row that
   scrolls sideways. The script adds .is-live, which lays each card on a slot
   measured from the centre (--x). Each step moves every card one slot to the right;
   the card landing in the centre zooms forward (.is-focus), holds, settles back,
   and the row moves on. The card pushed off the right fades out (.is-out) and
   fades back in on the empty left slot — every company appears exactly once.
   translate and scale are separate properties so the glide and the zoom can
   each have their own timing. */
.co-carousel { --co-w: 300px; --co-h: 268px; --co-media: 196px; position: relative; overflow-x: auto; padding: 30px 0 38px; }
.co-carousel .price-card { height: var(--co-h); }
.co-carousel .price-card .pc-media { flex-basis: var(--co-media); }
.co-carousel .pc-logo { width: 96px; height: 96px; border-radius: 20px; }
.co-track { display: flex; gap: 22px; width: max-content; direction: ltr; margin-inline: auto; }
.co-track > .price-card { flex: 0 0 var(--co-w); width: var(--co-w); }
[dir="rtl"] .co-track > .price-card { direction: rtl; }
.co-carousel.is-live { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.co-carousel.is-live .co-track { display: block; position: relative; width: auto; height: var(--co-h); }
.co-carousel.is-live .price-card {
    position: absolute; top: 0; left: 50%; margin-left: calc(var(--co-w) / -2);
    transform: none; translate: var(--x, 0px) 0; scale: .9; opacity: .55;
    transition: translate .9s cubic-bezier(.65, 0, .35, 1), scale .55s cubic-bezier(.2, .8, .2, 1), opacity .55s ease, box-shadow .55s ease, border-color .2s;
}
.co-carousel.is-live .price-card.is-focus { scale: 1.08; opacity: 1; z-index: 2; box-shadow: 0 24px 48px -20px rgba(15, 23, 42, .4), 0 0 0 1px color-mix(in srgb, var(--co-pri) 30%, transparent); }
.co-carousel.is-live .price-card:hover { opacity: 1; }
.co-carousel.is-live .price-card.is-out { opacity: 0; pointer-events: none; }
.co-carousel.is-live .price-card.no-anim { transition: none; }
@media (max-width: 520px) { .co-carousel { --co-w: 250px; --co-h: 252px; --co-media: 180px; } .co-carousel .pc-logo { width: 84px; height: 84px; } }

/* Company cards as glass: a frosted body with a white edge and a light catch along
   the top, the media inset as a rounded panel. The centred card glows softly in its
   own company colour (--co-pri). */
/* Borderless tiles, as on the marketplace: no frame or edge — the picture runs
   to the rounded corners and depth comes from a soft shadow alone. */
.co-carousel .price-card {
    border-radius: 20px; padding: 0; border: 0;
    background: var(--glass-strong);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    box-shadow: 0 14px 34px -18px rgba(15, 23, 42, .32);
}
.co-carousel .price-card .pc-media { border-radius: 0; }
.co-carousel .price-card .pc-body { padding: 8px 14px 10px; background: transparent; }
.co-carousel.is-live .price-card.is-focus {
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 26px 50px -22px color-mix(in srgb, var(--co-pri) 55%, rgba(15, 23, 42, .4));
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .co-carousel .price-card { background: rgba(255, 255, 255, .92); }
}
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
/* Every price card is the exact same fixed size — media on top, body fills
   the rest, price/history pinned to the bottom so all cards align. */
/* Each card carries its own company's colour combination from the page designer via
   inline --co-pri / --co-accent, so the tile matches the microsite it opens. The
   values here are only the guard for a card rendered without them. */
.price-card { --co-pri: var(--pri); --co-accent: var(--pri-dark); display: flex; flex-direction: column; height: 240px; background: #fff; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; text-align: start; font: inherit; cursor: pointer; padding: 0; width: 100%; }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--co-pri) 35%, transparent); }
/* Larger image area, tighter text below */
.pc-media { flex: 0 0 174px; position: relative; display: grid; place-items: center; color: rgba(255,255,255,.85); font-size: 2.6rem; overflow: hidden; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; }
/* Company cover photo fills the media area; logo floats on top */
.pc-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.pc-media.has-cover::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,.48)); }
/* Company logo tile shown in the media area of company cards */
.pc-logo { position: relative; z-index: 2; width: 88px; height: 88px; border-radius: 18px; background: #fff; display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow-md); font-family: "Plus Jakarta Sans"; font-weight: 800; font-size: 2rem; color: var(--co-accent); }
.pc-logo img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.pc-loc { margin-top: .18rem; font-size: .72rem; color: var(--muted); display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-loc i { color: var(--co-pri); }
.pc-media { background: linear-gradient(135deg, var(--co-pri), var(--co-accent)); }
.pc-body { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 6px 12px 8px; }
.pc-co { font-size: .67rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-body h4 { margin: .1rem 0 0; font-size: .95rem; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Pick what you do */
.portal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.portal { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px 26px; box-shadow: var(--shadow-sm); transition: transform .22s, box-shadow .22s; }
.portal:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.portal-ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 16px; }
.p-farmer .portal-ic { background: color-mix(in srgb, var(--accent-farm) 12%, #fff); color: var(--pri-ink); }
.p-pest .portal-ic { background: color-mix(in srgb, var(--accent-pest) 12%, #fff); color: var(--pri-ink); }
.portal h3 { margin: 0 0 .4rem; font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; }
.portal > p { margin: 0 0 1.1rem; color: var(--muted); font-size: .95rem; }
.portal ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .6rem; }
.portal li { display: flex; align-items: center; gap: .6rem; font-size: .93rem; color: var(--ink-soft); }
.portal li i { font-size: 1.05rem; }
.p-farmer li i { color: var(--accent-farm); }
.p-pest li i { color: var(--accent-pest); }
.portal-actions { display: flex; gap: .6rem; margin-top: auto; }
.portal-actions .btn { flex: 1; }
/* Featured (buyer) — dark card */
.portal.is-featured { background: linear-gradient(160deg, var(--brand-1), var(--brand-2)); border-color: transparent; color: var(--on-brand); }
.portal.is-featured h3 { color: var(--on-brand); }
.portal.is-featured > p { color: color-mix(in srgb, var(--on-brand) 70%, transparent); }
.portal.is-featured li { color: color-mix(in srgb, var(--on-brand) 88%, transparent); }
.portal.is-featured li i { color: color-mix(in srgb, var(--on-brand) 80%, transparent); }
.portal.is-featured .portal-ic { background: color-mix(in srgb, var(--on-brand) 14%, transparent); color: var(--on-brand); }
.portal-badge { position: absolute; top: 18px; inset-inline-end: 18px; font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--pri-ink); background: #fff; padding: .32rem .7rem; border-radius: 20px; }

/* See how it works */
.vid-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.vid-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); transition: transform .22s, box-shadow .22s; }
.vid-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
/* Photo thumbnail: the image sits on the element itself (inline background-image),
   a scrim on ::before keeps the tag, play button and caption legible over any photo. */
.vid-thumb { position: relative; height: 240px; display: grid; place-items: center; overflow: hidden; background-color: var(--pri-ink); background-size: cover; background-position: center; isolation: isolate; }
.vid-thumb::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.28) 55%, rgba(0,0,0,.66) 100%); transition: background .3s; }
.vid-card:hover .vid-thumb::before { background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.38) 55%, rgba(0,0,0,.72) 100%); }
.vid-thumb .v-tag { position: absolute; top: 14px; inset-inline-start: 14px; font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.25); padding: .3rem .6rem; border-radius: 20px; }
.vid-cap { position: absolute; bottom: 14px; inset-inline-start: 16px; display: inline-flex; align-items: center; gap: .45rem; color: #fff; font-weight: 800; font-size: 1rem; letter-spacing: -.01em; text-shadow: 0 2px 8px rgba(0,0,0,.45); }
.vid-play { position: relative; width: 70px; height: 70px; border-radius: 50%; background: rgba(255,255,255,.95); box-shadow: 0 10px 30px rgba(0,0,0,.35); display: grid; place-items: center; font-size: 1.8rem; color: var(--pri-ink); transition: transform .2s; }
.vid-play::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); animation: vid-pulse 2.2s ease-out infinite; }
@keyframes vid-pulse { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .vid-play::after { animation: none; } }
.vid-buyer .vid-play { color: var(--accent-buyer); }
.vid-pest .vid-play { color: var(--accent-pest); }
.vid-card:hover .vid-play { transform: scale(1.1); }
.vid-body { padding: 22px 24px 24px; }
.vid-body h3 { margin: 0 0 .4rem; font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
.vid-body p { margin: 0; color: var(--muted); font-size: .93rem; }
.vid-link { display: inline-flex; align-items: center; gap: .45rem; margin-top: 14px; font-weight: 700; font-size: .9rem; }
.vid-link { color: var(--pri-ink); }
.vid-link i { transition: transform .2s; }
.vid-card:hover .vid-link i { transform: translateX(4px); }

/* Stats band */
.stats-band { background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); color: var(--on-brand); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); padding: 44px 0; text-align: center; }
.stat-item { padding: 4px 1.4rem; }
.stat-item + .stat-item { border-inline-start: 1px solid color-mix(in srgb, var(--on-brand) 16%, transparent); }
.stat-item strong { display: block; font-family: "Plus Jakarta Sans"; font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat-item span { display: block; margin-top: .3rem; font-size: .85rem; color: color-mix(in srgb, var(--on-brand) 74%, transparent); }

/* CTA */
.cta-wrap { padding: 84px 0; }
.cta-card { position: relative; overflow: hidden; border-radius: 26px; background: linear-gradient(150deg, var(--brand-1), var(--brand-2)); color: var(--on-brand); padding: 66px 28px; text-align: center; }
.cta-card .orb { position: absolute; border-radius: 50%; background: color-mix(in srgb, var(--on-brand) 7%, transparent); }
.cta-card .orb1 { top: -120px; inset-inline-start: -80px; width: 340px; height: 340px; }
.cta-card .orb2 { bottom: -150px; inset-inline-end: -70px; width: 380px; height: 380px; }
.cta-inner { position: relative; max-width: 40rem; margin: 0 auto; }
.cta-card h2 { font-size: 2.1rem; font-weight: 800; margin: 0 0 .7rem; letter-spacing: -.02em; }
.cta-card p { font-size: 1.08rem; color: color-mix(in srgb, var(--on-brand) 80%, transparent); margin: 0 0 1.7rem; }
.cta-btns { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.cta-note { margin-top: 1.3rem; font-size: .86rem; color: color-mix(in srgb, var(--on-brand) 72%, transparent); display: inline-flex; align-items: center; gap: .5rem; }

/* Footer — same brand gradient as the stats band and CTA card, with every
   tone (links, social chips, dividers) mixed from --on-brand so the whole
   block follows the theme. The greys used to be hardcoded green, which
   clashed on a blue/purple/orange theme. */
.footer {
    position: relative; color: var(--on-brand); padding: 52px 0 0;
    background: linear-gradient(150deg, var(--brand-1) 0%, var(--brand-2) 100%);
}
.foot-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px 40px; flex-wrap: wrap; padding-bottom: 30px; }
.foot-brand { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.foot-brand span { font-weight: 800; color: var(--on-brand); font-size: 1.05rem; font-family: "Plus Jakarta Sans"; }
/* The logo chip is itself brand-coloured, so on a brand-coloured footer it
   reads as a tint of the surrounding surface instead. */
.footer .brand-logo { background: color-mix(in srgb, var(--on-brand) 16%, transparent); color: var(--on-brand); }
.foot-desc { font-size: .92rem; color: color-mix(in srgb, var(--on-brand) 78%, transparent); max-width: 22rem; margin: 0; }
.foot-right { display: flex; flex-direction: column; align-items: flex-end; gap: 1.1rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: flex-end; }
.foot-links a { font-size: .92rem; font-weight: 600; color: color-mix(in srgb, var(--on-brand) 88%, transparent); transition: color .15s; }
.foot-links a:hover { color: var(--on-brand); }
.foot-social { display: flex; gap: .5rem; }
.foot-social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--on-brand) 14%, transparent); color: var(--on-brand); transition: background .18s, transform .18s; }
.foot-social a:hover { background: color-mix(in srgb, var(--on-brand) 28%, transparent); transform: translateY(-2px); }
.foot-bottom { border-top: 1px solid color-mix(in srgb, var(--on-brand) 20%, transparent); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.foot-bottom p { margin: 0; font-size: .85rem; color: color-mix(in srgb, var(--on-brand) 72%, transparent); }
.foot-meta { display: flex; align-items: center; gap: 1.4rem; font-size: .82rem; color: color-mix(in srgb, var(--on-brand) 72%, transparent); flex-wrap: wrap; }
.foot-meta span { display: inline-flex; align-items: center; gap: .45rem; }

/* =====================================================================
   Crystal page — the whole landing page in the frosted-glass style of the
   portals' Crystal skin and the sign-in page. One soft wash of the site
   colours (plus two slow glows) sits fixed behind everything; sections are
   transparent over it, and the bands that used to be solid brand colour
   (stats, call to action, footer) become glass panels with dark text.
   The wash is what makes glass read as glass. Text stays dark and opaque.
   ===================================================================== */
:root {
    --glass: rgba(255, 255, 255, .55); --glass-strong: rgba(255, 255, 255, .78);
    --glass-edge: rgba(255, 255, 255, .82); --glass-blur: blur(16px) saturate(160%);
    --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 12px 36px -18px rgba(15, 23, 42, .22);
}
body { background: #f4f8f6; }
body::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(at 8% 10%, color-mix(in srgb, var(--pri) 20%, transparent) 0, transparent 48%),
        radial-gradient(at 94% 18%, rgba(129, 140, 248, .18) 0, transparent 44%),
        radial-gradient(at 72% 96%, color-mix(in srgb, var(--pri-dark) 14%, transparent) 0, transparent 52%),
        radial-gradient(at 18% 92%, rgba(56, 189, 248, .12) 0, transparent 46%),
        linear-gradient(170deg, #f5faf7 0%, #eef4fb 60%, #f5f2fb 100%);
}
body::after {
    content: ""; position: fixed; z-index: -1; pointer-events: none; border-radius: 50%;
    width: 46vmax; height: 46vmax; top: 20%; left: -12vmax; filter: blur(80px);
    background: color-mix(in srgb, var(--pri) 18%, transparent);
    animation: page-glow 20s ease-in-out infinite alternate;
}
@keyframes page-glow { from { transform: translate(0, 0) scale(1); } to { transform: translate(18vmax, -8vmax) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { body::after { animation: none; } }
.section.soft { background: transparent; }
/* The hero keeps its own art but fades into the wash rather than to white. */
.hero { background: linear-gradient(180deg, var(--bg-tint) 0%, color-mix(in srgb, var(--bg-tint) 40%, transparent) 60%, transparent 100%); }

/* Glass cards: portals (the featured one keeps its colour, so it still leads) and videos. */
.portal:not(.is-featured), .vid-card {
    background: var(--glass-strong); border: 0;
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    box-shadow: 0 14px 34px -18px rgba(15, 23, 42, .28);
}
.portal:not(.is-featured):hover, .vid-card:hover { box-shadow: 0 24px 46px -22px rgba(15, 23, 42, .36); }

/* The Buyer card leads without shouting. It was a solid green block that
   unbalanced the row; now it is the same glass as the others, only raised a
   little and ringed in brand green, with the "Most popular" badge doing the
   pointing. Dark text throughout, like its neighbours. */
.portal.is-featured {
    background: var(--glass-strong); border: 0; color: var(--ink);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--pri) 42%, transparent),
                0 22px 46px -22px color-mix(in srgb, var(--pri) 45%, rgba(15, 23, 42, .4));
}
.portal.is-featured:hover {
    box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--pri) 62%, transparent),
                0 30px 56px -24px color-mix(in srgb, var(--pri) 52%, rgba(15, 23, 42, .45));
}
.portal.is-featured h3 { color: var(--ink); }
.portal.is-featured > p { color: var(--muted); }
.portal.is-featured li { color: var(--ink-soft); }
.portal.is-featured li i { color: var(--pri); }
.portal.is-featured .portal-ic { background: color-mix(in srgb, var(--pri) 12%, #fff); color: var(--pri-ink); }
.portal-badge { color: var(--pri-ink); background: color-mix(in srgb, var(--pri) 13%, #fff);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pri) 25%, transparent); }

/* Stats: a glass strip instead of a solid band; the figures carry the colour. */
.stats-band { background: transparent; color: var(--ink); padding: 8px 0; }
.stats-inner {
    padding: 30px 0; border-radius: 24px;
    background: var(--glass); border: 1px solid var(--glass-edge);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
}
.stat-item + .stat-item { border-inline-start-color: rgba(15, 23, 42, .08); }
.stat-item strong { background: linear-gradient(135deg, var(--pri), var(--pri-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-item span { color: var(--muted); }

/* Call to action: a tinted glass card; its orbs become soft colour glows behind the glass. */
.cta-card {
    color: var(--ink); isolation: isolate;
    background: linear-gradient(150deg, color-mix(in srgb, var(--pri) 16%, rgba(255, 255, 255, .62)), rgba(255, 255, 255, .55));
    border: 1px solid var(--glass-edge);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow), 0 30px 60px -36px color-mix(in srgb, var(--pri) 60%, transparent);
}
.cta-card .orb { z-index: -1; filter: blur(40px); }
.cta-card .orb1 { background: color-mix(in srgb, var(--pri) 32%, transparent); }
.cta-card .orb2 { background: rgba(99, 102, 241, .2); }
.cta-card h2 { color: var(--ink); }
.cta-card p, .cta-note { color: var(--ink-soft); }
.cta-note i { color: var(--pri); }
.cta-card .btn-light { background: linear-gradient(135deg, var(--pri), var(--pri-dark)); color: var(--on-brand); border-color: transparent; box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--pri) 80%, transparent); }
.cta-card .btn-light:hover { filter: brightness(1.05); color: var(--on-brand); }
.cta-card .btn-outline-light { background: var(--glass-strong); color: var(--ink); border: 1px solid rgba(15, 23, 42, .1); }
.cta-card .btn-outline-light:hover { background: #fff; color: var(--pri-ink); border-color: color-mix(in srgb, var(--pri) 40%, transparent); }

/* Footer: a frosted base with dark text. */
.footer {
    color: var(--ink);
    background: rgba(255, 255, 255, .6);
    border-top: 1px solid var(--glass-edge);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95);
}
.foot-brand span { color: var(--ink); }
.footer .brand-logo { background: linear-gradient(135deg, var(--pri), var(--pri-dark)); color: var(--on-brand); }
.foot-desc, .foot-bottom p, .foot-meta { color: var(--muted); }
.foot-meta i { color: var(--pri); }
.foot-links a { color: var(--ink-soft); }
.foot-links a:hover { color: var(--pri-ink); }
.foot-social a { background: var(--glass-strong); border: 1px solid rgba(15, 23, 42, .07); color: var(--ink-soft); }
.foot-social a:hover { background: var(--pri); color: var(--on-brand); }
.foot-bottom { border-top-color: rgba(15, 23, 42, .08); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .stats-inner, .cta-card, .footer, .portal, .vid-card { background: rgba(255, 255, 255, .94); }
}

/* =====================================================================
   Clean & bold — the layer over the Crystal page above. Crisp white with
   quiet grey sections instead of one coloured haze; the moments that matter
   (stats, the call to action, the footer) become strong surfaces. Every
   colour still comes from the admin's two brand colours (--pri / --pri-dark),
   and the haze's always-running blur and glow animation are gone, which
   makes scrolling lighter on phones. Delete this block to go back.
   ===================================================================== */
:root {
    --clean-bg: #ffffff;
    --clean-soft: #f7f9f8;
    --clean-line: #e8edf0;
    --ink-deep: #0b1220;
    --lift: 0 1px 2px rgba(16,24,40,.04), 0 18px 40px -24px rgba(16,24,40,.28);
    --lift-hover: 0 2px 4px rgba(16,24,40,.05), 0 30px 60px -28px rgba(16,24,40,.38);
}
body { background: var(--clean-bg); }
body::before, body::after { content: none; display: none; animation: none; }

/* Sections: white, alternating with a quiet grey edged by hairlines. */
.section { padding: 84px 0; }
.section.soft { background: var(--clean-soft); border-block: 1px solid var(--clean-line); }
.sec-head { margin-bottom: 44px; }
.sec-head h2 { letter-spacing: -.025em; }
.eyebrow { background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.05); }

/* Hero: the dot grid stays, a soft brand glow sits behind the art, the type tightens. */
.hero { background: linear-gradient(180deg, color-mix(in srgb, var(--pri) 7%, #fff) 0%, #fff 78%); padding: 84px 0 88px; }
.hero-title { letter-spacing: -.035em; line-height: 1.04; }
.hero-lead { color: var(--ink-soft); }
.hero-art { position: relative; }
.hero-art::before { content: ""; position: absolute; inset: -12% -8% -6% -10%; z-index: -1; pointer-events: none;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--pri) 26%, transparent), transparent 72%); filter: blur(10px); }
.art-card { box-shadow: 0 2px 4px rgba(16,24,40,.06), 0 40px 80px -36px rgba(16,24,40,.45); border: 1px solid rgba(255,255,255,.7); }
.art-stat { box-shadow: 0 24px 50px -26px color-mix(in srgb, var(--pri) 70%, rgba(16,24,40,.5)); }

/* Guided path: on white, the stage as a clean card. */
.guide { background: #fff; padding: 64px 0 24px; }
.guide-stage { background: #fff; border: 1px solid var(--clean-line); box-shadow: var(--lift); -webkit-backdrop-filter: none; backdrop-filter: none; }

/* Cards: solid white, a hairline, a real lift on hover — no frosted glass. */
.portal, .portal:not(.is-featured), .vid-card {
    background: #fff; border: 1px solid var(--clean-line); box-shadow: var(--lift);
    -webkit-backdrop-filter: none; backdrop-filter: none;
    transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .25s;
}
.portal:hover, .portal:not(.is-featured):hover, .vid-card:hover { transform: translateY(-6px); box-shadow: var(--lift-hover); border-color: color-mix(in srgb, var(--pri) 30%, var(--clean-line)); }
/* Portal icons in full brand colour. */
.portal-ic, .p-farmer .portal-ic, .p-pest .portal-ic, .portal.is-featured .portal-ic {
    background: linear-gradient(135deg, var(--pri), var(--pri-dark)); color: var(--on-brand);
    box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--pri) 80%, transparent);
}
.p-pest .portal-ic { background: linear-gradient(135deg, var(--pri-dark), color-mix(in srgb, var(--pri-dark) 70%, #0b1220)); }
/* The featured (Buyer) card: a brand edge along the top, raised a touch. */
.portal.is-featured { border-color: color-mix(in srgb, var(--pri) 45%, var(--clean-line));
    box-shadow: 0 2px 4px rgba(16,24,40,.05), 0 30px 60px -30px color-mix(in srgb, var(--pri) 55%, rgba(16,24,40,.45)); }
.portal.is-featured::before { content: ""; position: absolute; inset: -1px -1px auto; height: 5px; border-radius: 20px 20px 0 0;
    background: linear-gradient(90deg, var(--pri), var(--pri-dark)); }
.portal-badge { background: linear-gradient(135deg, var(--pri), var(--pri-dark)); color: var(--on-brand); box-shadow: 0 8px 18px -10px var(--pri); }
.portal li i { color: var(--pri); }

/* Stats: a deep band of the brand colours (mixed with ink, so it stays calm and white
   text reads on it whatever two colours are picked), with big white numbers. */
.stats-band { background: linear-gradient(120deg, color-mix(in srgb, var(--pri-dark) 50%, #0b1220), color-mix(in srgb, var(--pri) 42%, #0b1220));
    color: #fff; padding: 0; position: relative; overflow: hidden; }
.stats-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .14;
    background-image: radial-gradient(currentColor 1px, transparent 1px); background-size: 22px 22px; }
.stats-inner { position: relative; background: none; border: 0; box-shadow: none; border-radius: 0; padding: 46px 0;
    -webkit-backdrop-filter: none; backdrop-filter: none; }
.stat-item strong { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #fff;
    font-size: 2.6rem; letter-spacing: -.03em; }
.stat-item span { color: rgba(255,255,255,.72); }
.stat-item + .stat-item { border-inline-start-color: rgba(255,255,255,.14); }

/* Call to action: a dark, premium card lit by two brand glows. */
.cta-wrap { background: #fff; }
.cta-card { background: var(--ink-deep); color: #fff; border: 0; box-shadow: 0 40px 80px -40px rgba(11,18,32,.65);
    -webkit-backdrop-filter: none; backdrop-filter: none; }
.cta-card .orb { filter: blur(60px); opacity: .9; }
.cta-card .orb1 { background: color-mix(in srgb, var(--pri) 55%, transparent); }
.cta-card .orb2 { background: color-mix(in srgb, var(--pri-dark) 50%, transparent); }
.cta-card h2 { color: #fff; letter-spacing: -.025em; }
.cta-card p, .cta-note { color: rgba(255,255,255,.72); }
.cta-note i { color: var(--pri-light); }
.cta-card .btn-outline-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.28); }
.cta-card .btn-outline-light:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.5); }

/* Footer: dark, with a brand line along the top. */
.footer { position: relative; background: var(--ink-deep); color: #e2e8f0; border-top: 0; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none; }
.footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--pri), var(--pri-dark)); }
.foot-brand span { color: #fff; }
.foot-desc, .foot-bottom p, .foot-meta { color: #94a3b8; }
.foot-links a { color: #cbd5e1; }
.foot-links a:hover { color: #fff; }
.foot-social a { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #cbd5e1; }
.foot-social a:hover { background: var(--pri); color: var(--on-brand); border-color: transparent; }
.foot-bottom { border-top-color: rgba(255,255,255,.08); }
.foot-meta i { color: var(--pri-light); }

/* Buttons: a touch more weight and lift on the primary action. */
.btn-primary { box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--pri) 85%, transparent); }
.btn-primary:hover { transform: translateY(-1px); }

@media (max-width: 680px) {
    .section { padding: 64px 0; }
    .stats-inner { padding: 36px 0; }
    .stat-item strong { font-size: 2.1rem; }
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Responsive */
@media (max-width: 940px) {
    .hero { padding: 52px 0 46px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-copy { text-align: center; }
    .hero-cta, .hero-checks { justify-content: center; }
    .hero-lead { margin-inline: auto; }
    .hero-title { font-size: 2.6rem; }
    .price-cols { grid-template-columns: 1fr; gap: 40px; }
    .portal-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
}
/* The bar holds brand + Marketplace + Sign in + Get Started + three
   language chips. Below ~992px that no longer fits on one line, and the
   items were colliding rather than wrapping, so the drawer takes over
   there instead of at 820px. */
@media (max-width: 992px) {
    .nav-links { position: fixed; inset: 62px 0 auto 0; flex-direction: column; align-items: stretch; gap: .25rem; background: #fff; border-bottom: 1px solid var(--line); padding: 14px 24px 20px; box-shadow: var(--shadow-md); display: none; }
    .nav-links.open { display: flex; }
    .nav-sep { width: auto; height: 1px; margin: .4rem 0; align-self: stretch; }
    .nav-links .btn { justify-content: center; }
    .nav-lang { justify-content: center; align-self: center; margin: .4rem 0 0; }
    .nav-mobile-actions { display: flex; }
    .vid-grid { grid-template-columns: 1fr; }
    .nav-link { width: 100%; justify-content: center; padding: .7rem .6rem; }
    /* Marketplace now sits beside the menu button, so drop it from the drawer */
    .nav-links .nav-link, .nav-links .nav-sep:first-of-type { display: none; }
}
@media (max-width: 680px) {
    .section { padding: 60px 0; }
    .sec-head { margin-bottom: 36px; }
    .sec-head h2 { font-size: 1.8rem; }
    .price-grid { grid-template-columns: 1fr 1fr; }
    .stats-inner { grid-template-columns: 1fr 1fr; gap: 30px 0; padding: 36px 0; }
    .stat-item:nth-child(3) { border-inline-start: 0; }
    .foot-top { flex-direction: column; }
    .foot-right { align-items: flex-start; }
    .foot-links { justify-content: flex-start; }
    .foot-bottom { flex-direction: column; align-items: flex-start; }
    .cta-wrap { padding: 60px 0; }
    .cta-card { padding: 52px 22px; }
    .cta-card h2 { font-size: 1.65rem; }
}
/* Narrowest phones: the Marketplace button drops to its icon so the
   brand, button and hamburger still fit one line without colliding.
   Declared after the 680px block so it wins where both match. */
@media (max-width: 380px) {
    .nav-mobile-actions .nav-mkt { padding: .5rem .7rem; }
    .nav-mobile-actions .nav-mkt span { display: none; }
}
@media (max-width: 420px) {
    .container { padding: 0 18px; }
    .hero-title { font-size: 2.1rem; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn, .cta-btns .btn { width: 100%; }
    .cta-btns { flex-direction: column; align-items: stretch; }
    .price-grid { grid-template-columns: 1fr; }
}

/* Companies on PSB, in the footer: a heading row, then the company tiles. */
.foot-cos { margin: 2rem 0 1.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.08); }
.foot-cos-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.foot-cos-head span { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; }
.foot-cos-head span i { color: var(--pri-light); font-size: .95rem; }
.foot-cos-head em { font-style: normal; padding: 0 .45rem; border-radius: 999px; background: rgba(255,255,255,.08); color: #cbd5e1; letter-spacing: 0; }
.foot-cos-head a { display: inline-flex; align-items: center; gap: .35rem; font-size: .84rem; font-weight: 600; color: #cbd5e1; }
.foot-cos-head a:hover { color: #fff; }
/* The company tiles in the footer: the same cards as before, lifted off the dark ground. */
.foot-carousel { margin-top: .25rem; padding: 12px 0 22px; }
.foot-carousel .price-card { box-shadow: 0 18px 40px -22px rgba(0,0,0,.7); }

/* On the dark footer the tiles keep their own light card and dark text. */
.foot-carousel .price-card { color: var(--ink); }
.foot-carousel .price-card .pc-body { background: #fff; }
.foot-carousel .price-card h4 { color: var(--ink); }
.foot-carousel .price-card .pc-co, .foot-carousel .price-card .pc-loc { color: var(--muted); }

/* Compact footer: less padding throughout, and smaller company tiles. */
.footer { padding-top: 28px; }
.foot-top { padding-bottom: 16px; gap: 16px 32px; }
.foot-brand { margin-bottom: .45rem; }
.foot-desc { font-size: .86rem; }
.foot-right { gap: .7rem; }
.foot-social a { width: 32px; height: 32px; border-radius: 9px; font-size: .9rem; }
.foot-cos { margin: .6rem 0 .4rem; padding-top: 1rem; }
.foot-cos-head { margin-bottom: .4rem; }
.foot-carousel { --co-w: 230px; --co-h: 190px; --co-media: 120px; padding: 10px 0 14px; }
.foot-carousel .pc-logo { width: 64px; height: 64px; border-radius: 14px; }
.foot-carousel.is-live .price-card.is-focus { scale: 1.04; }
.foot-bottom { padding: 12px 0; }
.foot-bottom p, .foot-meta { font-size: .78rem; }

/* Footer, tighter still: shorter company tiles, one-line description, slimmer rows. */
.footer { padding-top: 18px; }
.foot-top { padding-bottom: 10px; align-items: center; }
.foot-brand { margin-bottom: .2rem; }
.foot-desc { max-width: 34rem; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.foot-right { flex-direction: row; align-items: center; gap: 1.2rem; }
.foot-social a { width: 28px; height: 28px; font-size: .8rem; }
.foot-cos { margin: .2rem 0 0; padding-top: .6rem; }
.foot-cos-head { margin-bottom: .1rem; }
.foot-carousel { --co-w: 190px; --co-h: 148px; --co-media: 86px; padding: 6px 0 8px; }
.foot-carousel .pc-logo { width: 46px; height: 46px; border-radius: 12px; }
.foot-carousel .price-card h4 { font-size: .85rem; }
.foot-bottom { padding: 8px 0; }
@media (max-width: 767.98px) { .foot-desc { white-space: normal; } .foot-right { flex-direction: column; align-items: flex-start; } }

/* =====================================================================
   Refresh — cleaner, calmer, more attractive (2026-11)
   Same brand colours (admin-picked --pri pair); they are used as accents on
   white and soft tints rather than as large saturated blocks.
   ===================================================================== */

/* Hero: a soft brand mesh behind the copy instead of a flat wash. */
.hero:not(.has-backdrop) {
    background:
        radial-gradient(900px 420px at 88% -10%, color-mix(in srgb, var(--pri) 16%, transparent), transparent 70%),
        radial-gradient(700px 380px at -5% 30%, color-mix(in srgb, var(--pri-light) 12%, transparent), transparent 70%),
        linear-gradient(180deg, color-mix(in srgb, var(--pri) 5%, #fff) 0%, #fff 85%);
}
.hero:not(.has-backdrop)::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: .45;
    background-image: radial-gradient(color-mix(in srgb, var(--pri) 22%, transparent) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%); mask-image: linear-gradient(180deg, #000, transparent 75%);
}
.hero-title { letter-spacing: -.035em; }
.hero-lead { color: var(--ink-soft); }

/* Hero card: a slide with no photo is a soft tinted panel with its icon in a badge,
   not a solid block of colour. Photos, when there are any, still cover it. */
.art-card { max-width: 360px; border-radius: 22px; box-shadow: 0 30px 60px -28px color-mix(in srgb, var(--pri) 45%, rgba(16,24,40,.45)), 0 2px 6px rgba(16,24,40,.05); }
.art-slide.s-farm, .art-slide.s-pest, .art-slide.s-buyer {
    background:
        radial-gradient(240px 140px at 80% 0%, color-mix(in srgb, var(--pri) 22%, transparent), transparent 70%),
        linear-gradient(135deg, color-mix(in srgb, var(--pri) 10%, #fff), color-mix(in srgb, var(--pri) 24%, #fff));
    color: var(--pri-ink); height: 196px;
}
.art-slide > i {
    position: relative; z-index: 1; width: 92px; height: 92px; border-radius: 26px; display: grid; place-items: center; font-size: 2.6rem;
    color: #fff; background: linear-gradient(135deg, var(--pri), var(--pri-dark));
    box-shadow: 0 18px 30px -14px color-mix(in srgb, var(--pri) 80%, transparent);
}
.art-slide:not(:has(img))::after { display: none; }
.art-slider:not(:has(img)) .art-dot { background: color-mix(in srgb, var(--pri) 35%, #fff); }
.art-slider:not(:has(img)) .art-dot.on { background: var(--pri); }

/* The "Free" box becomes a small floating badge on the card's corner. */
.hero-art { position: relative; width: fit-content; max-width: 100%; margin-inline: auto; }
.art-stat {
    position: absolute; top: 118px; inset-inline-start: -44px; width: auto; max-width: none; z-index: 4;
    padding: 10px 16px 10px 10px; gap: 10px; border-radius: 16px;
    background: #fff; color: var(--ink); border: 1px solid var(--line);
    box-shadow: 0 18px 40px -18px rgba(16,24,40,.35);
}
.art-stat .as-ic { width: 38px; height: 38px; border-radius: 11px; font-size: 1.1rem; color: #fff; background: linear-gradient(135deg, var(--pri), var(--pri-dark)); }
.art-stat strong { font-size: 1.05rem; color: var(--ink); }
.art-stat span { color: var(--muted); font-size: .76rem; }

/* Highlights strip under the hero. */
.lp-strip { position: relative; z-index: 2; margin-top: -26px; }
.lp-strip-grid {
    list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 20px 44px -30px rgba(16,24,40,.35);
}
.lp-strip-grid li { display: flex; align-items: center; gap: .8rem; padding: 1.15rem 1.3rem; min-width: 0; }
.lp-strip-grid li + li { border-inline-start: 1px solid var(--line-soft); }
.lp-strip-grid strong { display: block; font-size: .92rem; font-weight: 800; color: var(--ink); line-height: 1.25; }
.lp-strip-grid span:not(.lp-ic) { display: block; font-size: .78rem; color: var(--muted); margin-top: .1rem; }

.lp-ic {
    flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem;
    color: var(--pri-ink); background: color-mix(in srgb, var(--pri) 12%, #fff);
    border: 1px solid color-mix(in srgb, var(--pri) 20%, #fff);
}

/* Everything in one place: six feature cards. */
.lp-feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lp-feat {
    position: relative; padding: 1.5rem 1.4rem 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: 18px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.lp-feat:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--pri) 30%, var(--line)); box-shadow: 0 22px 40px -28px color-mix(in srgb, var(--pri) 60%, rgba(16,24,40,.4)); }
.lp-feat .lp-ic { width: 46px; height: 46px; font-size: 1.25rem; margin-bottom: .95rem; }
.lp-feat h3 { margin: 0 0 .35rem; font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.lp-feat p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.55; }

/* Closing call to action. */
.lp-cta-wrap { padding: 0 0 84px; }
.lp-cta {
    position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap;
    padding: 2.6rem 2.8rem; border-radius: 26px; color: var(--on-brand);
    background:
        radial-gradient(520px 260px at 100% 0%, color-mix(in srgb, #fff 16%, transparent), transparent 70%),
        linear-gradient(135deg, var(--brand-1), var(--brand-2));
    box-shadow: 0 30px 60px -34px color-mix(in srgb, var(--pri) 85%, transparent);
}
.lp-cta h2 { margin: 0 0 .4rem; font-size: 1.9rem; font-weight: 800; letter-spacing: -.025em; color: inherit; }
.lp-cta p { margin: 0; max-width: 34rem; color: color-mix(in srgb, var(--on-brand) 82%, transparent); }
.lp-cta-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; }
.lp-cta-actions small { flex-basis: 100%; font-size: .78rem; color: color-mix(in srgb, var(--on-brand) 75%, transparent); }
.lp-btn-light { background: #fff; color: var(--pri-ink); box-shadow: 0 10px 22px -12px rgba(0,0,0,.35); }
.lp-btn-light:hover { background: color-mix(in srgb, var(--pri) 8%, #fff); color: var(--pri-ink); }
.lp-btn-outline { background: transparent; color: var(--on-brand); border: 1.5px solid color-mix(in srgb, var(--on-brand) 55%, transparent); }
.lp-btn-outline:hover { background: color-mix(in srgb, var(--on-brand) 12%, transparent); color: var(--on-brand); }

/* Calmer cards everywhere: one radius, one hover. */
.portal, .vid-card { border-radius: 20px; }
.portal:hover { transform: translateY(-4px); }

@media (max-width: 991.98px) {
    .lp-strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-strip-grid li:nth-child(3) { border-inline-start: 0; }
    .lp-strip-grid li:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
    .lp-feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .art-stat { inset-inline-start: -14px; top: 128px; }
}
@media (max-width: 575.98px) {
    .lp-strip { margin-top: 0; padding-top: 8px; }
    .lp-strip-grid { grid-template-columns: 1fr; }
    .lp-strip-grid li + li { border-inline-start: 0; border-top: 1px solid var(--line-soft); }
    .lp-feat-grid { grid-template-columns: 1fr; }
    .lp-cta { padding: 1.8rem 1.4rem; border-radius: 20px; }
    .lp-cta h2 { font-size: 1.5rem; }
    .lp-cta-wrap { padding-bottom: 60px; }
}
