/* ============================================================
           Tokens
           Layout anatomy follows pacmed.ai (hero gradient block with one
           oversized corner, dark gradient band, grey diagram band, solid
           accent CTA slab, light-weight display headings). Palette stays
           RapidInspectionAI's own navy/blue.
           ============================================================ */
        :root {
            --navy:          #0b1f4b;
            --navy-deep:     #071634;
            --ink:           #12233f;
            --ink-muted:     #4a5b76;
            --ink-subtle:    #6b7b93;

            --accent:        #1d4ed8;
            --accent-strong: #1740b8;
            --accent-soft:   #eaf0fe;
            --accent-line:   #c9d8fa;

            --bg:            #ffffff;
            --surface:       #f6f7fa;
            --surface-2:     #eef1f6;
            --border:        #e3e8ef;
            --border-soft:   #edf0f5;

            --hero-grad:     linear-gradient(346deg, #dbe6fb 0%, #ffffff 77%);
            --band-grad:     linear-gradient(162deg, #0b1f4b 19%, #1d4ed8 100%);

            --radius-xl:     100px;   /* the one oversized corner */
            --radius-card:   16px;
            --radius-btn:    8px 8px 8px 0;  /* one square corner */

            --shot-shadow:
                0 1px 1px    rgba(11, 31, 75, 0.045),
                0 4px 8px    rgba(11, 31, 75, 0.040),
                0 12px 24px  rgba(11, 31, 75, 0.055),
                0 32px 64px  rgba(11, 31, 75, 0.085),
                0 64px 120px rgba(11, 31, 75, 0.100);
            --shot-shadow-sm:
                0 1px 1px   rgba(11, 31, 75, 0.05),
                0 4px 10px  rgba(11, 31, 75, 0.05),
                0 16px 32px rgba(11, 31, 75, 0.07),
                0 36px 70px rgba(11, 31, 75, 0.08);

            --container: 1240px;
        }

        /* ---------- Base ---------- */
        *, *::before, *::after { box-sizing: border-box; }

        html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

        body {
            margin: 0;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            font-size: 1rem;
            line-height: 1.65;
            color: var(--ink);
            background: var(--bg);
            -webkit-font-smoothing: antialiased;
            overflow-x: hidden;
            transition: background-color .25s ease, color .25s ease;
        }

        /* <button> and friends don't inherit font-family by default. */
        button, input, select, textarea { font-family: inherit; font-size: inherit; }

        img { max-width: 100%; display: block; }
        a { color: inherit; }

        h1, h2, h3, h4 {
            color: var(--navy);
            margin: 0;
            /* Light-weight display type is the defining trait of the reference
               layout; Inter at 400 needs negative tracking to hold together. */
            font-weight: 400;
            letter-spacing: -0.028em;
            line-height: 1.16;
        }
        /* Capped so the hero headline holds two lines in its column. */
        h1 { font-size: clamp(2.3rem, 3.9vw, 3.1rem); }
        h2 { font-size: clamp(1.95rem, 3.3vw, 2.85rem); }
        h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.35; }
        h4 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
        p  { margin: 0; }

        .serif { font-family: 'Poly', Georgia, serif; font-style: italic; font-weight: 400; }

        .container {
            width: 100%;
            max-width: var(--container);
            margin-inline: auto;
            padding-inline: 2rem;
        }

        .section { padding-block: clamp(4.5rem, 9vw, 8rem); }

        .lede {
            font-size: 1.075rem;
            line-height: 1.7;
            color: var(--ink-muted);
        }

        .eyebrow {
            display: inline-flex;
            align-items: center;
            gap: .5rem;
            font-size: .74rem;
            font-weight: 600;
            letter-spacing: .1em;
            text-transform: uppercase;
            color: var(--accent);
            margin-bottom: 1.1rem;
        }
        .eyebrow i { font-size: .9rem; }

        /* ---------- Buttons ---------- */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: .55rem;
            padding: .8rem 1.5rem;
            border-radius: var(--radius-btn);
            border: 1px solid transparent;
            font-size: .95rem;
            font-weight: 500;
            text-decoration: none;
            cursor: pointer;
            white-space: nowrap;
            transition: background-color .18s ease, color .18s ease,
                        border-color .18s ease, transform .18s ease, box-shadow .18s ease;
        }
        .btn:hover { transform: translateY(-1px); }
        .btn i { font-size: .95em; transition: transform .18s ease; }
        .btn:hover i.arrow { transform: translateX(3px); }

        .btn-primary {
            background: var(--accent);
            color: #fff;
            box-shadow: 0 1px 2px rgba(29, 78, 216, .25), 0 8px 20px rgba(29, 78, 216, .22);
        }
        .btn-primary:hover { background: var(--accent-strong); box-shadow: 0 2px 4px rgba(29,78,216,.3), 0 12px 28px rgba(29,78,216,.28); }

        .btn-ghost {
            background: transparent;
            color: var(--navy);
            border-color: var(--border);
        }
        .btn-ghost:hover { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }

        /* Header CTA: outline only, accent text. A filled button sat too heavy
           over the hero gradient, and it competes with the in-page CTAs which
           are the ones that should carry weight. */
        .btn-outline {
            background: transparent;
            color: var(--accent);
            border-color: var(--accent-line);
        }
        .btn-outline:hover {
            background: var(--accent-soft);
            border-color: var(--accent);
            color: var(--accent-strong);
        }

        .btn-on-dark { background: #fff; color: var(--accent); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
        .btn-on-dark:hover { background: #f2f6ff; }

        .btn-sm { padding: .58rem 1.15rem; font-size: .9rem; }

        /* ---------- Header ---------- */
        .site-header {
            position: sticky;
            top: 0;
            z-index: 900;
            background: transparent;
            transition: background-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
        }
        .site-header.is-stuck {
            background: color-mix(in srgb, var(--bg) 82%, transparent);
            backdrop-filter: saturate(180%) blur(14px);
            -webkit-backdrop-filter: saturate(180%) blur(14px);
            box-shadow: 0 1px 0 var(--border-soft), 0 8px 24px rgba(11,31,75,.05);
        }
        .header-nav {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1.5rem;
            height: 78px;
        }
        /* The supplied wordmark PNG is a flat near-black lockup, which reads
           small and clashes with the navy palette. Rebuilt as the same mark
           (rounded square + "RI") plus live type, so it takes the theme colour
           and stays crisp at any size. */
        .logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
        .logo-mark {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 36px; height: 36px;
            border-radius: 10px;
            /* Same blue as the buttons. Navy here read as a second brand colour
               sitting next to the accent everywhere the header appears. */
            background: var(--accent);
            color: #fff;
            font-size: .95rem;
            font-weight: 700;
            letter-spacing: .01em;
            flex: 0 0 auto;
        }
        .logo-name {
            font-size: 1.18rem;
            font-weight: 600;
            letter-spacing: -.025em;
            color: var(--accent);
            white-space: nowrap;
        }
        .site-footer .logo-mark { width: 32px; height: 32px; font-size: .85rem; }
        .site-footer .logo-name { font-size: 1.05rem; }

        .nav-links { display: flex; align-items: center; gap: 2rem; }
        .nav-link {
            font-size: .95rem;
            font-weight: 500;
            color: var(--navy);
            text-decoration: none;
            position: relative;
            padding-block: .25rem;
        }
        .nav-link::after {
            content: '';
            position: absolute;
            left: 0; bottom: 0;
            width: 100%; height: 1.5px;
            background: var(--accent);
            transform: scaleX(0);
            transform-origin: right;
            transition: transform .22s ease;
        }
        .nav-link:hover { color: var(--accent); }
        .nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

        .header-actions { display: flex; align-items: center; gap: .75rem; }

        .mobile-menu-toggle {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 38px; height: 38px;
            border-radius: 8px 8px 8px 0;
            border: 1px solid var(--border);
            background: transparent;
            color: var(--navy);
            cursor: pointer;
            transition: border-color .18s ease, color .18s ease, background-color .18s ease;
        }
        .mobile-menu-toggle:hover { border-color: var(--accent-line); color: var(--accent); }
        .mobile-menu-toggle { display: none; }
        .mobile-menu-toggle .bi-x-lg { display: none; }
        .mobile-menu-toggle.is-open .bi-list { display: none; }
        .mobile-menu-toggle.is-open .bi-x-lg { display: block; }

        .mobile-nav {
            display: none;
            flex-direction: column;
            gap: .35rem;
            padding: 1rem 2rem 1.75rem;
            background: var(--bg);
            border-bottom: 1px solid var(--border);
        }
        .mobile-nav.is-open { display: flex; }
        .mobile-nav .nav-link { padding-block: .7rem; }
        .mobile-nav .btn { margin-top: .6rem; }

        /* ============================================================
           Screenshot treatment
           A layered shadow plus a wide, low-opacity ambient glow behind
           the frame, so a flat PNG of a white app reads as a physical
           card sitting above the page rather than a pasted-in rectangle.
           ============================================================ */
        .shot { position: relative; }
        .shot::before {
            content: '';
            position: absolute;
            inset: 6% -2% -8%;
            background: radial-gradient(58% 52% at 50% 55%, rgba(29,78,216,.34), transparent 70%);
            filter: blur(64px);
            opacity: 1;
            z-index: 0;
            pointer-events: none;
        }

        .shot-frame {
            position: relative;
            z-index: 1;
            border-radius: var(--radius-card);
            overflow: hidden;
            background: var(--bg);
            border: 1px solid var(--border);
            box-shadow: var(--shot-shadow);
        }
        .shot-frame img { width: 100%; height: auto; }
        .shot-sm .shot-frame { box-shadow: var(--shot-shadow-sm); }
        .shot-sm::before { inset: 12% 8% -4%; filter: blur(44px); opacity: .7; }

        /* Tall crops dissolve into the page instead of ending on a hard edge. */
        .shot-fade .shot-frame {
            -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
            border-bottom: 0;
        }

        .shot-caption {
            position: relative;
            z-index: 1;
            margin-top: 1.1rem;
            font-size: .88rem;
            color: var(--ink-subtle);
        }

        /* ---------- Hero ---------- */
        .hero {
            position: relative;
            background: var(--hero-grad);
            border-radius: 0 0 var(--radius-xl) 0;
            overflow: hidden;
            padding-block: clamp(3rem, 6vw, 5.5rem) clamp(4rem, 7vw, 6.5rem);
        }
        .hero-grid {
            display: grid;
            /* The screenshot column carries the extra weight so the app UI
               inside it renders large enough to read as a real interface. */
            grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
            align-items: center;
            gap: clamp(2rem, 4vw, 3.5rem);
        }
        .hero h1 { margin-bottom: 1.4rem; }
        .hero .lede { max-width: 34rem; margin-bottom: 2rem; }
        .hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 1.75rem; }
        .hero-note { font-size: .87rem; color: var(--ink-subtle); max-width: 30rem; }

        /* The hero screenshot runs past the container's right edge. */
        .hero-shot { margin-right: calc(-1 * clamp(1.5rem, 9vw, 10rem)); }

        /* ---------- Proof strip ---------- */
        .proof {
            border-bottom: 1px solid var(--border-soft);
            padding-block: 2.5rem;
        }
        .proof-inner {
            display: flex;
            flex-wrap: wrap;
            align-items: baseline;
            gap: .75rem clamp(2rem, 5vw, 4.5rem);
        }
        .proof-label {
            font-size: .74rem;
            font-weight: 600;
            letter-spacing: .1em;
            text-transform: uppercase;
            color: var(--ink-subtle);
            margin-right: auto;
        }
        .asset-tags {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: .5rem .55rem;
        }
        .asset-tags span {
            font-size: .9rem;
            color: var(--ink-muted);
            padding: .35rem .85rem;
            border: 1px solid var(--border);
            border-radius: 999px;
            white-space: nowrap;
        }
        .asset-tags .more { border-style: dashed; color: var(--ink-subtle); }

        /* ---------- Split section (copy + image) ---------- */
        .split {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
            gap: clamp(2.5rem, 5vw, 5rem);
            align-items: center;
        }
        .split-wide { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
        /* Tour rows use .tour-copy, plain splits use .split-copy; both flip. */
        .split-flip .split-copy, .split-flip .tour-copy { order: 2; }

        .divided-list { margin-top: 2rem; border-top: 1px solid var(--border); }
        .divided-list li {
            list-style: none;
            padding: 1.05rem 0;
            border-bottom: 1px solid var(--border);
            color: var(--ink-muted);
            font-size: .98rem;
        }
        .divided-list { padding-left: 0; }
        .divided-list li strong { color: var(--navy); font-weight: 600; }

        /* ---------- Dark band ---------- */
        .band {
            background: var(--band-grad);
            color: #fff;
            border-radius: 0 var(--radius-xl) 0 0;
        }
        .band h2, .band h3 { color: #fff; }
        .band .eyebrow { color: rgba(255,255,255,.72); }
        .band .lede { color: rgba(255,255,255,.8); }

        .band-head { max-width: 52rem; }
        .band-head .lede { margin-top: 1.25rem; max-width: 46rem; }

        /* ---------- Agent pipeline ----------
           Five stages on one connected track, four of them running unattended
           and the fifth handing back to a person, with a return arc underneath
           so it reads as a loop rather than a numbered checklist. */
        .pipeline {
            --pipe-gap: 1.5rem;
            --node: 54px;
            position: relative;
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: var(--pipe-gap);
            margin-top: 3.5rem;
        }
        .stage { position: relative; }
        /* Connector drawn per stage, from this node's right edge to the next
           node's left edge, so it always lands on the nodes whatever the
           column width works out to. */
        .stage::after {
            content: '';
            position: absolute;
            top: calc(var(--node) / 2);
            left: var(--node);
            right: calc(-1 * var(--pipe-gap));
            height: 1px;
            background: repeating-linear-gradient(
                to right,
                rgba(255,255,255,.32) 0 7px,
                transparent 7px 13px
            );
        }
        .stage:last-child::after { display: none; }
        .stage-node {
            position: relative;
            z-index: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 54px; height: 54px;
            border-radius: 15px;
            background: rgba(255,255,255,.11);
            border: 1px solid rgba(255,255,255,.22);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            color: #fff;
            font-size: 1.28rem;
        }
        .stage.is-human .stage-node {
            background: #fff;
            border-color: #fff;
            color: var(--accent);
            box-shadow: 0 10px 28px rgba(4, 14, 38, .3);
        }
        /* One legend below the row rather than a role pill repeated on every
           stage, which read as filler once four of them said the same word. */
        .pipeline-legend {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
            margin-top: 2rem;
            font-size: .8rem;
            color: rgba(255,255,255,.6);
        }
        .pipeline-legend .key {
            display: inline-block;
            width: 10px; height: 10px;
            border-radius: 3px;
            margin-right: .45rem;
            vertical-align: 0;
        }
        .key-auto { background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.35); }
        .key-human { background: #fff; }

        .stage h3 {
            margin-top: 1.15rem;
            font-size: 1.12rem;
            font-weight: 600;
            letter-spacing: -.02em;
        }
        .stage p {
            margin-top: .4rem;
            font-size: .89rem;
            line-height: 1.6;
            color: rgba(255,255,255,.68);
        }

        /* The return path, drawn in CSS rather than SVG so its ends stay under
           the first and last nodes at any container width. */
        .loopback { margin-top: 2.25rem; }
        .loopback-arc {
            position: relative;
            height: 46px;
            margin-inline: 27px;   /* half a node, so the sides rise under the outer nodes */
            border: 1px dashed rgba(255,255,255,.28);
            border-top: 0;
            border-radius: 0 0 16px 16px;
        }
        .loopback-arc::before {
            content: '';
            position: absolute;
            top: -1px; left: -5px;
            border-left: 5px solid transparent;
            border-right: 5px solid transparent;
            border-bottom: 7px solid rgba(255,255,255,.5);
        }
        .loopback p {
            margin-top: 1rem;
            text-align: center;
            font-size: .88rem;
            color: rgba(255,255,255,.62);
        }

        /* ---------- Centered section header ---------- */
        .center-head { text-align: center; max-width: 46rem; margin-inline: auto; }
        .center-head .eyebrow { justify-content: center; }
        .center-head .lede { margin-top: 1rem; }

        /* ---------- Platform diagram ---------- */
        .grey-band { background: var(--surface); }

        .diagram {
            position: relative;
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            align-items: center;
            gap: clamp(2rem, 6vw, 5rem);
            margin-top: 3.5rem;
        }
        .diagram-svg {
            position: absolute;
            inset: 0;
            width: 100%; height: 100%;
            z-index: 0;
            pointer-events: none;
            overflow: visible;
        }
        .animated-path {
            fill: none;
            stroke: #8ba7e8;
            stroke-width: 2;
            stroke-dasharray: 8 6;
            opacity: 1;
        }
        .diagram.is-animating .animated-path { animation: dash 2.4s linear infinite; }
        @keyframes dash { to { stroke-dashoffset: -28; } }

        .diagram-column { display: flex; flex-direction: column; gap: .7rem; position: relative; z-index: 1; }
        /* Blue-tinted and darker than the page's default border: against the
           2px core circle, the plain grey border left the centre looking like
           the only solid thing in the diagram. */
        .diagram-item {
            display: flex;
            align-items: center;
            gap: .8rem;
            background: var(--bg);
            border: 1px solid #93aede;
            border-radius: 12px;
            padding: .8rem 1rem;
        }
        .diagram-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 34px;
            width: 34px; height: 34px;
            border-radius: 9px;
            background: var(--accent-soft);
            color: var(--accent);
            font-size: 1rem;
        }
        .diagram-text h4 { font-size: .9rem; margin-bottom: .1rem; }
        .diagram-text p { font-size: .78rem; color: var(--ink-subtle); line-height: 1.45; }

        .diagram-core {
            position: relative;
            z-index: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: .1rem;
            width: 158px; height: 158px;
            border-radius: 50%;
            background: var(--bg);
            border: 2px solid #7d9be8;
            box-shadow: 0 0 0 7px rgba(29,78,216,.07), 0 18px 40px rgba(29,78,216,.16);
            text-align: center;
        }
        .diagram-core b {
            font-size: 1.4rem;
            font-weight: 700;
            letter-spacing: -.025em;
            color: var(--navy);
            line-height: 1.1;
        }
        .diagram-core span {
            font-size: .92rem;
            font-weight: 500;
            color: var(--ink-muted);
            letter-spacing: .01em;
            line-height: 1.1;
        }

        /* ---------- Capability checklist ---------- */
        .capability-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
            gap: .35rem 2.5rem;
            margin-top: 3.5rem;
            max-width: 62rem;
            margin-inline: auto;
        }
        .capability-item {
            display: flex;
            align-items: center;
            gap: .8rem;
            padding: .8rem 0;
            border-bottom: 1px solid var(--border);
            font-size: .96rem;
            color: var(--ink);
        }
        .capability-item i { color: var(--accent); font-size: 1.05rem; flex: 0 0 auto; }

        /* ---------- Product tour ---------- */
        .tour-row + .tour-row { margin-top: clamp(3.5rem, 6vw, 5.5rem); }
        /* Give the screenshot the wider column in both directions of the alternation. */
        .split.tour-row { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
        .split.tour-row.split-flip { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); }
        .tour-copy h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 400; letter-spacing: -0.028em; }
        .tour-copy p { margin-top: 1rem; color: var(--ink-muted); line-height: 1.7; }
        .tour-meta {
            display: flex;
            flex-wrap: wrap;
            gap: .5rem;
            margin-top: 1.6rem;
        }
        .tour-chip {
            font-size: .8rem;
            padding: .35rem .75rem;
            border-radius: 999px;
            background: var(--accent-soft);
            color: var(--accent);
            font-weight: 500;
        }

        /* ---------- Industry tabs ---------- */

        /* ---------- Blog ----------
           Cards lead with a tinted panel and an icon rather than a photograph.
           We have no photography of our own, and stock imagery on an
           engineering blog reads as filler. */
        .blog-head {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            gap: 2rem;
            flex-wrap: wrap;
        }
        .blog-head .lede { margin-top: 1rem; max-width: 34rem; }
        .blog-head .btn { flex: 0 0 auto; }

        .post-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.5rem;
            margin-top: 3rem;
        }
        .post-card {
            display: flex;
            flex-direction: column;
            background: var(--bg);
            border: 1px solid var(--border);
            border-radius: var(--radius-card);
            overflow: hidden;
            text-decoration: none;
            transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
        }
        .post-card:hover {
            transform: translateY(-3px);
            border-color: var(--accent-line);
            box-shadow: 0 1px 2px rgba(11,31,75,.04), 0 18px 40px rgba(11,31,75,.09);
        }
        .post-thumb {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 132px;
            font-size: 2rem;
            color: var(--accent);
        }
        .tone-a { background: linear-gradient(135deg, #e8effd, #f4f7fe); }
        .tone-b { background: linear-gradient(135deg, #e6f1f8, #f3f8fc); }
        .tone-c { background: linear-gradient(135deg, #eceafb, #f6f4fd); }

        .post-body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
        .post-meta {
            display: flex;
            align-items: center;
            gap: .6rem;
            font-size: .78rem;
            color: var(--ink-subtle);
        }
        .post-tag {
            font-weight: 600;
            letter-spacing: .07em;
            text-transform: uppercase;
            color: var(--accent);
            font-size: .7rem;
        }
        .post-card h3 { margin-top: .65rem; font-size: 1.14rem; font-weight: 600; letter-spacing: -.02em; }
        .post-card p { margin-top: .55rem; font-size: .92rem; line-height: 1.62; color: var(--ink-muted); }
        .post-more {
            margin-top: 1.1rem;
            font-size: .88rem;
            font-weight: 500;
            color: var(--accent);
        }
        .post-more i { transition: transform .18s ease; }
        .post-card:hover .post-more i { transform: translateX(3px); }

        /* ---------- FAQ ---------- */
        .faq-list { max-width: 46rem; margin: 3rem auto 0; }
        .faq-item { border-bottom: 1px solid var(--border); }
        .faq-item summary {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            padding: 1.35rem 0;
            cursor: pointer;
            list-style: none;
            font-size: 1.05rem;
            font-weight: 500;
            color: var(--navy);
            letter-spacing: -0.015em;
        }
        .faq-item summary::-webkit-details-marker { display: none; }
        .faq-item summary i { color: var(--accent); transition: transform .22s ease; flex: 0 0 auto; }
        .faq-item[open] summary i { transform: rotate(180deg); }
        .faq-item p { padding-bottom: 1.4rem; color: var(--ink-muted); }
        .faq-item a { color: var(--accent); text-decoration: underline; cursor: pointer; }

        /* The industries answer is long enough to need real structure. */
        .faq-body p:last-child { padding-bottom: 1.75rem; }
        .faq-defs { margin: 0 0 .25rem; }
        .faq-defs dt {
            margin-top: 1.15rem;
            font-size: .78rem;
            font-weight: 600;
            letter-spacing: .08em;
            text-transform: uppercase;
            color: var(--accent);
        }
        .faq-defs dd {
            margin: .4rem 0 0;
            padding-left: .95rem;
            border-left: 2px solid var(--accent-line);
            color: var(--ink-muted);
        }

        /* ---------- CTA slab ---------- */
        .cta-slab {
            position: relative;
            background: var(--accent);
            border-radius: var(--radius-xl) 0 0 0;
            overflow: hidden;
            color: #fff;
        }
        .cta-grid {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
            align-items: center;
            gap: clamp(2.5rem, 5vw, 4rem);
            padding-block: clamp(3.5rem, 6vw, 5rem);
        }
        .cta-slab h2 { color: #fff; }
        .cta-slab p { color: rgba(255,255,255,.85); margin-top: 1rem; max-width: 30rem; }
        .cta-slab .btn { margin-top: 2rem; }
        /* The CTA screenshot runs off the slab's right edge, cropped by it. */
        /* A fixed negative margin, so the grid item's width (and therefore the
           image's crop) is the same at every viewport. Anything viewport-
           relative here resizes the item and re-crops the screenshot. */
        .cta-shot { margin-right: -10rem; }
        .cta-shot .shot-frame {
            border: 0;
            border-radius: 12px 0 0 12px;
            box-shadow: 0 30px 80px rgba(0,0,0,.3);
            /* Slide the frame so its right edge lands on the viewport's, at
               every width. A transform moves it without changing its box, so
               the crop stays put. It goes on the frame rather than .cta-shot
               because GSAP animates .cta-shot's transform for the reveal and
               would overwrite this. The max() covers viewports narrower than
               the container, where the gap is just the 2rem padding. */
            transform: translateX(max(-128px, calc(50vw - 748px)));
        }
        .cta-shot::before { display: none; }
        /* The planning screen is taller than the slab. Anchor it to the top so
           its title and tabs stay in frame and only the backlog tail is cut. */
        .cta-shot .shot-frame img {
            height: 430px;
            object-fit: cover;
            object-position: top left;
        }

        /* ---------- Footer ---------- */
        .site-footer { border-top: 1px solid var(--border); padding-block: 4rem 2rem; }
        .footer-grid {
            display: grid;
            grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
            gap: 2.5rem;
        }
        .footer-brand p { margin-top: 1rem; color: var(--ink-subtle); font-size: .93rem; max-width: 24rem; }
        .footer-col h4 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-subtle); font-weight: 600; }
        .footer-col ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; }
        .footer-col a { font-size: .93rem; color: var(--ink-muted); text-decoration: none; cursor: pointer; }
        .footer-col a:hover { color: var(--accent); }
        .footer-bottom {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
            margin-top: 3.5rem;
            padding-top: 1.75rem;
            border-top: 1px solid var(--border-soft);
            font-size: .87rem;
            color: var(--ink-subtle);
        }
        .footer-social a { color: var(--ink-subtle); font-size: 1.15rem; text-decoration: none; }
        .footer-social a:hover { color: var(--accent); }

        /* ---------- Modal ---------- */
        .modal-overlay {
            position: fixed;
            inset: 0;
            z-index: 1000;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
            background: rgba(7, 22, 52, .55);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
        }
        .modal-overlay.is-open { display: flex; }
        .modal-box {
            position: relative;
            width: 100%;
            max-width: 540px;
            max-height: 90vh;
            overflow-y: auto;
            background: var(--bg);
            border: 1px solid var(--border);
            border-radius: 18px;
            padding: 2.25rem;
            box-shadow: 0 40px 90px rgba(7,22,52,.35);
        }
        .modal-close {
            position: absolute;
            top: 1rem; right: 1rem;
            width: 34px; height: 34px;
            display: inline-flex; align-items: center; justify-content: center;
            border-radius: 8px;
            border: 1px solid var(--border);
            background: transparent;
            color: var(--ink-muted);
            cursor: pointer;
        }
        .modal-close:hover { color: var(--accent); border-color: var(--accent-line); }
        .modal-box h3 { font-size: 1.45rem; font-weight: 500; letter-spacing: -0.025em; }
        .modal-sub { margin-top: .5rem; color: var(--ink-muted); font-size: .94rem; }
        #demo-form { margin-top: 1.75rem; display: grid; gap: 1rem; }
        .form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
        .form-row { display: grid; gap: .4rem; }
        .form-row label { font-size: .84rem; font-weight: 500; color: var(--ink-muted); }
        .req { color: var(--accent); }
        .form-row input, .form-row select, .form-row textarea {
            width: 100%;
            padding: .7rem .85rem;
            border-radius: 9px;
            border: 1px solid var(--border);
            background: var(--bg);
            color: var(--ink);
            font-size: .95rem;
        }
        .form-row textarea { min-height: 96px; resize: vertical; }
        .form-row input:focus, .form-row select:focus, .form-row textarea:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--accent-soft);
        }
        .honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
        .turnstile-slot { min-height: 65px; }
        .btn-submit { width: 100%; }
        .form-msg { font-size: .87rem; min-height: 1.2em; }
        .form-msg.is-error { color: #dc2626; }
        .modal-success { text-align: center; padding-block: 1.5rem; }
        .modal-success > i { font-size: 2.75rem; color: #059669; }
        .modal-success h3 { margin-top: 1rem; }
        .modal-success p { margin-top: .6rem; color: var(--ink-muted); }
        .modal-success .btn { margin-top: 1.75rem; }

        /* ---------- Reveal ---------- */
        .reveal-up { will-change: transform, opacity; }

        /* ---------- Responsive ---------- */
        @media (max-width: 1080px) {
            .hero-grid, .split, .split-wide, .cta-grid { grid-template-columns: minmax(0, 1fr); }
            .split-flip .split-copy, .split-flip .tour-copy { order: 0; }
            .hero-shot, .cta-shot { margin-right: 0; }
            .cta-shot .shot-frame { transform: none; border-radius: 12px; }
            .diagram { grid-template-columns: 1fr; gap: 1.5rem; }
            .diagram-svg { display: none; }
            .diagram-core { margin-inline: auto; }
            /* Two rows of stages; the single horizontal track no longer lines up. */
            .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 2rem; }
            .stage::after { display: none; }
            .loopback-arc { display: none; }
            .loopback { margin-top: 2.5rem; }
            .loopback p { text-align: left; margin-top: 0; }
            :root { --radius-xl: 64px; }
        }

        @media (max-width: 860px) {
            .nav-links { display: none; }
            .mobile-menu-toggle { display: inline-flex; }
            /* the header CTA moves into the mobile menu below this width */
            .header-actions .btn { display: none; }
            .footer-grid { grid-template-columns: 1fr 1fr; }
            .footer-brand { grid-column: 1 / -1; }
        }

        @media (max-width: 560px) {
            .container { padding-inline: 1.25rem; }
            .form-grid-2 { grid-template-columns: 1fr; }
            .modal-box { padding: 1.5rem; }
            .footer-grid { grid-template-columns: 1fr; }
            :root { --radius-xl: 40px; }
            .proof-label { margin-right: 0; flex-basis: 100%; }
            .pipeline { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
        }

        @media (prefers-reduced-motion: reduce) {
            html { scroll-behavior: auto; }
            .diagram.is-animating .animated-path { animation: none; }
            .btn:hover { transform: none; }
        }

        /* ---------- Blog listing page ---------- */
        .page-head { padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem); }
        .page-head h1 { max-width: 20ch; }
        .page-head .lede { margin-top: 1.25rem; max-width: 44rem; }

        .post-list { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

        /* ---------- Article ---------- */
        .article { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(4rem, 8vw, 6rem); }
        .article-wrap { max-width: 44rem; margin-inline: auto; }
        .article-back {
            display: inline-flex; align-items: center; gap: .45rem;
            font-size: .88rem; color: var(--ink-subtle); text-decoration: none;
        }
        .article-back:hover { color: var(--accent); }
        .article h1 { margin-top: 1.4rem; font-size: clamp(2rem, 3.6vw, 2.85rem); }
        .article-meta {
            display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
            margin-top: 1.25rem; font-size: .86rem; color: var(--ink-subtle);
        }
        .article-body { margin-top: 2.5rem; }
        .article-body p { margin-top: 1.2rem; font-size: 1.02rem; line-height: 1.78; color: var(--ink-muted); }
        .article-body h2 {
            margin-top: 2.75rem; font-size: 1.45rem; font-weight: 600;
            letter-spacing: -.02em; line-height: 1.3;
        }
        .article-body ul { margin: 1.2rem 0 0; padding-left: 1.15rem; }
        .article-body li { margin-top: .6rem; color: var(--ink-muted); line-height: 1.7; }
        .article-body strong { color: var(--navy); font-weight: 600; }
        .article-body blockquote {
            margin: 2rem 0 0; padding: 1.1rem 1.4rem;
            border-left: 3px solid var(--accent-line);
            background: var(--surface);
            border-radius: 0 10px 10px 0;
        }
        .article-body blockquote p { margin: 0; color: var(--navy); font-size: 1.02rem; }
        .article-foot {
            margin-top: 3.5rem; padding-top: 2rem;
            border-top: 1px solid var(--border);
            display: flex; align-items: center; justify-content: space-between;
            gap: 1.5rem; flex-wrap: wrap;
        }
        .article-foot p { font-size: .95rem; color: var(--ink-muted); }

        /* ---------- Products dropdown ----------
           The nav carries two products now, so it needs a menu rather than a
           flat link. Opens on hover on pointer devices and on click/keyboard
           everywhere, so it works without a mouse. */
        .nav-item { position: relative; }
        .nav-toggle {
            display: inline-flex;
            align-items: center;
            gap: .35rem;
            background: none;
            border: 0;
            padding: .25rem 0;
            cursor: pointer;
        }
        .nav-toggle i { font-size: .72rem; transition: transform .2s ease; }
        .nav-item.is-open .nav-toggle i { transform: rotate(180deg); }

        .nav-dropdown {
            position: absolute;
            top: calc(100% + .85rem);
            left: 50%;
            transform: translateX(-50%) translateY(-6px);
            min-width: 27rem;
            padding: .5rem;
            background: var(--bg);
            border: 1px solid var(--border);
            border-radius: 14px;
            box-shadow: 0 1px 2px rgba(11,31,75,.05), 0 18px 44px rgba(11,31,75,.14);
            opacity: 0;
            visibility: hidden;
            transition: opacity .18s ease, transform .18s ease, visibility .18s;
            z-index: 20;
        }
        .nav-item.is-open .nav-dropdown {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0);
        }
        /* A gap between trigger and menu would drop the hover; bridge it. */
        .nav-dropdown::before {
            content: '';
            position: absolute;
            top: -.85rem; left: 0; right: 0;
            height: .85rem;
        }
        .nav-drop-item {
            display: flex;
            align-items: flex-start;
            gap: .8rem;
            padding: .75rem .8rem;
            border-radius: 10px;
            text-decoration: none;
            transition: background-color .15s ease;
        }
        .nav-drop-item:hover { background: var(--surface); }
        .nav-drop-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 34px;
            width: 34px; height: 34px;
            border-radius: 9px;
            background: var(--accent-soft);
            color: var(--accent);
            font-size: 1rem;
        }
        .nav-drop-text { display: block; }
        .nav-drop-text strong {
            display: block;
            font-size: .95rem;
            font-weight: 600;
            color: var(--navy);
            letter-spacing: -.015em;
        }
        .nav-drop-text em {
            display: block;
            margin-top: .2rem;
            font-style: normal;
            font-size: .82rem;
            /* these run to two lines now: they carry what each product does,
               which the names themselves deliberately do not spell out */
            line-height: 1.45;
            color: var(--ink-subtle);
        }

        .mobile-nav-label {
            font-size: .72rem;
            font-weight: 600;
            letter-spacing: .1em;
            text-transform: uppercase;
            color: var(--ink-subtle);
            padding-top: .5rem;
        }

        /* ---------- Product cards ---------- */
        .product-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 1.75rem;
        }
        .product-card {
            display: flex;
            flex-direction: column;
            background: var(--bg);
            border: 1px solid var(--border);
            border-radius: var(--radius-card);
            overflow: hidden;
            text-decoration: none;
            transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
        }
        .product-card:hover {
            transform: translateY(-3px);
            border-color: var(--accent-line);
            box-shadow: 0 1px 2px rgba(11,31,75,.04), 0 22px 50px rgba(11,31,75,.10);
        }
        .product-shot {
            height: 230px;
            overflow: hidden;
            background: var(--surface);
            border-bottom: 1px solid var(--border);
        }
        .product-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
        .product-body { padding: 1.6rem 1.65rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
        .product-name {
            display: inline-flex;
            align-items: center;
            gap: .45rem;
            font-size: .74rem;
            font-weight: 600;
            letter-spacing: .09em;
            text-transform: uppercase;
            color: var(--accent);
        }
        .product-card h3 { margin-top: .7rem; font-size: 1.35rem; font-weight: 500; letter-spacing: -.025em; }
        .product-card p { margin-top: .7rem; font-size: .96rem; line-height: 1.68; color: var(--ink-muted); }
        .product-card .tour-meta { margin-top: 1.2rem; }
        .product-card .post-more { margin-top: 1.4rem; }
        .product-card:hover .post-more i { transform: translateX(3px); }

        /* ---------- Product page hero video ---------- */
        .video-frame {
            position: relative;
            border-radius: var(--radius-card);
            overflow: hidden;
            border: 1px solid var(--border);
            box-shadow: var(--shot-shadow);
            background: #0b1f4b;
        }
        .video-frame video { display: block; width: 100%; height: auto; }
        .video-caption {
            margin-top: 1.1rem;
            font-size: .88rem;
            color: var(--ink-subtle);
        }

        @media (max-width: 860px) {
            .nav-dropdown { display: none; }
        }

        /* What each product actually takes as input. The two differ there more
           than anywhere else, so it gets its own row rather than a chip. */
        .product-input {
            /* auto, so the whole tail (input, chips, link) is anchored to the
               bottom of the card and lines up across both, whatever the
               paragraph above happens to wrap to */
            margin: 1.3rem 0 0;
            margin-top: auto;
            padding-top: 1.1rem;
            border-top: 1px solid var(--border-soft);
        }
        .product-input dt {
            font-size: .7rem;
            font-weight: 600;
            letter-spacing: .09em;
            text-transform: uppercase;
            color: var(--ink-subtle);
        }
        .product-input dd {
            margin: .35rem 0 0;
            font-size: .9rem;
            line-height: 1.6;
            color: var(--navy);
            /* two lines' worth, so the chips and link below line up across both
               cards even when one description wraps and the other does not */
            min-height: 2.9em;
        }
