@import url("tokens.css");

/* ONDUSTRY landing — assembled from the Web DS (tokens + component patterns). */

body { padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; position: relative; }
.eyebrow { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--brand-blue); }
.h2 { font-family: var(--f-display); font-size: clamp(1.9rem, 2.8vw, 2.7rem); color: var(--ink); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.lead { font-size: var(--fs-lead); color: var(--muted); }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head .lead { margin-top: 14px; }
img { max-width: 100%; display: block; }

/* ===== HEADER (single top plate, sticky) ===== */
.header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line-soft); }
.header-in { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.header .logo { height: 29px; }   /* Vova 2026-07-30: a touch bigger, was 26 */
.acts { display: flex; align-items: center; gap: 12px; }
.acts .link { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
/* support email (VCD-80 shrank to this): reads as a link — underline, quieter ink.
   margin-right + the 12px flex gap = 32px, detaching it from the [Log in + CTA] group (Vova 04.08) */
.acts .link-support { color: var(--body); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1px; margin-right: 20px; }
.acts .link-support:hover { color: var(--ink); }
.nav-toggle { display: none; }

/* ===== STICKY ANCHOR-BAR (rises, pins under header) ===== */
.anchorbar { position: sticky; top: 84px; z-index: 40; display: flex; justify-content: center; margin: -26px 0; pointer-events: none; }
.anchorbar .pill { position: relative; pointer-events: auto; display: inline-flex; gap: 2px; align-items: center; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 5px; box-shadow: var(--sh-md); }
.anchorbar .slider { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: var(--r-pill);
  background: var(--brand-blue); z-index: 0; transition: transform .34s cubic-bezier(.4,0,.2,1), width .34s cubic-bezier(.4,0,.2,1); }
.anchorbar a { position: relative; z-index: 1; padding: 8px 16px; border-radius: var(--r-pill); font-size: var(--fs-sm);
  font-weight: 600; color: var(--muted); transition: color .28s ease; }
.anchorbar a:hover { color: var(--ink); }
.anchorbar a.active { color: #fff; }
.anchorbar a.cross { color: var(--ink); font-weight: 600; display: inline-flex; gap: 5px; align-items: center; }
.anchorbar a.cross:hover { color: var(--brand-blue); }
.anchorbar a.cross .ext { font-size: .82em; opacity: .65; }

/* ===== HERO ===== */
/* scroll-reveal — content fades + moves up as it enters view */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s ease, transform 1.05s cubic-bezier(.2,.75,.3,1); transition-delay: .08s; }
.reveal.in { opacity: 1; transform: none; }
.benefit-grid > .reveal:nth-child(2), .price-grid > .reveal:nth-child(2) { transition-delay: .18s; }
.benefit-grid > .reveal:nth-child(3), .price-grid > .reveal:nth-child(3) { transition-delay: .3s; }
.benefit-grid > .reveal:nth-child(4) { transition-delay: .42s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.accent { color: var(--brand-blue); }
.hero { position: relative; overflow: hidden; isolation: isolate; padding: 64px 0 44px; }
.hero > .wrap { position: relative; z-index: 1; }  /* content above the dot-field / colour-bends bg */
.hero .g1 { width: 520px; height: 520px; top: -260px; right: -120px; opacity: .14; }
.hero .g2 { width: 420px; height: 420px; bottom: -280px; left: -160px; opacity: .12; }
/* dot-field background (distributor) — interactive canvas, dots light up near the cursor,
   the whole layer fades out toward the bottom (no hard cutoff into section 2) */
.hero-dots { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 32%, transparent 90%);
  mask-image: linear-gradient(to bottom, #000 32%, transparent 90%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.hero h1 { font-family: var(--f-display); font-size: clamp(2.6rem, 4.4vw, 4rem); line-height: 1.04; color: var(--ink);
  font-weight: 600; letter-spacing: -.03em; margin: 0 0 18px; }
.hero .lead { max-width: 33ch; }
.hero-ctas { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-quads { display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
/* the four labels stop fitting on one line before the hero stacks — a 2×2 block
   reads deliberate, a 3+1 wrap reads broken */
@media (max-width: 1150px) { .hero-quads { display: grid; grid-template-columns: max-content max-content; gap: 14px 26px; justify-content: start; } }
.quad { display: flex; align-items: center; gap: 9px; font-size: var(--fs-sm); font-weight: 600; color: var(--body); }
.quad .ic { width: 32px; height: 32px; border-radius: 9px; background: var(--brand-blue-soft); color: var(--brand-blue);
  display: grid; place-items: center; }
.quad .ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-visual { position: relative; display: grid; place-items: center; }
/* big bleeding logo mark behind the phone — appears, then gently breathes */
.hero-mark-wrap { position: absolute; top: -250px; right: -380px; left: auto; z-index: 0;
  animation: markFloat 8s ease-in-out 1.6s infinite; pointer-events: none; }
.hero-mark-spin { display: block; animation: markSpin 30s linear infinite; }
.hero-mark { width: 840px; max-width: none; display: block; opacity: 0; transform: scale(.7);
  animation: markIn 1.3s .15s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes markIn { to { opacity: 1; transform: scale(1); } }
@keyframes markSpin { to { transform: rotate(360deg); } }
@keyframes markFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .hero-mark-wrap, .hero-mark-spin { animation: none; } .hero-mark { animation: none; opacity: 1; transform: scale(1); } }
/* The mockup image bakes in the device body AND its drop shadow (on transparency), so the CSS
   frame (navy body, padding, box-shadow) is gone. 294px wide → the visible device (95.4% of the
   file's height) renders ~581px tall — the same height the old 268px CSS-framed phone had. */
.phone { position: relative; z-index: 1; width: 294px; }
/* hero-phone.webp is the FULL source frame (2050×3945 → 670×1289): the soft drop shadow
   fades to alpha 0 at the file edges, so no hard cut line. The layout box stays the old
   294px crop (97,0→1933,3794 of the source, scale 294/1836); the extra shadow margins
   hang outside it via negative margins — the visible device keeps its exact size/position.
   Everything is % of the .phone width (at 294px: 328.27px wide, margins -18.74/-24.18/-15.53),
   so the phone pass can shrink the whole assembly — device, shadow and all — by capping
   .phone's width alone. The box height works out to 2.066× the .phone width. */
.phone img { width: 111.657%; max-width: none; height: auto; display: block;
  margin: 0 -6.374% -8.225% -5.282%; }
/* AI eyebrow — small pill above the H1 (client asked the stamp copy to move up here).
   .badge--brand supplies the soft-blue pill; this only sizes it for the hero. */
.hero-eyebrow { margin-bottom: 18px; letter-spacing: .04em; }
.hero-eyebrow .star { width: 13px; height: 13px; flex: none; }
@media (prefers-reduced-motion: reduce) { .fan path, .wire { animation: none; } }

/* ===== DATA-HUB ===== */
.datahub { background: var(--bg-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.hub-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 48px; align-items: center; }
/* the copy column carries a headline + supporting line + two paragraphs now, so
   the headline runs a step smaller than the page-wide .h2 to keep it in balance */
.hub-copy h2 { margin-bottom: 16px; font-size: clamp(1.7rem, 2.3vw, 2.25rem); }
.hub-copy .accent { color: var(--brand-blue); }
/* supporting headline (.lead) then two body paragraphs — the body copy sits a
   step below the lead so the three levels stay readable in one column */
.hub-copy .hub-body { margin-top: 14px; font-size: var(--fs-body); color: var(--muted); max-width: min(46ch, 100%); }
.diagram { padding: 36px 28px; display: grid; grid-template-columns: auto 92px 1fr; align-items: center;
  background: radial-gradient(420px 220px at 70% 50%, rgba(0,71,255,.05), transparent 70%), #fff; }
.cluster { display: flex; align-items: center; gap: 8px; }
.node { display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; }
.tile { width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; background: #fff;
  border: 1px solid var(--line); color: var(--ink); box-shadow: var(--sh-sm); }
.tile svg { width: 27px; height: 27px; }
.node.lock .tile { border-radius: 50%; background: #EAFBF1; border-color: #CDEED8; color: #1B9C53; }
.node.hub .tile { position: relative; width: 80px; height: 80px; border-radius: 50%; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 14px 32px rgba(0,71,255,.26); }
.node.hub .tile img { width: 48px; height: 48px; }
.node.hub .tile::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(0,71,255,.28), transparent 70%); }
.node.hub .lbl { font-weight: 700; color: var(--brand-blue); }
.node .lbl { font-size: var(--fs-xs); font-weight: 700; color: var(--ink); line-height: 1.2; }
.wire { width: 24px; height: 2px; background: repeating-linear-gradient(90deg, var(--brand-blue) 0 5px, transparent 5px 10px); opacity: .55; }
.fan { width: 100%; height: 212px; }
.fan path { fill: none; stroke: var(--brand-blue); stroke-width: 1.6; opacity: .45; vector-effect: non-scaling-stroke;
  stroke-dasharray: 5 5; animation: flow 1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -10; } }
.partners { display: flex; flex-direction: column; gap: 11px; }
.spoke { display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 9px 16px; box-shadow: var(--sh-sm); }
.spoke .pic { width: 28px; height: 28px; border-radius: 8px; background: var(--brand-blue-soft); color: var(--brand-blue); display: grid; place-items: center; }
.spoke .pic svg { width: 16px; height: 16px; }
.spoke .t { font-size: var(--fs-sm); font-weight: 700; color: var(--ink); }
svg[data-i] { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.erp-strip { margin-top: 40px; text-align: center; }
.erp-strip .cap { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 16px; }
.erp-logos { display: flex; flex-wrap: wrap; gap: 12px 34px; justify-content: center; align-items: center; }
.erp-logos span { font-weight: 600; color: var(--muted); font-size: 1.02rem; opacity: .8; }

/* ===== FEATURES EXPLORER ===== */
.tabs-wrap { display: flex; justify-content: center; margin-bottom: 40px; }
.tabs { display: inline-flex; gap: 4px; padding: 5px; background: var(--bg-sink); border-radius: var(--r-pill); }
.tab { padding: 9px 22px; border-radius: var(--r-pill); font-weight: 700; font-size: var(--fs-sm); color: var(--muted); }
.tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--sh-sm); }
.explorer { display: grid; grid-template-columns: 1fr 1.35fr; gap: 44px; align-items: start; }
.feat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.feat-item { position: relative; overflow: hidden; text-align: left; padding: 14px; border-radius: var(--r-md);
  border: 1px solid transparent; transition: border-color .2s; }
.feat-item::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--brand-blue);
  transform: translateX(-101%); transition: transform .38s cubic-bezier(.4,0,.2,1); z-index: 0; }
.feat-item > * { position: relative; z-index: 1; }
.feat-item:hover::before { transform: translateX(0); }
.feat-item:hover { border-color: var(--brand-blue); }
.feat-item:hover .ft, .feat-item:hover .fd { color: #fff; }
.feat-item:hover .ic { background: rgba(255,255,255,.22); color: #fff; }
.feat-item:hover .ic svg { stroke: #fff; }
.feat-item[aria-selected="true"] { background: #fff; border-color: var(--line); box-shadow: var(--sh-sm); }
.feat-item .ft { font-weight: 700; color: var(--ink); font-size: .98rem; display: flex; align-items: center; gap: 9px; }
.feat-item .ic { width: 28px; height: 28px; border-radius: 9px; background: var(--brand-blue-soft); color: var(--brand-blue);
  display: grid; place-items: center; flex: none; }
.feat-item .ic svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feat-item .fd { display: block; font-size: var(--fs-sm); color: var(--muted); margin-top: 3px; padding-left: 37px; }
.feat-cta { grid-column: 1 / -1; margin-top: 12px; }
.preview { background: transparent; border: none; padding: 0; position: sticky; top: 150px; }
/* transparent PNG (browser mock already has its own shadow) — no plate, no crop.
   aspect-ratio reserves the height before the image loads → no layout jump on switch. */
.preview .shot { position: relative; }
.preview .shot img { width: 100%; height: auto; display: block; aspect-ratio: 3248 / 2122; }
.preview h3 { font-family: var(--f-display); font-size: var(--fs-h3); color: var(--ink); margin: 16px 4px 6px; }
.preview p { font-size: var(--fs-sm); color: var(--body); margin: 0 4px; }

/* ===== DEMO BAND ===== */
.demo-band { background: var(--navy); color: var(--on-navy); border-radius: var(--r-xl); padding: 60px 52px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; position: relative; overflow: hidden; isolation: isolate; }
.demo-band .g { width: 340px; height: 340px; top: -180px; right: -80px; left: auto; opacity: .16; }
.band-mark { position: absolute; left: -44px; right: auto; bottom: -76px; width: 290px; opacity: .9; z-index: 0; pointer-events: none; }
.demo-band h2 { font-family: var(--f-display); color: #fff; font-size: 1.8rem; font-weight: 600; letter-spacing: -.02em; }
.demo-band p { color: rgba(238,242,251,.72); margin-top: 6px; }
.demo-band .btn--secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.demo-band .btn--secondary:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); color: #fff; }
.demo-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== MOBILE APP ===== */
.appsec { background: var(--bg-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  overflow: hidden; isolation: isolate; }
/* dealer page — the section it follows is already bg-soft, so this one stays white to keep the
   light/soft alternation going */
/* borders come off too — the preceding .datahub section already draws its own bottom rule, and
   stacking the two renders as a 2px line */
.appsec--plain { background: #fff; border-top: none; border-bottom: none; }
.appsec .ga { width: 460px; height: 460px; top: -150px; left: -190px; opacity: .11; }
.app-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
/* The mockup photo already contains the device and a hand, on transparency — no .phone frame.
   It is deliberately larger than its column and hangs off to the left and past the section floor;
   .appsec's overflow:hidden does the cropping. */
.app-visual { align-self: end; }
/* width + margin-left must sum to 100% so the right edge lands exactly on the column edge and the
   phone stays clear of the copy — the whole overhang goes left, into the section's dead space */
.app-mock { width: 140%; max-width: none; margin-left: -40%; margin-bottom: -124px; }
.app-copy h2 { margin-top: 14px; }
.app-copy .lead { margin-top: 16px; max-width: 44ch; }
.app-list { list-style: none; margin: 30px 0 32px; padding: 0; display: grid; gap: 18px; max-width: 52ch; }
.app-list li { display: flex; gap: 14px; align-items: flex-start; font-size: var(--fs-sm); color: var(--body); }
.app-list b { color: var(--ink); font-weight: 650; }
.app-list .ic { flex: none; width: 34px; height: 34px; border-radius: 10px; background: #fff; border: 1px solid var(--line);
  color: var(--brand-blue); display: grid; place-items: center; box-shadow: var(--sh-sm); }
.app-list .ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.app-note { font-size: var(--fs-xs); color: var(--muted); margin-top: 14px; }

/* ===== STORE BADGES — official artwork, never recreated or restyled =====
   Apple ships a bare 119.66×40 SVG with no padding.
   Google ships a 646×250 PNG whose artwork is only 564×168 — the required ¼-height clear
   space is baked into the file. Setting both to the same CSS height would therefore render
   Google ~33% smaller. Instead the Google file is scaled by 250/168 (=1.4881) so its artwork
   matches Apple's height, and its built-in padding is pulled back out with a negative margin
   (= 41/250 of the rendered height). Neither file is touched. Apple's badge comes first and
   stays black — both are Apple's rules when another platform's badge is in the same lineup. */
.store-badges { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.store-badge { display: inline-flex; transition: transform .15s ease; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge img { display: block; width: auto; }

/* A linked <img> is dead in Safari: pressing it starts an image-drag / text selection instead of
   following the <a>, so the button reads as unclickable. Same bug and same fix as the v1 landing's
   logo — make the IMAGE transparent to pointer events so every click lands on the <a>, which spans
   the exact same box, and block drag + selection outright. Applies to the header logo too. */
.store-badge, .header-in > a { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.store-badge img, .header-in > a .logo { pointer-events: none; -webkit-user-drag: none; user-select: none; }
.store-badge--apple img { height: 48px; }              /* artwork height — Apple's minimum is 40px */
.store-badge--google { margin: -11.71px; }             /* 48 × 41/168 */
.store-badge--google img { height: 71.43px; }          /* 48 × 250/168 */

/* footer variant — artwork height 40px */
.store-badges--sm { gap: 14px; }
.store-badges--sm .store-badge--apple img { height: 40px; }
.store-badges--sm .store-badge--google { margin: -9.76px; }
.store-badges--sm .store-badge--google img { height: 59.52px; }

/* ===== FOOTER ===== */
.footer { background: var(--navy); color: rgba(238,242,251,.66); padding: 44px 0 26px; }
.footer-min { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer .logo { height: 24px; }
.footer .tag { font-size: var(--fs-sm); color: rgba(238,242,251,.6); margin-top: 8px; max-width: 30ch; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { font-size: var(--fs-sm); color: rgba(238,242,251,.72); }
.foot-links a:hover { color: #fff; }
.foot-social { display: flex; gap: 10px; }
.foot-social a { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.foot-social a:hover { background: rgba(255,255,255,.16); }
.foot-apps { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 34px; }
.foot-apps-label { font-size: var(--fs-sm); font-weight: 600; color: rgba(238,242,251,.72); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 24px; padding-top: 18px; font-size: var(--fs-xs); color: rgba(238,242,251,.5); }

/* ===== DEALER hero + pricing + benefits ===== */
.hero-centered .hero-copy { max-width: 720px; margin: 0 auto; text-align: center; }
.hero-centered .hero-ctas, .hero-centered .hero-quads { justify-content: center; }
.browser-mock { max-width: 860px; margin: 36px auto 0; position: relative; z-index: 1; background: var(--navy);
  border-radius: 18px; padding: 7px; box-shadow: var(--sh-lg); transform: scale(.78); transform-origin: center top; will-change: transform; }
.browser-mock img { width: 100%; display: block; aspect-ratio: 16/10; object-fit: cover; object-position: top left; border-radius: 12px; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; padding: 28px 24px; position: relative; cursor: pointer; overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s; }
.price-card.feat { border-color: var(--brand-blue); box-shadow: 0 0 0 1px var(--brand-blue); }
/* Google-style blue curtain drops from the top; content turns white in parallel */
.price-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--brand-blue);
  transform: translateY(-101%); transition: transform .42s cubic-bezier(.4,0,.2,1); z-index: 0; }
.price-card > * { position: relative; z-index: 1; }
.price-card:hover { border-color: var(--brand-blue); transform: translateY(-4px); box-shadow: var(--sh-md); }
.price-card:hover::before { transform: translateY(0); }
.price-card:hover .tier, .price-card:hover .price, .price-card:hover .price small,
.price-card:hover .pdesc, .price-card:hover li { color: #fff; }
.price-card:hover li::before { color: #fff; }
.price-card:hover .btn--secondary { background: #fff; color: var(--brand-blue); border-color: #fff; }
.price-card:hover .btn--primary { background: #fff; color: var(--brand-blue); }
.price-card:hover .badge2 { background: #fff; color: var(--brand-blue); }
.price-card .badge2 { position: absolute; top: 20px; right: 20px; left: auto; z-index: 2; }
.price-card.feat { padding-top: 30px; }
.price-card .tier { font-family: var(--f-display); font-weight: 600; color: var(--ink); font-size: 1.1rem; }
.price-card .price { font-family: var(--f-display); font-size: 2.5rem; font-weight: 600; color: var(--ink); letter-spacing: -.03em; margin: 10px 0 2px; }
.price-card .price small { font-size: .9rem; font-weight: 600; color: var(--muted); }
.price-card .pdesc { font-size: var(--fs-sm); color: var(--muted); min-height: 40px; }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 24px; display: flex; flex-direction: column; gap: 11px; }
.price-card li { font-size: var(--fs-sm); color: var(--body); display: flex; gap: 9px; align-items: flex-start; }
.price-card li::before { content: "✓"; color: var(--brand-blue); font-weight: 600; }
.price-card .btn { margin-top: auto; }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefit { padding: 26px 22px; }
.benefit .bic { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-blue-soft); color: var(--brand-blue);
  display: grid; place-items: center; margin-bottom: 14px; transition: background .2s, color .2s; }
.benefit .bic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.benefit.fill-hover:hover .bic { background: rgba(255,255,255,.22); color: #fff; }
.benefit h3 { font-family: var(--f-display); font-size: 1.06rem; color: var(--ink); font-weight: 700; margin-bottom: 6px; }
.benefit p { font-size: var(--fs-sm); color: var(--muted); }

/* ===== BOOK-A-DEMO MODAL ===== */
.modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0,12,38,.5); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity .28s ease; }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal { background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-lg); width: 100%; max-width: 520px;
  padding: 34px; position: relative; max-height: 92vh; overflow-y: auto;
  transform: translateY(14px) scale(.98); transition: transform .32s cubic-bezier(.2,.7,.3,1); }
.modal-overlay.open .modal { transform: none; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: var(--muted); font-size: 15px; }
.modal-close:hover { background: var(--bg-soft); color: var(--ink); }
.modal h3 { font-family: var(--f-display); font-size: 1.5rem; color: var(--ink); font-weight: 600; letter-spacing: -.02em; }
.modal .sub { font-size: var(--fs-sm); color: var(--muted); margin: 8px 0 22px; }
/* wide variant — holds the Calendly inline embed, which needs the room to lay
   out its calendar + time-slot columns side by side.
   The frame flexes to fill whatever height is left rather than taking a fixed
   value: Calendly scrolls internally, and a modal scrollbar wrapped around an
   iframe scrollbar is miserable to use. min-height keeps it usable if the
   viewport is too short to give it a fair share. */
.modal--wide { max-width: 980px; padding: 28px; display: flex; flex-direction: column; height: min(860px, 92vh); }
.modal-cal { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.modal-cal .sub { margin-bottom: 16px; }
.modal-cal .cal-frame { flex: 1; min-height: 420px; width: 100%; border: 0;
  border-radius: var(--r-md); background: var(--bg-soft); }
@media (max-width: 900px) {
  /* Calendly collapses to a single stacked column below ~900, so extra width buys nothing */
  .modal--wide { max-width: 560px; padding: 24px; }
}

/* ===== RESPONSIVE ===== */
/* mobile-menu machinery is dead on desktop — the burger itself only exists ≤900 */
.mobile-menu, .mobile-menu-backdrop { display: none; }
.feat-panel { display: none; }   /* desktop uses the sticky .preview instead */

@media (max-width: 900px) {
  html { scroll-padding-top: 92px; }   /* no anchorbar on mobile — header only */
  .anchorbar { display: none; }

  /* -- header: [logo] [Book a Demo] [burger] — Log in moves into the menu.
        The legal pages keep their own compact header (no burger there). -- */
  body:not(.legal-body) .acts .link { display: none; }
  .acts { gap: 8px; }
  .acts .btn { padding: 12px 18px; }   /* ≥44px tall — the one sticky CTA */
  .nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px;
    border-radius: 12px; color: var(--ink); flex: none; }
  .nav-toggle:active { background: var(--bg-soft); }
  .nav-toggle svg { width: 24px; height: 24px; fill: none; stroke: currentColor;
    stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  .nav-toggle .ic-close { display: none; }
  .nav-toggle[aria-expanded="true"] .ic-burger { display: none; }
  .nav-toggle[aria-expanded="true"] .ic-close { display: block; }

  /* -- the menu panel drops from under the header plate -- */
  .mobile-menu { display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--sh-lg);
    padding: 8px 12px 14px; opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .22s ease, transform .26s cubic-bezier(.2,.7,.3,1), visibility .26s; }
  body.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
  .mm-link { display: flex; align-items: center; min-height: 48px; padding: 0 12px;
    border-radius: 10px; font-size: 1rem; font-weight: 600; color: var(--ink); }
  .mm-link:active { background: var(--bg-soft); }
  .mm-link .ext { font-size: .82em; opacity: .6; margin-left: 5px; }
  .mm-cross { color: var(--brand-blue); }
  .mm-login { border-top: 1px solid var(--line-soft); border-radius: 0 0 10px 10px;
    margin-top: 6px; padding-top: 4px; color: var(--body); }
  .mm-support { color: var(--body); }
  .mobile-menu-backdrop { display: block; position: fixed; inset: 0; z-index: 55;
    background: rgba(0,12,38,.32); opacity: 0; visibility: hidden; transition: opacity .24s ease, visibility .24s; }
  body.menu-open .mobile-menu-backdrop { opacity: 1; visibility: visible; }
  body.menu-open { overflow: hidden; }
  @media (prefers-reduced-motion: reduce) {
    .mobile-menu { transition: none; transform: none; }
    .mobile-menu-backdrop { transition: none; }
  }

  .hero-grid, .hub-grid, .explorer { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .price-grid { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .diagram { grid-template-columns: 1fr; gap: 18px; justify-items: center; }
  .fan { display: none; }
  .partners { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .preview { position: static; }
  .demo-band { flex-direction: column; align-items: flex-start; }
  .app-grid { grid-template-columns: 1fr; gap: 40px; justify-items: center; text-align: center; }
  .app-copy .lead, .app-list { margin-left: auto; margin-right: auto; }
  .app-list li { text-align: left; }
  .store-badges { justify-content: center; }
  /* stacked, mock on top — the bleed would run straight into the copy, so it comes off */
  .app-visual { align-self: auto; }
  .app-mock { width: 100%; max-width: 340px; margin: 0 auto; }
}

/* ===== PHONE PASS (VCD-71) — the real mobile layout ===== */
@media (max-width: 700px) {
  .section { padding: 72px 0; }

  /* -- HERO: the phone must leave the first screen room for the AI pill and a
        couple of H1 lines below it (Vova, 2026-08). Its layout box is 2.066× its
        width (the img + shadow margins are % of .phone now), so one width cap
        holds the whole assembly to the height left over after the fixed chrome:
        header 72 + hero pad 28 + grid gap 20 + pill ~57 + two H1 lines ~87 ≈ 264px.
        Tall screens hit the 294px ceiling and keep the full-size phone.
        The .hero-centered guard keeps dealer.html's text hero untouched. -- */
  .hero:not(.hero-centered) { --phone-w: min(294px, calc((100svh - 264px) * .484));
    padding-top: 28px; }
  .hero-grid { gap: 20px; }
  .phone { width: var(--phone-w, 294px); }
  /* the spinning mark scales AND shifts with the phone (all ÷294 of its box),
     so the phone-over-mark composition survives any cap. At the 294px ceiling
     this is exactly the old 740px mark at top:-250/right:-380 (~12% smaller
     than desktop — Vova, 2026-08); z-index keeps the copy above the bleed. */
  .hero-mark { width: calc(var(--phone-w, 294px) * 2.517); }
  .hero-mark-wrap { top: calc(var(--phone-w, 294px) * -.85); right: calc(var(--phone-w, 294px) * -1.293); }
  .hero-copy { position: relative; z-index: 1; }

  /* -- DATA HUB: the diagram goes vertical — ERP → secure → hub → partners,
        one column, one pill per row. This is also what kills the page's
        horizontal overflow (the row cluster was 40px wider than a 360 screen). -- */
  .hub-grid { gap: 36px; }
  .hub-copy h2 { margin-bottom: 12px; }
  .hub-copy .lead { font-size: 1.08rem; line-height: 1.5; }
  .hub-copy .hub-body { font-size: .95rem; line-height: 1.62; margin-top: 12px; }
  .diagram { width: 100%; padding: 28px 20px; gap: 0; grid-template-columns: 1fr;
    background: #fff; }
  .cluster { flex-direction: column; gap: 8px; width: 100%; }
  .wire { width: 2px; height: 22px;
    background: repeating-linear-gradient(180deg, var(--brand-blue) 0 5px, transparent 5px 10px); }
  .node .lbl br { display: none; }   /* "Your ERP System" fits on one line here */
  .partners { grid-template-columns: 1fr; gap: 10px; justify-items: stretch; }
  /* the wire continuing from the hub down into the partner list */
  .partners::before { content: ""; justify-self: center; width: 2px; height: 22px; margin: 8px 0 2px;
    background: repeating-linear-gradient(180deg, var(--brand-blue) 0 5px, transparent 5px 10px); opacity: .55; }
  .spoke { justify-content: flex-start; padding: 11px 16px; }

  /* -- FEATURES: accordion — the tap opens the description + screenshot in
        place, so the change is visible where the finger is. The desktop
        sticky preview is off. -- */
  .preview { display: none; }
  .feat-list { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line-soft); }
  .feat-item { border-radius: 0; border: 0; border-bottom: 1px solid var(--line-soft);
    padding: 16px 36px 16px 2px; position: relative; }
  .feat-item::before { display: none; }           /* the hover fill is a mouse thing */
  .feat-item:hover .ft, .feat-item:hover .fd { color: inherit; }
  .feat-item:hover .ic { background: var(--brand-blue-soft); color: var(--brand-blue); }
  .feat-item:hover .ic svg { stroke: currentColor; }
  .feat-item[aria-selected="true"] { background: none; border-color: transparent; box-shadow: none; }
  .feat-item[aria-selected="true"] .ft { color: var(--brand-blue); }
  .feat-item[aria-selected="true"] .ic { background: var(--brand-blue); color: #fff; }
  .feat-item::after { content: ""; position: absolute; right: 12px; top: 24px; width: 8px; height: 8px;
    border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint);
    transform: rotate(45deg); transition: transform .25s ease; }
  .feat-item[aria-selected="true"]::after { transform: rotate(225deg); border-color: var(--brand-blue); }
  .feat-panel { display: grid; grid-template-rows: 0fr; border-bottom: 1px solid transparent;
    transition: grid-template-rows .34s cubic-bezier(.4,0,.2,1); }
  .feat-item[aria-selected="true"] + .feat-panel { grid-template-rows: 1fr; border-bottom-color: var(--line-soft); }
  .feat-panel-in { overflow: hidden; min-height: 0; }
  .feat-panel .fp-d { margin: 0 0 14px 39px; font-size: var(--fs-sm); line-height: 1.55; color: var(--muted); }
  .feat-panel img { width: 100%; border-radius: 12px; margin-bottom: 18px;
    aspect-ratio: 3248 / 2122; }
  .feat-cta { margin-top: 20px; }
  @media (prefers-reduced-motion: reduce) { .feat-panel, .feat-item::after { transition: none; } }

  /* -- MOBILE APP: one alignment (left), a clear type scale, bigger phone -- */
  .app-grid { gap: 8px; justify-items: stretch; text-align: left; }
  .app-copy .lead, .app-list { margin-left: 0; margin-right: 0; }
  .app-copy h2 { margin-top: 10px; font-size: 1.75rem; }
  .app-copy .lead { margin-top: 12px; font-size: 1.08rem; line-height: 1.55; }
  .app-list { margin: 26px 0 30px; gap: 16px; }
  .app-list li { font-size: .95rem; line-height: 1.5; }
  .store-badges { justify-content: flex-start; }
  .app-note { margin-top: 12px; }
  /* the same hand photo, big: the phone centred in the column, the hand
     running off the left edge — .appsec's overflow:hidden crops the bleed.
     Centring is done against the DEVICE, not the file: in hand-with-app.png the
     phone body spans x 508–929 of 999, so its centre sits at 71.9% of the image
     width. left:50% puts the image's left edge on the column centre and
     translateX(-71.9%) pulls the device centre exactly onto it — true at any
     viewport width, unlike the old width:150%/margin -50% eyeballing. */
  .app-visual { width: 100%; overflow: visible; }
  .app-mock { width: 150%; max-width: none; margin: 0;
    position: relative; left: 50%; transform: translateX(-71.9%); }

  /* -- BAND: the decorative mark moves to the bottom-right corner -- */
  .band-mark { left: auto; right: -56px; bottom: -70px; width: 230px; }
  .demo-band { padding: 44px 28px; }
  .demo-actions { width: 100%; flex-direction: column; }
  .demo-actions .btn { width: 100%; }
}

@media (max-width: 560px) {
  /* header on a 360 screen: the logo and CTA both give a little, so
     [logo] [Book a Demo] [burger] sit with real air between them */
  body:not(.legal-body) .header .logo { height: 24px; }
  body:not(.legal-body) .acts .btn { padding: 12px 14px; }

  /* AI pill above the H1: the "FOR THE FLOORING INDUSTRY" tail comes off —
     the keyword lives in the H1, and one short line beats a wrapped pill */
  .hero-eyebrow .eyebrow-tail { display: none; }

  /* hero CTAs side by side — both fit a 312px column with trimmed padding */
  .hero-ctas { flex-wrap: nowrap; gap: 10px; }
  .hero-ctas .btn--lg { flex: 1 1 0; justify-content: center; padding: 13px 10px;
    font-size: .95rem; white-space: nowrap; }

  .feat-list, .benefit-grid { grid-template-columns: 1fr; }
  .footer-min { flex-direction: column; align-items: flex-start; }
  .app-list { gap: 16px; }
  /* store badges KEEP the 48px artwork here — they are tap targets (VCD-71);
     the footer's --sm variant stays 40 via its own more-specific rules */
  .foot-apps { gap: 14px; margin-top: 28px; }
}

/* ============================================================================
   LEGAL / LONG-TEXT PAGE TEMPLATE  (VCD-79)
   One layout for every text-only page: Privacy Policy, Terms of Service, and
   whatever comes next. Two columns — sticky anchor nav left, prose right.

   To add a page: copy privacy.html, swap <title>/h1/meta + write <h2> sections.
   The anchor nav, the section numbers, the reading time and the progress bar
   all derive from the markup — nothing here is per-page.

   The vertical rhythm is the point of this block. Rules that carry it:
   - space ABOVE a heading is ~4x the space below it, so a heading reads as
     attached to the text it introduces, not floating between two blocks;
   - paragraph gap (1.35em) sits just under one line of leading (1.75em), so
     paragraphs separate without a blank-line hole;
   - list items are spaced tighter than paragraphs, so a list reads as one unit.
   ==========================================================================*/

/* Anchor landing point: the sticky header + progress rail must stay clear.
   The offset is owned by scroll-margin-top on the headings themselves (below).
   The landing pages set a global scroll-padding-top:150px for their anchor-bar,
   and container padding ADDS to target margin — leaving both on gave a 96+96
   drop, which also pushed the heading past the scrollspy line so the nav
   highlighted the previous section. Zero it out here; don't "restore" it. */
html:has(.legal-page) { scroll-padding-top: 0; }

/* ---- reading progress rail, pinned under the header ---- */
.legal-progress { position: fixed; top: 72px; left: 0; height: 2px; z-index: 55;
  width: 0; background: var(--brand-blue); transition: width .08s linear; }

/* ---- page head ---- */
.legal-page { padding: 56px 0 96px; }
/* full-width head: the meta rule must line up with the two columns below it,
   so only the headline itself carries a measure */
.legal-head { margin-bottom: 56px; }
.legal-head h1 { max-width: 720px; font-family: var(--f-display); font-size: clamp(2.1rem, 3.6vw, 2.9rem);
  font-weight: 600; line-height: 1.08; letter-spacing: -.025em; color: var(--ink);
  margin-top: 14px; text-wrap: balance; }
.legal-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: var(--fs-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
.legal-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line);
  flex: none; }
.legal-meta .print { margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; color: var(--body); transition: color .15s; }
.legal-meta .print:hover { color: var(--brand-blue); }
.legal-meta .print svg { width: 15px; height: 15px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- two-column shell ---- */
.legal-grid { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 96px;
  align-items: start; }

/* ---- left: anchor nav ---- */
.legal-toc { position: sticky; top: 104px; }
.legal-toc summary { display: none; }          /* mobile-only affordance */
.toc-label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.toc-list { display: flex; flex-direction: column; border-left: 2px solid var(--line-soft);
  max-height: calc(100vh - 210px); overflow-y: auto; scrollbar-width: thin;
  overscroll-behavior: contain; }
.toc-list a { display: flex; gap: 10px; padding: 8px 0 8px 18px; margin-left: -2px;
  border-left: 2px solid transparent; font-size: var(--fs-sm); line-height: 1.4;
  color: var(--muted); transition: color .16s, border-color .16s; }
.toc-list a .n { flex: none; font-size: var(--fs-xs); font-weight: 700; padding-top: .12em;
  color: var(--muted); font-variant-numeric: tabular-nums; transition: color .16s; }
.toc-list a:hover { color: var(--ink); border-left-color: var(--line); }
.toc-list a.active { color: var(--ink); font-weight: 600; border-left-color: var(--brand-blue); }
.toc-list a.active .n { color: var(--brand-blue); }

/* ---- right: the prose ---- */
.legal-prose { max-width: 66ch; counter-reset: sect;
  font-size: 1.0625rem; line-height: 1.75; color: var(--body);
  text-wrap: pretty; overflow-wrap: break-word; hyphens: none; }
.legal-prose > :first-child { margin-top: 0; }
.legal-prose > :last-child { margin-bottom: 0; }

/* standfirst — the paragraph that opens the document */
.legal-prose .standfirst { font-size: 1.2rem; line-height: 1.62; color: var(--body);
  margin-bottom: 2.4rem; padding-bottom: 2.4rem; border-bottom: 1px solid var(--line-soft); }

/* section heading, with its number hung out into the gutter */
.legal-prose h2 { position: relative; counter-increment: sect;
  font-family: var(--f-display); font-size: clamp(1.45rem, 2vw, 1.75rem); font-weight: 600;
  line-height: 1.22; letter-spacing: -.02em; color: var(--ink);
  margin: 4rem 0 1rem; scroll-margin-top: 96px; text-wrap: balance; }
.legal-prose h2::before { content: counter(sect, decimal-leading-zero);
  position: absolute; left: -48px; top: .42em; font-family: var(--f-sans);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; color: var(--muted);
  font-variant-numeric: tabular-nums; }
.legal-prose h3 { font-family: var(--f-display); font-size: 1.14rem; font-weight: 600;
  letter-spacing: -.01em; line-height: 1.35; color: var(--ink); margin: 2.4rem 0 .7rem;
  scroll-margin-top: 96px; }
/* heading straight after a heading: no double gap */
.legal-prose h2 + h3 { margin-top: 1.4rem; }

.legal-prose p { margin: 0 0 1.35em; hanging-punctuation: first; }
.legal-prose strong { font-weight: 650; color: var(--ink); }

/* lists: markers hung in the indent, items tighter than paragraphs */
.legal-prose ul, .legal-prose ol { list-style: none; margin: 1.35em 0 1.7em; padding: 0; }
.legal-prose li { position: relative; padding-left: 2.6em; }
.legal-prose li + li { margin-top: .72em; }
.legal-prose ul > li::before { content: ""; position: absolute; left: .3em; top: .72em;
  width: 6px; height: 6px; border-radius: 2px; background: var(--muted); opacity: .55; }
.legal-prose ol { counter-reset: item; }
.legal-prose ol > li { counter-increment: item; }
.legal-prose ol > li::before { content: counter(item) "."; position: absolute; left: 0;
  width: 1.9em; text-align: right; white-space: nowrap; font-weight: 700; color: var(--ink);
  font-variant-numeric: tabular-nums; }
/* nested list — lettered, one step quieter */
.legal-prose li > ol { counter-reset: sub; margin: .8em 0 .2em; }
.legal-prose li > ol > li { counter-increment: sub; }
.legal-prose li > ol > li::before { content: counter(sub, lower-alpha) ")"; color: var(--muted);
  font-weight: 650; }

.legal-prose a { color: var(--brand-blue); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: rgba(0,71,255,.32);
  transition: text-decoration-color .15s, text-decoration-thickness .15s; }
.legal-prose a:hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }

.legal-prose blockquote { margin: 1.7em 0; padding: 2px 0 2px 22px;
  border-left: 2px solid var(--brand-blue); color: var(--ink); }
.legal-prose hr { border: none; border-top: 1px solid var(--line-soft); margin: 3rem 0; }

/* end-of-document footer inside the prose column */
.legal-end { display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; margin-top: 4.5rem; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: var(--fs-sm); color: var(--muted); }
.legal-end a { font-weight: 600; }
.legal-page ::selection { background: rgba(0,71,255,.14); }

/* ---- responsive ---- */
@media (max-width: 1080px) {
  .legal-grid { gap: 56px; grid-template-columns: 208px minmax(0, 1fr); }
  /* no gutter left to hang the number in — bring it inline above the title */
  .legal-prose h2::before { position: static; display: block; left: auto; top: auto;
    margin-bottom: .5rem; }
}
@media (max-width: 900px) {
  /* the anchor menu is the nav on these pages, so the burger has nothing to open */
  .legal-page ~ * .nav-toggle, .legal-body .nav-toggle { display: none; }
}
@media (max-width: 560px) {
  /* The shared header runs out of room at phone widths: "Log in" wraps onto a
     second line and collides with the logo. Nothing is dropped — the label is
     kept on one line and the CTA is trimmed, which is enough to fit 312px.
     Scoped to the text pages on purpose: the landing carries the same defect
     PLUS the burger, so it needs its own answer in the mobile pass. */
  .legal-body .header-in > a { flex: none; }
  .legal-body .acts { flex: none; gap: 10px; }
  /* no room for a third header item at 312px; legal pages have no burger to carry it */
  .legal-body .link-support { display: none; }
  .legal-body .acts .link { white-space: nowrap; }
  .legal-body .acts .btn { padding: 10px 16px; }
  .legal-body .header .logo { height: 25px; }
  .legal-meta .print { margin-left: 0; }
}
@media (max-width: 860px) {
  .legal-page { padding: 36px 0 72px; }
  .legal-grid { grid-template-columns: 1fr; gap: 0; }
  .legal-head { margin-bottom: 36px; }
  .legal-toc { position: static; margin-bottom: 40px; }
  .legal-toc details { background: var(--bg-soft); border: 1px solid var(--line);
    border-radius: var(--r-md); }
  .legal-toc summary { display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none;
    font-weight: 650; font-size: var(--fs-sm); color: var(--ink); }
  .legal-toc summary::-webkit-details-marker { display: none; }
  .legal-toc summary .chev { transition: transform .2s; color: var(--muted); }
  .legal-toc details[open] summary .chev { transform: rotate(180deg); }
  .legal-toc details[open] summary { border-bottom: 1px solid var(--line); }
  .toc-label { display: none; }
  .toc-list { border-left: none; max-height: 52vh; padding: 8px 18px 14px; }
  /* on the soft card --muted drops to 4.33:1 — one step darker keeps it AA */
  .toc-list a { padding: 9px 0 9px 2px; border-left: none; color: var(--body); }
  .toc-list a.active { color: var(--brand-blue); }
  .legal-prose { font-size: 1.02rem; max-width: none; }
  .legal-prose .standfirst { font-size: 1.1rem; }
  .legal-prose h2 { margin-top: 3.2rem; }
}

/* ---- print: these pages get printed, so make it a real document ---- */
@media print {
  .header, .footer, .legal-toc, .legal-progress, .modal-overlay, .legal-meta .print { display: none !important; }
  .legal-page { padding: 0; }
  .legal-grid { display: block; }
  .legal-prose { max-width: none; font-size: 10.5pt; line-height: 1.55; color: #000; }
  .legal-prose h2 { break-after: avoid; margin-top: 22pt; }
  .legal-prose h2::before { position: static; display: block; margin-bottom: 4pt; }
  .legal-prose li, .legal-prose p { break-inside: avoid; }
  .legal-prose a { color: #000; text-decoration: none; }
  .legal-prose a[href^="http"]::after, .legal-prose a[href^="mailto"]::after {
    content: " (" attr(href) ")"; font-size: 9pt; color: #444; word-break: break-all; }
  .legal-end { display: none; }
}

/* ===== CHAT LAUNCHER (VCD-93 — custom Intercom launcher) =====
   z-index map: header 60 · anchorbar 40 · legal-progress 55 · modal 200.
   Launcher sits at 90 — above page chrome, below the demo modal; the Intercom
   messenger itself renders in its own top-level layer above everything. */
.chat-launcher { position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--brand-blue); color: #fff;
  display: grid; place-items: center; box-shadow: var(--sh-lg);
  transition: transform .12s, box-shadow .15s, background .15s; }
.chat-launcher:hover { background: var(--brand-blue-ink); transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(0,12,38,.16); }
.chat-launcher:active { transform: translateY(1px); }
.chat-launcher:focus-visible { outline: none;
  box-shadow: var(--sh-lg), 0 0 0 3px #fff, 0 0 0 6px var(--brand-blue); }
.chat-launcher svg { width: 24px; height: 24px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-launcher .ic-close { display: none; }
.chat-launcher.is-open .ic-chat { display: none; }
.chat-launcher.is-open .ic-close { display: block; }
@media (max-width: 720px) {
  .chat-launcher { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}
@media print { .chat-launcher { display: none !important; } }
