/*
 * SnapAudit global landing stylesheet — written from scratch.
 *
 * Deliberately NOT shared with landing.css (the .ru sheet). The two
 * sites are independent products with different positioning:
 *   .ru  — consumer-facing Russian SMB, blue brand, warm tone,
 *          grid-of-industries picker UX.
 *   .com — enterprise middle-market English, slate/emerald brand,
 *          documentation-style layout, masonry gallery + modal.
 *
 * Palette:
 *   --bg-0       #ffffff     body background
 *   --bg-1       #f8fafc     section alternate
 *   --bg-dark    #0f172a     slate-900 — hero, cta band, footer
 *   --ink        #0f172a     body text on light
 *   --ink-dim    #64748b     secondary text
 *   --ink-inv    #e2e8f0     text on dark
 *   --accent     #10b981     emerald-500 — CTA, links, highlights
 *   --accent-dk  #047857     emerald-700 — hover state
 *   --border     #e2e8f0     slate-200 — dividers
 */

:root {
    --bg-0: #ffffff;
    --bg-1: #f8fafc;
    --bg-dark: #0f172a;
    --ink: #0f172a;
    --ink-dim: #64748b;
    --ink-inv: #e2e8f0;
    --ink-inv-dim: #94a3b8;
    --accent: #10b981;
    --accent-dk: #047857;
    --border: #e2e8f0;
    --warn: #f59e0b;
}

/* Self-hosted Inter variable font (latin subset, ~48 KB woff2).
   Replaces Google Fonts CDN — eliminates the CSP exception for
   fonts.googleapis.com that PSI flagged in console errors,
   removes Google IP-collection on every visit (GDPR clean), and
   shaves off two extra DNS lookups (fonts.googleapis.com +
   fonts.gstatic.com) that the Google Fonts pattern requires.

   Single variable woff2 covers all 5 weights we use (400 / 500 /
   600 / 700 / 800) — browser interpolates the variation axis.
   Latin subset is sufficient because the .com landing copy is
   en/es/fr/de (no cyrillic/CJK/etc on this domain). */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/inter-latin.woff2') format('woff2-variations'),
         url('/fonts/inter-latin.woff2') format('woff2');
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink); line-height: 1.55;
    background: var(--bg-0);
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.005em;
}
a { color: var(--accent-dk); text-decoration: none; transition: color 0.15s; }
/* Hover increases clarity by adding underline rather than washing the
   colour out — the previous accent-dk → accent transition decreased
   contrast on hover, which inverts the standard "interactive on hover"
   gestalt. */
a:hover { color: var(--accent-dk); text-decoration: underline; }

/* Sticky nav is 56px tall + 8px breathing room. Without scroll-margin
   anchor jumps land the section's title flush at viewport-top, which
   is the area the sticky nav covers. */
section[id], main [id] { scroll-margin-top: 72px; }

/* Skip-link — WCAG. Note: explicit :hover override needed because
   the global `a:hover { color: --accent-dk }` rule defined earlier
   has the same specificity (0,1,0) but matches in hover state and
   would otherwise turn the skip-link's white text into emerald-700
   on emerald-500 (2.16:1 — Lighthouse flagged this). */
.skip-link, .skip-link:hover, .skip-link:focus {
    color: #fff; text-decoration: none;
}
.skip-link {
    position: absolute; top: -40px; left: 0;
    background: var(--accent-dk);
    padding: 8px 16px; z-index: 1000; border-radius: 0 0 6px 0;
    font-weight: 600;
}
.skip-link:focus { top: 0; }

/* ================================================================ */
/* Nav — dark, thin, enterprise                                     */
/* ================================================================ */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(15, 23, 42, 0.96); backdrop-filter: blur(12px);
    padding: 12px 32px; color: var(--ink-inv);
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid rgba(226, 232, 240, 0.08);
}
.nav-brand { font-weight: 800; font-size: 17px; color: #fff; letter-spacing: -0.02em; }
.nav-brand span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 14px; }
.nav-links a { color: var(--ink-inv-dim); text-decoration: none; transition: color 0.15s; }
.nav-links a:hover { color: #fff; }
/* CSS-specificity bug fix: .nav-links a (1 class + 1 element) ties
   with .btn-primary (1 class) but, defined later, was overriding
   the CTA's white text — Lighthouse flagged 1.01:1 contrast on the
   "Start free trial" nav button. This explicit override pins white
   on the primary button regardless of nav-links rules. */
.nav-links a.btn-primary { color: #fff; }
.nav-links a.btn-primary:hover { color: #fff; }

.nav-lang { position: relative; }
.nav-lang-btn {
    font-size: 12px; font-weight: 700; letter-spacing: 0.05em;
    text-transform: uppercase; padding: 6px 10px; border-radius: 6px;
    background: transparent; border: 1px solid rgba(226, 232, 240, 0.2);
    color: var(--ink-inv-dim); cursor: pointer; line-height: 1;
}
.nav-lang-btn:hover { border-color: var(--accent); color: var(--accent); }
.nav-lang-menu {
    position: absolute; top: calc(100% + 6px); right: 0;
    background: #fff; color: var(--ink);
    border-radius: 8px; box-shadow: 0 10px 32px rgba(0,0,0,0.18);
    min-width: 160px; padding: 4px 0; z-index: 100;
}
.nav-lang-menu.hidden { display: none; }
.nav-lang-menu button {
    display: block; width: 100%; text-align: left; padding: 10px 14px;
    background: transparent; border: none; font-size: 14px;
    color: var(--ink); cursor: pointer;
}
.nav-lang-menu button:hover { background: var(--bg-1); }
.nav-lang-menu button.active { background: #ecfdf5; color: var(--accent-dk); font-weight: 600; }

/* Buttons */
/* WCAG AA contrast: emerald-500 (#10b981) bg + white text gives
   only 2.53:1, below the 4.5:1 minimum for normal-sized text.
   Switching .btn-primary to emerald-700 (var(--accent-dk), #047857)
   bumps it to 5.74:1 — passes AA comfortably. Brand identity stays
   emerald, just one shade darker for the call-to-action surface. */
.btn-primary {
    background: var(--accent-dk); color: #fff;
    padding: 10px 20px; border-radius: 6px;
    font-weight: 600; font-size: 14px; display: inline-block;
    border: none; cursor: pointer; text-decoration: none;
    transition: background 0.15s, transform 0.1s;
    letter-spacing: -0.005em;
}
.btn-primary:hover { background: #065f46; color: #fff; }
.btn-primary.big { padding: 14px 28px; font-size: 16px; border-radius: 8px; }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary {
    background: transparent; color: var(--ink);
    padding: 10px 20px; border: 1px solid var(--border); border-radius: 6px;
    font-weight: 600; font-size: 14px;
    text-decoration: none; display: inline-block;
    transition: border-color 0.15s, color 0.15s;
}
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
/* on-dark border opacity bumped from 0.25 → 0.4 — earlier value was
   below WCAG AA for non-text UI components (3:1 minimum); 0.4 puts
   it ~4.5:1 on the slate-900 hero background. Visible enough to read
   as a button, not noisy. */
.btn-secondary.on-dark { color: var(--ink-inv); border-color: rgba(226, 232, 240, 0.4); }
.btn-secondary.on-dark:hover { color: #fff; border-color: #fff; }

/* ================================================================ */
/* Hero — dark split layout                                         */
/* ================================================================ */
.hero {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #1e293b 100%);
    color: var(--ink-inv);
    padding: 96px 32px 64px;
}
.hero-inner {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1.15fr 1fr;
    gap: 64px; align-items: center;
}
.hero-eyebrow {
    display: inline-block;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 20px;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 999px;
}
.hero h1 {
    font-size: 52px; line-height: 1.05;
    margin: 0 0 20px; font-weight: 800; color: #fff;
    letter-spacing: -0.025em;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead {
    font-size: 19px; color: var(--ink-inv-dim);
    margin-bottom: 18px; max-width: 520px; line-height: 1.55;
}
/* Audience pre-frame — shorter line between the lead and the CTAs
   that names the verticals we serve. Helps cold visitors quickly
   self-identify ("manufacturing — that's me") before they reach the
   industry gallery further down the page. */
.hero-audience {
    font-size: 14px; color: var(--ink-inv-dim);
    margin-bottom: 28px; max-width: 520px;
    font-weight: 500; letter-spacing: 0.005em;
    opacity: 0.85;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-meta { margin-top: 24px; font-size: 13px; color: var(--ink-inv-dim); }
.hero-meta strong { color: #fff; font-weight: 600; }
.hero-visual {
    position: relative; border-radius: 12px; overflow: hidden;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(226, 232, 240, 0.08);
}
.hero-visual img { width: 100%; height: auto; display: block; }
.hero-visual::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(16, 185, 129, 0.1));
    pointer-events: none;
}

/* ================================================================ */
/* Metrics strip                                                    */
/* ================================================================ */
.metrics-bar { background: var(--bg-dark); color: var(--ink-inv); padding: 0 32px 72px; }
.metrics-grid {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    background: rgba(226, 232, 240, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.08);
    border-radius: 12px; overflow: hidden;
}
.metric { background: var(--bg-dark); padding: 24px 28px; text-align: left; }
.metric-value {
    font-size: 32px; font-weight: 800; color: #fff;
    letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.metric-value .accent { color: var(--accent); }
.metric-label {
    font-size: 12px; color: var(--ink-inv-dim);
    text-transform: uppercase; letter-spacing: 0.1em;
    margin-top: 6px; font-weight: 600;
}

/* ================================================================ */
/* Sections                                                         */
/* ================================================================ */
.section { padding: 88px 32px; max-width: 1200px; margin: 0 auto; }
.section-alt { background: var(--bg-1); max-width: none; padding: 88px 32px; }
.section-alt .section-inner { max-width: 1200px; margin: 0 auto; }
.section h2, .section-alt h2 {
    font-size: 36px; line-height: 1.15; font-weight: 800;
    color: var(--ink); letter-spacing: -0.025em;
    margin-bottom: 14px; max-width: 680px;
}
.section h2.center, .section-alt h2.center {
    text-align: center; margin-left: auto; margin-right: auto;
}
.section-sub {
    font-size: 18px; color: var(--ink-dim);
    max-width: 640px; line-height: 1.55; margin-bottom: 56px;
}
.section-sub.center { text-align: center; margin-left: auto; margin-right: auto; }
/* Inline links inside section sub-headlines (e.g. the FAQ contact
   email) get explicit underline + matched darker color so they
   don't blend into the surrounding muted-grey paragraph (PSI's
   link-in-text-block rule needs ≥3:1 link-vs-text contrast OR
   non-color disambiguation like underline). */
.section-sub a {
    color: var(--accent-dk);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.section-sub a:hover { color: var(--accent-dk); }
.section-eyebrow {
    display: block; font-size: 12px; font-weight: 700;
    color: var(--accent-dk); letter-spacing: 0.1em;
    text-transform: uppercase; margin-bottom: 12px;
}

/* ================================================================ */
/* How it works — 3 steps with connector                            */
/* ================================================================ */
.how-steps {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 32px; position: relative;
}
.how-steps::before {
    content: ''; position: absolute;
    top: 28px; left: 14%; right: 14%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
    z-index: 0;
}
.how-step {
    background: var(--bg-0); padding: 28px 24px;
    border-radius: 12px; border: 1px solid var(--border);
    position: relative; z-index: 1;
}
.how-step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: var(--ink); color: #fff; border-radius: 50%;
    font-weight: 700; font-size: 15px;
    font-variant-numeric: tabular-nums;
    margin-bottom: 16px;
}
.how-step h3 {
    font-size: 17px; font-weight: 700;
    margin-bottom: 8px; color: var(--ink); letter-spacing: -0.01em;
}
.how-step p { font-size: 14px; color: var(--ink-dim); line-height: 1.6; }

/* ================================================================ */
/* Industry gallery — masonry with category filter + modal          */
/* ================================================================ */
.gallery-filter {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-bottom: 32px; justify-content: center;
}
.filter-chip {
    background: var(--bg-0); border: 1px solid var(--border);
    color: var(--ink-dim);
    padding: 8px 18px; border-radius: 999px;
    font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all 0.15s;
    letter-spacing: -0.005em;
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent-dk); }
.filter-chip[aria-pressed="true"] {
    background: var(--ink); border-color: var(--ink); color: #fff;
}
.gallery-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.gallery-tile {
    position: relative; aspect-ratio: 4/3;
    border-radius: 12px; overflow: hidden;
    cursor: pointer; background: var(--bg-dark);
    border: none; padding: 0; margin: 0;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: left; font: inherit;
}
.gallery-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.2);
}
.gallery-tile[hidden] { display: none; }
/* "Show all" button revealed on mobile only — desktop renders all 12
   tiles in a 3-column grid which fits comfortably; on a phone the
   single-column grid produces a ~3000px-tall vertical strip of tiles
   that buries the rest of the page. Default hides tiles 7–12 and
   surfaces a CTA. Filter chips also force show-all so filtering
   always works on the full list. */
.gallery-show-all-btn {
    display: none;
    margin: 16px auto 0;
    padding: 12px 28px;
    background: var(--ink); color: #fff;
    border: none; border-radius: 6px;
    font-weight: 600; font-size: 14px;
    cursor: pointer; font: inherit;
    letter-spacing: -0.005em;
    transition: background 0.15s;
}
.gallery-show-all-btn:hover { background: #1e293b; }
.gallery-tile img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.4s ease-out;
}
.gallery-tile:hover img { transform: scale(1.05); }
.gallery-tile-overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 20px;
    background: linear-gradient(180deg, transparent 30%, rgba(15, 23, 42, 0.92) 100%);
    color: #fff;
}
.gallery-tile-badge {
    align-self: flex-start;
    background: rgba(16, 185, 129, 0.95); color: #fff;
    padding: 4px 10px; border-radius: 4px;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.05em; text-transform: uppercase;
    font-variant-numeric: tabular-nums;
    margin-bottom: auto;
}
.gallery-tile-badge.warn { background: rgba(245, 158, 11, 0.95); }
.gallery-tile-badge.bad { background: rgba(220, 38, 38, 0.95); }
.gallery-tile-title {
    font-size: 18px; font-weight: 700;
    letter-spacing: -0.01em; line-height: 1.2;
    margin-bottom: 4px;
}
.gallery-tile-tag {
    font-size: 13px; color: rgba(255, 255, 255, 0.8); line-height: 1.4;
}

/* Modal */
.gallery-modal {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    padding: 32px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.2s;
}
.gallery-modal[open] { opacity: 1; pointer-events: auto; }
.gallery-modal-card {
    background: var(--bg-0); color: var(--ink);
    border-radius: 16px; overflow: hidden;
    max-width: 1100px; width: 100%; max-height: 88vh;
    display: grid; grid-template-columns: 1.3fr 1fr;
    box-shadow: 0 32px 96px rgba(0, 0, 0, 0.5);
    position: relative;
}
.gallery-modal-photo {
    background: var(--bg-dark);
    display: flex; align-items: center; justify-content: center;
    min-height: 400px;
}
.gallery-modal-photo img {
    width: 100%; height: 100%; max-height: 88vh;
    object-fit: contain; display: block;
}
.gallery-modal-detail {
    padding: 32px 36px; display: flex; flex-direction: column;
    overflow-y: auto;
}
.gallery-modal-eyebrow {
    font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
    color: var(--accent-dk); text-transform: uppercase;
    margin-bottom: 10px;
}
.gallery-modal-title {
    font-size: 24px; font-weight: 800;
    color: var(--ink); margin-bottom: 12px;
    letter-spacing: -0.02em; line-height: 1.2;
}
.gallery-modal-tag {
    font-size: 14px; color: var(--ink-dim);
    margin-bottom: 20px; line-height: 1.5;
}
.gallery-modal-row {
    display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.gallery-modal-score {
    min-width: 54px; padding: 6px 14px; border-radius: 6px;
    font-size: 16px; font-weight: 700; color: #fff;
    text-align: center; font-variant-numeric: tabular-nums;
}
.gallery-modal-defects {
    font-size: 13px; color: var(--ink); font-weight: 600;
}
.gallery-modal-msg {
    background: #fef3c7; border-left: 3px solid var(--warn);
    padding: 14px 16px; border-radius: 6px;
    color: #78350f; font-size: 14px; line-height: 1.55;
    margin-bottom: 16px;
}
/* Per-detection items in the modal — one coloured block per bbox,
   border-left + light tint of the same hue. Matches .detection-item
   in the SPA (web/css/style.css) pixel-for-pixel so a visitor who
   clicks a gallery tile sees the same shape of output they'll get in
   their own dashboard. Colours cycle through landingBoxColors in JS. */
.gallery-modal-detections {
    margin-bottom: 20px;
    display: flex; flex-direction: column; gap: 6px;
}
.landing-detection-item {
    padding: 10px 14px; border-radius: 6px;
    font-size: 14px; line-height: 1.5; color: var(--ink);
}
.landing-detection-item strong { margin-right: 4px; }
.gallery-modal-actions {
    display: flex; gap: 10px; margin-top: auto;
    padding-top: 16px; border-top: 1px solid var(--border);
}
.gallery-modal-close {
    position: absolute; top: 16px; right: 20px;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(15, 23, 42, 0.8); color: #fff;
    border: none; cursor: pointer; font-size: 20px; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
    z-index: 10;
}
.gallery-modal-close:hover { background: rgba(15, 23, 42, 1); }

/* ================================================================ */
/* Integrations                                                     */
/* ================================================================ */
.integrations-grid {
    display: grid; grid-template-columns: repeat(6, 1fr);
    gap: 16px; align-items: stretch;
}
.integration-card {
    background: var(--bg-0); border: 1px solid var(--border);
    border-radius: 10px; padding: 24px 20px;
    display: flex; flex-direction: column; align-items: flex-start;
    gap: 8px; transition: border-color 0.15s;
}
.integration-card:hover { border-color: var(--accent); }
.integration-icon { font-size: 24px; line-height: 1; margin-bottom: 4px; }
.integration-name {
    font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em;
}
.integration-note { font-size: 11px; color: var(--ink-dim); line-height: 1.4; }
/* "Notify me" — turns "coming soon" cards from dead ends into a
   light-touch lead capture (mailto: with prefilled subject). Keeps
   the hierarchy below the integration name + note. */
.integration-notify {
    margin-top: 6px; font-size: 11px; font-weight: 700;
    color: var(--accent-dk); text-decoration: none;
    letter-spacing: 0.01em;
}
.integration-notify:hover { text-decoration: underline; color: var(--accent-dk); }

/* ================================================================ */
/* Compliance                                                       */
/* ================================================================ */
.compliance-panel {
    background: var(--bg-dark); color: var(--ink-inv);
    border-radius: 16px; padding: 48px;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 48px; align-items: center;
}
.compliance-panel h2 { color: #fff; margin-bottom: 16px; }
.compliance-panel p { color: var(--ink-inv-dim); line-height: 1.6; font-size: 15px; }
/* On the dark slate-900 panel the eyebrow needs a brighter shade
   than --accent-dk (#047857 → 3.25:1 on dark, below AA). Switch to
   --accent (#10b981, emerald-500) which gives ~5.95:1 on dark. */
.compliance-panel .section-eyebrow { color: var(--accent); }
/* Two-group layout (Data handling / Audit trail) replaces the earlier
   flat 6-bullet grid. The previous design read as visual decoration
   (six identical tinted rectangles) — grouping into two columns with
   category headers keeps every claim while giving the eye an anchor
   per group, raising recall. */
.compliance-groups {
    display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
.compliance-group h3 {
    font-size: 12px; font-weight: 700; color: var(--accent);
    text-transform: uppercase; letter-spacing: 0.12em;
    margin-bottom: 14px;
}
.compliance-group ul {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 10px;
}
.compliance-group li {
    font-size: 14px; color: var(--ink-inv);
    line-height: 1.5; padding-left: 22px; position: relative;
}
.compliance-group li::before {
    content: "✓"; position: absolute; left: 0; top: 1px;
    color: var(--accent); font-weight: 700; font-size: 14px;
}

/* ================================================================ */
/* Pricing                                                          */
/* ================================================================ */
.pricing-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px; max-width: 1000px; margin: 0 auto;
}
.pricing-card {
    background: var(--bg-0); border: 1px solid var(--border);
    border-radius: 14px; padding: 32px 28px;
    display: flex; flex-direction: column; position: relative;
}
.pricing-card.featured {
    border: 2px solid var(--accent);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.12);
    transform: translateY(-4px);
}
.pricing-card.featured::before {
    content: 'Most popular';
    position: absolute; top: -13px; left: 28px;
    background: var(--accent); color: #fff;
    padding: 4px 12px; border-radius: 20px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
}
.pricing-tier {
    font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--ink-dim); margin-bottom: 6px;
}
.pricing-name {
    font-size: 22px; font-weight: 800; color: var(--ink);
    margin-bottom: 8px; letter-spacing: -0.02em;
}
.pricing-price {
    font-size: 36px; font-weight: 800; color: var(--ink);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em; margin-bottom: 4px; line-height: 1;
}
.pricing-price small {
    font-size: 14px; font-weight: 500;
    color: var(--ink-dim); letter-spacing: 0;
}
.pricing-note {
    font-size: 13px; color: var(--ink-dim);
    margin-bottom: 24px; min-height: 40px;
}
.pricing-features {
    list-style: none; padding: 0; margin: 0 0 28px; flex: 1;
}
.pricing-features li {
    padding: 8px 0; padding-left: 26px; position: relative;
    font-size: 14px; color: var(--ink); line-height: 1.5;
    border-bottom: 1px solid var(--bg-1);
}
.pricing-features li::before {
    content: "✓"; position: absolute; left: 0; top: 8px;
    color: var(--accent-dk); font-weight: 700;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-cta {
    /* Same emerald-700 bg as .btn-primary so featured (Pro) tier
       and other CTAs match WCAG AA contrast. */
    background: var(--accent-dk); color: #fff;
    padding: 12px 20px; border-radius: 6px;
    text-align: center; font-weight: 600; font-size: 14px;
    text-decoration: none; transition: background 0.15s;
}
.pricing-cta:hover { background: #065f46; color: #fff; }
.pricing-card:not(.featured) .pricing-cta { background: var(--ink); color: #fff; }
.pricing-card:not(.featured) .pricing-cta:hover { background: #1e293b; }
/* Micro-copy immediately below the CTA — lowers decision friction
   right at the commit point (free trial + escape valve). Kept small
   and grey so it doesn't compete with the button hierarchy. */
.pricing-cta-sub {
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
    color: var(--ink-dim);
    letter-spacing: 0.01em;
}

/* Volume calculator — three numeric inputs (stations × shifts × days)
   that compute "approx N inspections/mo → fits Tier" so the visitor
   can map their own ops shape onto the pricing tier without doing
   mental math at the commit point. Tier suggestion mirrors
   pricing.GlobalPlans IncludedUnits boundaries (≤500=Starter,
   ≤5000=Pro, else Enterprise) — kept duplicated in JS rather than
   piped through the template because it's a marketing widget, not a
   billing path. */
.pricing-calc {
    max-width: 720px; margin: 32px auto 0;
    background: var(--bg-1); border: 1px solid var(--border);
    border-radius: 12px; padding: 20px 24px;
}
.pricing-calc-h {
    font-size: 12px; font-weight: 700; color: var(--ink-dim);
    text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px;
}
.pricing-calc-fields {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
    margin-bottom: 14px;
}
.pricing-calc-fields label {
    display: flex; flex-direction: column; gap: 4px;
    font-size: 12px; color: var(--ink-dim); font-weight: 600;
}
.pricing-calc-fields input {
    font: inherit; font-size: 16px;
    padding: 9px 11px; border: 1px solid var(--border);
    border-radius: 6px; color: var(--ink); background: var(--bg-0);
    font-variant-numeric: tabular-nums; outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.pricing-calc-fields input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
}
.pricing-calc-result {
    font-size: 15px; color: var(--ink); padding: 12px 14px;
    background: #ecfdf5; border-left: 3px solid var(--accent);
    border-radius: 6px; line-height: 1.5;
}
.pricing-calc-result b { color: var(--accent-dk); }
/* Inline CTA shown only when the calc points to Enterprise — earlier
   the result said "talk to Enterprise" with no clickable next step,
   forcing the visitor to scroll back to the Enterprise card to find
   the Contact-sales button. Now they can act on the suggestion in
   one click. */
.pricing-calc-cta {
    margin-top: 10px; text-align: right;
}
.pricing-calc-cta a {
    color: var(--accent-dk); font-weight: 700; font-size: 14px;
    text-decoration: none;
}
.pricing-calc-cta a:hover { text-decoration: underline; }

/* ================================================================ */
/* FAQ                                                              */
/* ================================================================ */
.faq { max-width: 760px; margin: 0 auto; }
details.faq-item {
    border-bottom: 1px solid var(--border); padding: 22px 0;
}
details.faq-item summary {
    cursor: pointer; font-weight: 700; font-size: 16px;
    color: var(--ink); list-style: none;
    position: relative; padding-right: 32px;
    letter-spacing: -0.01em;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
    content: "+"; position: absolute; right: 0; top: -2px;
    font-size: 24px; color: var(--accent-dk);
    font-weight: 300; transition: transform 0.15s;
}
details.faq-item[open] summary::after { content: "−"; }
details.faq-item p {
    margin-top: 14px; color: var(--ink-dim);
    font-size: 15px; line-height: 1.65;
}

/* ================================================================ */
/* CTA band + footer                                                */
/* ================================================================ */
.cta-band {
    background: var(--bg-dark); color: var(--ink-inv);
    text-align: center; padding: 80px 32px;
}
.cta-band h2 {
    color: #fff; font-size: 36px; font-weight: 800;
    margin-bottom: 12px; letter-spacing: -0.02em;
    max-width: 720px; margin-left: auto; margin-right: auto;
}
.cta-band p {
    color: var(--ink-inv-dim); font-size: 17px;
    margin-bottom: 32px; max-width: 600px;
    margin-left: auto; margin-right: auto; line-height: 1.55;
}
.cta-band .btn-primary { padding: 16px 32px; font-size: 16px; }

footer {
    padding: 56px 32px 28px;
    background: #020617; color: var(--ink-inv-dim); font-size: 14px;
}
.footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px;
}
.footer-brand {
    font-size: 17px; font-weight: 800; color: #fff;
    margin-bottom: 10px; letter-spacing: -0.02em;
}
.footer-brand span { color: var(--accent); }
.footer-tag { color: var(--ink-inv-dim); line-height: 1.6; font-size: 14px; }
.footer-h {
    font-size: 11px; text-transform: uppercase;
    letter-spacing: 0.12em; color: #fff;
    font-weight: 700; margin-bottom: 14px;
}
footer a { color: var(--ink-inv-dim); text-decoration: none; }
footer a:hover { color: var(--accent); }
.footer-col p { margin: 6px 0; }
/* Footer language bar — duplicates the nav-bar language switcher at
   the bottom of the page so visitors who long-scrolled to footer
   without changing language can do so without scrolling back up.
   Same setLocale() handler, different visual chrome (inline pill
   buttons rather than dropdown). */
.footer-lang-bar {
    max-width: 1200px; margin: 32px auto 0;
    padding-top: 20px;
    display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
    font-size: 13px; color: var(--ink-inv-dim);
    border-top: 1px solid rgba(226, 232, 240, 0.08);
}
.footer-lang-bar .footer-lang-label {
    font-weight: 600; margin-right: 4px;
}
.footer-lang-bar button {
    background: transparent; border: 1px solid rgba(226, 232, 240, 0.18);
    color: var(--ink-inv-dim);
    padding: 5px 12px; border-radius: 999px;
    font-size: 12px; font-weight: 600; cursor: pointer;
    font-family: inherit; transition: border-color 0.15s, color 0.15s;
}
.footer-lang-bar button:hover { border-color: var(--accent); color: var(--accent); }
.footer-lang-bar button.active {
    color: #fff; border-color: var(--accent);
    background: rgba(16, 185, 129, 0.12);
}

.footer-copy {
    max-width: 1200px; margin: 24px auto 0;
    padding-top: 16px;
    text-align: center; font-size: 12px; color: var(--ink-inv-dim);
}

/* ================================================================ */
/* Responsive                                                       */
/* ================================================================ */
@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero h1 { font-size: 40px; }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .how-steps { grid-template-columns: 1fr; gap: 16px; }
    .how-steps::before { display: none; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .integrations-grid { grid-template-columns: repeat(3, 1fr); }
    .compliance-panel { grid-template-columns: 1fr; padding: 32px; }
    .compliance-groups { grid-template-columns: 1fr; gap: 24px; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 480px; }
    .pricing-card.featured { transform: none; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .gallery-modal-card { grid-template-columns: 1fr; max-height: 94vh; }
    .gallery-modal-photo { min-height: 280px; }
}

@media (max-width: 640px) {
    .hero { padding: 64px 20px 48px; }
    .hero h1 { font-size: 32px; }
    .metrics-grid { grid-template-columns: 1fr; }
    .nav { padding: 12px 16px; }
    /* Mobile nav keeps Sign in + Start trial + language switcher
       visible — anchor links collapse so the bar fits 360px wide.
       Earlier cut hid the entire nav-links group, leaving mobile
       users with no header CTA; the next iteration kept Sign in but
       hid lang too, stranding non-English mobile visitors. Now lang
       stays via a smaller pill button. */
    .nav-links { display: flex; gap: 8px; align-items: center; }
    .nav-links > a:not(.btn-primary):not(.nav-mobile-keep) { display: none; }
    .nav-lang-btn { padding: 5px 8px; font-size: 11px; }
    .pricing-calc-fields { grid-template-columns: 1fr; }
    .section { padding: 56px 20px; }
    .section-alt { padding: 56px 20px; }
    .section h2, .section-alt h2 { font-size: 28px; }
    .gallery-grid { grid-template-columns: 1fr; }
    /* Mobile progressive disclosure — show only first 6 tiles by
       default, reveal the other 6 when "Show all" is clicked OR the
       user picks a non-"all" filter (the JS filter handler adds
       .show-all so filtering works on the full set). */
    .gallery-grid:not(.show-all) > .gallery-tile:nth-child(n+7) { display: none; }
    .gallery-show-all-btn { display: block; }
    .gallery-grid.show-all + .gallery-show-all-btn { display: none; }
    .integrations-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .footer-lang-bar { gap: 8px; font-size: 12px; }
    .footer-lang-bar button { padding: 4px 10px; font-size: 11px; }
    .cta-band { padding: 64px 20px; }
    .cta-band h2 { font-size: 26px; }
}
