/* ===========================================================================
   WeighVision marketing site.
   Palette matches WBS_2026.Cloud/wwwroot/css/site.css so the site and the
   customer portal read as one product.
   No frameworks and no CDN: the page must render fast on a phone in a yard
   with two bars of signal.
   =========================================================================== */

:root {
    --brand: #FFB020;
    --brand-2: #F59E0B;
    --info: #38BDF8;
    --go: #2DE0A6;
    --stop: #FF5C5C;

    --ink: #10151D;
    --ink-soft: #4A5567;
    --ink-faint: #7A8699;
    --bg: #FFFFFF;
    --bg-2: #F5F8FC;
    --bg-dark: #0B1017;
    --line: #E3E9F1;

    --r-lg: 18px;
    --r-md: 12px;
    --r-sm: 8px;
    --shadow: 0 22px 50px -28px rgba(16, 30, 54, .35);
    --shadow-sm: 0 10px 26px -18px rgba(16, 30, 54, .3);

    --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-text-size-adjust: 100%;
}

.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.wrap.narrow { width: min(820px, calc(100% - 40px)); }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.13rem; font-weight: 700; }
p  { margin: 0 0 1em; }
a  { color: #B45309; }

.center     { text-align: center; }
.muted      { color: var(--ink-faint); }
.grad       { background: linear-gradient(100deg, var(--brand-2), var(--info));
              -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow {
    text-transform: uppercase; letter-spacing: .12em;
    font-size: .74rem; font-weight: 700; color: var(--brand-2);
    margin: 0 0 .6em;
}

.section       { padding: 88px 0; }
.section.alt   { background: var(--bg-2); }
.section.dark  { background: var(--bg-dark); color: #E8EEF7; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark .eyebrow { color: var(--brand); }

.section-lede {
    max-width: 660px; margin-inline: auto;
    color: var(--ink-soft); font-size: 1.06rem;
}
.section.dark .section-lede { color: #A9B6C9; }

.fineprint { font-size: .87rem; color: var(--ink-faint); margin-top: 26px; }

/* ---------------------------------------------------------------- buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .5rem; padding: 12px 22px; border-radius: var(--r-sm);
    font-weight: 650; font-size: .97rem; text-decoration: none;
    border: 1.5px solid transparent; cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(100deg, var(--brand), var(--brand-2));
               color: #241701; box-shadow: var(--shadow-sm); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--brand-2); }
.btn-ghost   { border-color: rgba(0,0,0,.12); color: var(--ink); }
.btn.block   { display: flex; width: 100%; }

/* ---------------------------------------------------------------- header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 9px;
         font-size: 1.16rem; color: var(--ink); text-decoration: none; font-weight: 500; }
.brand strong { font-weight: 800; }
.brand.small { font-size: 1rem; margin-bottom: 8px; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; font-weight: 550; }
.site-nav a:hover { color: var(--ink); }
.site-nav .btn { color: var(--ink); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none;
              border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------------------------------------------------------------- hero */
.hero {
    padding: 78px 0 84px;
    background:
      radial-gradient(900px 420px at 78% -8%, rgba(255,176,32,.16), transparent 62%),
      radial-gradient(700px 420px at 8% 8%, rgba(56,189,248,.11), transparent 60%);
}
.hero-inner { display: grid; grid-template-columns: 1.06fr .94fr; gap: 56px; align-items: center; }
.lede { font-size: 1.14rem; color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px; }
.hero-note { font-size: .88rem; color: var(--ink-faint); margin: 0; }

/* stylised app window, not a real screenshot */
.mock { background: #0E141C; border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.mock-bar { display: flex; gap: 7px; padding: 13px 16px; background: #161E29; }
.mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2C3848; }
.mock-bar span:first-child { background: #FF5F57; }
.mock-bar span:nth-child(2) { background: #FEBC2E; }
.mock-bar span:nth-child(3) { background: #28C840; }
.mock-body { padding: 26px 24px 30px; }
.mock-weight { display: flex; flex-direction: column; gap: 3px; margin-bottom: 22px; }
.mock-label { font-size: .68rem; letter-spacing: .16em; color: #63748C; }
.mock-kg { font-size: 2.7rem; font-weight: 800; color: var(--brand);
           font-variant-numeric: tabular-nums; line-height: 1.1; }
.mock-kg small { font-size: 1.05rem; color: #8494A9; font-weight: 600; }
.mock-stable { font-size: .8rem; color: var(--go); }
.mock-rows { display: flex; flex-direction: column; gap: 9px; }
.mock-row { display: flex; justify-content: space-between; font-size: .9rem;
            padding-bottom: 9px; border-bottom: 1px solid #1E2836; }
.mock-row span { color: #7C8BA1; }
.mock-row b { color: #E4EBF5; font-weight: 600; }
.mock-badge { margin-top: 20px; display: inline-block; font-size: .82rem;
              background: rgba(45,224,166,.13); color: var(--go);
              border: 1px solid rgba(45,224,166,.3); padding: 7px 13px; border-radius: 100px; }

/* ---------------------------------------------------------------- strip */
.strip { background: var(--bg-dark); color: #fff; padding: 34px 0; }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center; }
.strip b { display: block; font-size: 2rem; font-weight: 800; color: var(--brand); line-height: 1.1; }
.strip span { font-size: .88rem; color: #93A1B5; }

/* ---------------------------------------------------------------- cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
        padding: 28px 26px; box-shadow: var(--shadow-sm); }
.card.accent { border-color: rgba(255,176,32,.5); box-shadow: 0 18px 44px -26px rgba(245,158,11,.55); }
.card p:last-child { margin-bottom: 0; }
.card p { font-size: .97rem; color: var(--ink-soft); }

/* ---------------------------------------------------------------- features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 46px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px 24px; }
.feature p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.ficon { font-size: 1.5rem; margin-bottom: 10px; }

/* ---------------------------------------------------------------- two-col */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

.ticks { list-style: none; padding: 0; margin: 22px 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 11px; color: var(--ink-soft); font-size: .98rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: -1px;
                    color: var(--brand-2); font-weight: 800; }
.ticks.light li { color: #B6C3D4; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
         padding: 30px 28px; box-shadow: var(--shadow-sm); }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; margin: 0; font-size: .94rem; }
.spec dt { color: var(--ink-faint); }
.spec dd { margin: 0; font-weight: 600; }

.quotebox { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
            border-radius: var(--r-lg); padding: 32px 30px; }
.quotebox p { color: #A9B6C9; font-size: .98rem; margin-bottom: 0; }
.bigq { font-size: 1.5rem; font-weight: 700; color: #fff !important; margin-bottom: .5em !important; }

/* ---------------------------------------------------------------- plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; align-items: start; }
.plan { position: relative; background: #fff; border: 1px solid var(--line);
        border-radius: var(--r-lg); padding: 30px 26px; }
.plan.featured { border: 2px solid var(--brand); box-shadow: 0 22px 52px -28px rgba(245,158,11,.6); }
.ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
          background: linear-gradient(100deg, var(--brand), var(--brand-2));
          color: #241701; font-size: .73rem; font-weight: 750;
          padding: 5px 14px; border-radius: 100px; white-space: nowrap; }
.plan-line { font-size: .92rem; color: var(--ink-faint); min-height: 2.8em; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; }
.plan li { position: relative; padding-left: 26px; margin-bottom: 9px; font-size: .94rem; }
.plan li.yes::before { content: "✓"; position: absolute; left: 0; color: var(--go); font-weight: 800; }
.plan li.no { color: var(--ink-faint); }
.plan li.no::before { content: "—"; position: absolute; left: 0; color: var(--ink-faint); }

/* ---------------------------------------------------------------- faq */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 650; font-size: 1.02rem; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--brand-2); font-weight: 800; font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--ink-soft); font-size: .97rem; }

/* ---------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 30px; margin-top: 46px; }

.contact-row {
    display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 15px 18px; margin-bottom: 12px;
}
.contact-row:hover { border-color: var(--brand-2); }
.cicon { font-size: 1.3rem; }
.contact-row b { display: block; font-size: 1rem; }
.contact-row small { color: var(--ink-faint); font-size: .84rem; }

.contact-note { background: #fff; border: 1px dashed var(--line);
                border-radius: var(--r-md); padding: 20px; margin-top: 22px; }
.contact-note p { font-size: .92rem; color: var(--ink-soft); }

.contact-form { background: #fff; border: 1px solid var(--line);
                border-radius: var(--r-lg); padding: 30px 28px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .87rem; font-weight: 650; margin-bottom: 6px; }
.field label span { color: var(--stop); }
.field input, .field textarea {
    width: 100%; font: inherit; font-size: .97rem; padding: 11px 13px;
    border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #FCFDFF;
}
.field input:focus, .field textarea:focus {
    outline: none; border-color: var(--brand-2); background: #fff;
    box-shadow: 0 0 0 3px rgba(245,158,11,.14);
}
.field input.invalid, .field textarea.invalid { border-color: var(--stop); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin: 14px 0 0; font-size: .93rem; min-height: 1.3em; }
.form-status.ok { color: #047857; font-weight: 600; }
.form-status.err { color: #B91C1C; font-weight: 600; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--bg-dark); color: #93A1B5; padding: 54px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 34px; }
.site-footer .brand { color: #fff; }
.site-footer h4 { color: #fff; font-size: .92rem; margin-bottom: 14px; }
.site-footer a { display: block; color: #93A1B5; text-decoration: none; font-size: .93rem; margin-bottom: 9px; }
.site-footer a:hover { color: var(--brand); }
.site-footer .muted { font-size: .92rem; max-width: 34em; }
.copyright { border-top: 1px solid rgba(255,255,255,.09); margin-top: 34px;
             padding-top: 20px; font-size: .85rem; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 980px) {
    .hero-inner, .two-col, .contact-grid { grid-template-columns: 1fr; gap: 38px; }
    .cards, .grid, .plans { grid-template-columns: 1fr 1fr; }
    .strip-inner { grid-template-columns: 1fr 1fr; gap: 22px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    body { font-size: 16px; }
    .section { padding: 62px 0; }
    .hero { padding: 48px 0 56px; }
    .cards, .grid, .plans, .row2 { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .nav-toggle { display: flex; }
    .site-nav {
        position: absolute; top: 68px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; border-bottom: 1px solid var(--line);
        padding: 10px 20px 18px; display: none;
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .site-nav .btn { margin-top: 12px; border-bottom: 0; justify-content: center; }
    .plan.featured { margin-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn:hover { transform: none; }
}
