/*
 * SnapTwin — identité 2026 (kit graphique v2)
 * Points → lignes → données. Blanc, bleu #0064F9, charbon #22252A ; filets fins, nœuds pleins, angles nets.
 */
:root {
  /* One size for every page title (h1), the one of the home page; on a computer it also follows the screen height. */
  --title-size: clamp(2.2rem, 4.2vw, 3.9rem);
  --blue: #0064F9;
  --blue-deep: #0050C8;
  --blue-soft: #83B0FF;
  --blue-pale: #EAF2FF;
  --blue-mist: #F5F8FE;
  --ink: #22252A;
  --ink-2: #3A3F47;
  --muted: #646B76;
  --line: #E2E7EF;
  --line-strong: #CBD5E3;
  --line-blue: rgba(0, 100, 249, .22);
  --paper: #F3F4F6;
  --night: #121519;
  --soft: var(--blue-mist);
  --font-display: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 6px;
  --radius-sm: 4px;
  --max: 1200px;
  --shadow: 0 1px 2px rgba(18, 21, 25, .04), 0 12px 32px -12px rgba(0, 60, 150, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 16px/1.65 var(--font-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------------------------------------------------------------- Header */
.site-header { position: sticky; top: 0; z-index: 10; height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(1.25rem, 4vw, 3rem); background: rgba(243, 244, 246, .86); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(14px); }
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.brand .brand-logo { display: block; width: 150px; height: auto; }
.site-header .brand .brand-logo { width: 196px; }

/* Logo: colours follow the surface */
.brand-logo { --logo-ink: var(--ink); --logo-blue: var(--blue); overflow: visible; }
.brand-logo__word { fill: var(--logo-ink); }
.brand-logo__accent, .brand-logo__dot { fill: var(--logo-blue); }
.brand-logo__line, .brand-logo__key { stroke: var(--logo-blue); }
.brand-logo.is-animated .brand-logo__line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: logo-draw 1.6s .25s var(--ease) forwards; }
.brand-logo.is-animated .brand-logo__key { opacity: 0; animation: fade-in .4s 1.7s ease forwards; }
.brand-logo.is-animated .brand-logo__dot { transform-box: fill-box; transform-origin: center; animation: dot-pop .6s .05s var(--ease) both; }
@keyframes logo-draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes dot-pop { from { transform: scale(0); } 60% { transform: scale(1.35); } to { transform: scale(1); } }

.header-login { display: inline-flex; align-items: center; gap: .5rem; min-height: 38px; padding: 0 .95rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--ink); background: #fff; text-decoration: none; font: 500 .84rem var(--font-sans); cursor: pointer; transition: border-color .2s ease, color .2s ease; }
.header-login:hover { border-color: var(--blue); color: var(--blue); }
.header-login { white-space: nowrap; }
.header-login span { display: inline-block; transition: transform .2s ease; }
.header-login:hover span { transform: translate(2px, -2px); }
.header-cta { display: inline-flex; align-items: center; min-height: 38px; padding: 0 1rem; border: 1px solid var(--blue); border-radius: var(--radius-sm); background: var(--blue); color: #fff; text-decoration: none; font: 500 .74rem var(--font-mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.header-cta:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
@media (max-width: 600px) { .header-cta__more { display: none; } .header-cta { padding: 0 .75rem; } .site-nav .header-login { margin-left: 0; } }

/* ---------------------------------------------------------------- Type */
.section-shell { width: min(calc(100% - 3rem), var(--max)); margin: 0 auto; }
h1, h2, h3 { margin-top: 0; color: var(--ink); font-family: var(--font-display); font-weight: 300; letter-spacing: -.035em; line-height: 1.04; }
h1 { font-size: var(--title-size); margin-bottom: 1.6rem; }
@media (min-width: 901px) { :root { --title-size: min(clamp(2.2rem, 4.2vw, 3.9rem), 6.2svh); } }
h2 { font-size: clamp(2.2rem, 4.2vw, 3.9rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; font-weight: 400; letter-spacing: -.02em; line-height: 1.2; margin-bottom: .65rem; }
h1 strong, h2 em, h2 strong, h3 strong { color: var(--blue); font-style: normal; font-weight: 400; }
h3 strong { font-weight: 500; }
.lead { max-width: 37rem; margin: 0; color: var(--muted); font-size: 1.1rem; line-height: 1.6; }
.lead strong { color: var(--ink); font-weight: 500; }

/* Eyebrow: a node and a line, then a technical label */
.eyebrow { display: inline-flex; align-items: center; gap: .7rem; margin: 0 0 1.1rem; color: var(--blue); font: 500 .72rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; flex: none; width: 34px; height: 7px; background: radial-gradient(circle at 3.5px 50%, currentColor 3px, transparent 3.5px), linear-gradient(currentColor, currentColor) 9px 50% / 25px 1px no-repeat; }
.eyebrow strong { font-weight: 600; }
.centered-heading .eyebrow { justify-content: center; }

/* ---------------------------------------------------------------- Buttons: a point that becomes a line */
.button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 50px; padding: .8rem 1.35rem; border: 1px solid transparent; border-radius: var(--radius-sm); text-decoration: none; font: 500 .9rem/1 var(--font-sans); letter-spacing: -.005em; cursor: pointer; transition: background .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease; }
.button::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 3px; background: currentColor; transition: width .35s var(--ease); }
.button:hover::before { width: 20px; }
/* "New project": a plus in place of the point. */
.button-plus::before { content: "+"; width: auto; height: auto; border-radius: 0; background: none; font: 400 1.25rem/1 var(--font-sans); margin-top: -.12em; }
.button-plus:hover::before { width: auto; }
.button > span[aria-hidden], .button > span:first-child:not(:only-child) { display: none; }
.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover { background: var(--blue-deep); box-shadow: 0 10px 24px -10px rgba(0, 100, 249, .55); }
/* Switched off (e.g. the Reduce the size tool's download while the copy is sent): visibly so. */
.button:disabled, .button[aria-disabled="true"] { opacity: .45; cursor: not-allowed; box-shadow: none; pointer-events: none; }
.button-outline { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.button-outline:hover { border-color: var(--blue); color: var(--blue); }
.button-wide { width: 100%; }
.button-stack { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 2.4rem; }

.text-link { display: inline-flex; align-items: center; gap: .5rem; padding-bottom: .2rem; color: var(--blue); text-decoration: none; font-weight: 500; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .3s var(--ease); }
/* The display above would otherwise show links and buttons the page has hidden ("Try again" in the Reduce the size tool). */
.text-link[hidden], .button[hidden] { display: none; }
button.text-link { border: 0; background-color: transparent; cursor: pointer; font: inherit; }
.text-link span { display: inline-block; transition: transform .25s var(--ease); }
.text-link:hover span { transform: translateX(4px); }

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); min-height: min(760px, calc(100vh - 78px)); padding: clamp(3rem, 6vw, 5rem) 0 4rem; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0 calc((100vw - 100%) / -2); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; background-position: center top; opacity: .55; -webkit-mask-image: radial-gradient(ellipse 60% 70% at 70% 45%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 70% 45%, #000 20%, transparent 75%); pointer-events: none; }
.hero-copy { padding-block: 1rem; }
.hero h1 strong { display: inline-block; }
.hero-title__line { white-space: nowrap; }
/* "Scan-to-DATA" stays on one line: the title stops growing before it outgrows its column on wide screens. */
.hero h1 { font-size: var(--title-size); }
.hero-offer { max-width: 34rem; margin: 1.2rem 0 0; color: var(--ink-2); font-size: .95rem; line-height: 1.5; }
.hero-offer strong { color: var(--blue); font-weight: 600; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin: 3rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid var(--line); list-style: none; color: var(--muted); font: 400 .74rem/1.4 var(--font-mono); letter-spacing: .04em; }
.hero-meta li { display: inline-flex; align-items: center; gap: .55rem; }
.hero-meta li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }

.hero-visual { --blue: #0064F9; --blue-soft: #83B0FF; position: relative; width: 100%; aspect-ratio: 640 / 520; touch-action: pan-y; }
.hero-visual__canvas, .hero-visual__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-visual__svg { overflow: visible; pointer-events: none; }
.hero-visual__hidden line { stroke: var(--blue); stroke-width: 1; stroke-dasharray: 3 4; opacity: .3; }
.hero-visual__faces polygon { fill: #E6F0FE; stroke: none; }
.hero-visual__faces .is-side { fill: #E9F1FE; }
.hero-visual__faces .is-gable { fill: #E4EEFE; }
.hero-visual__faces .is-roof { fill: #C9DDFD; }
.hero-visual__faces .is-chimney { fill: #E4EEFE; stroke: var(--blue); stroke-width: 1.4; stroke-linejoin: round; }
.hero-visual__space polygon { fill: var(--blue); fill-opacity: .1; stroke: var(--blue); stroke-width: 1; stroke-dasharray: 4 3; }
.hero-visual__space line, .hero-visual__space polyline { fill: none; stroke: var(--blue); stroke-width: 1; stroke-dasharray: 4 3; }
.hero-visual__openings polygon { fill: none; stroke: var(--blue); stroke-width: 1.2; }
.hero-visual__openings .is-door { fill: var(--blue); fill-opacity: .35; }
.hero-visual__openings line { stroke: var(--blue); stroke-width: 1.2; opacity: .75; }
.hero-visual__edges line { stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; }
.hero-visual__nodes .is-hidden { opacity: 0; }
.hero-visual__nodes circle, .hero-visual__tags circle { fill: #fff; stroke: var(--blue); stroke-width: 2.4; }
.hero-visual__tags text { fill: var(--muted); stroke: #fff; stroke-width: 3; stroke-linejoin: round; paint-order: stroke; text-anchor: middle; font: 400 11px var(--font-mono); }
.hero-visual.is-live .hero-visual__svg { display: none; }
/* Points → Lines → Data: follows the animation */
.hero-visual__steps { position: absolute; left: 0; right: 0; bottom: -.4rem; display: flex; justify-content: center; gap: 2.4rem; margin: 0; padding: 0; list-style: none; color: var(--muted); font: 500 .66rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.hero-visual__steps li { position: relative; display: inline-flex; align-items: center; gap: .55rem; opacity: .55; transition: opacity .4s ease, color .4s ease; }
.hero-visual__steps li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; transition: background .4s ease, box-shadow .4s ease; }
.hero-visual__steps li + li::after { content: ""; position: absolute; right: calc(100% + .55rem); width: 1.3rem; height: 1px; background: currentColor; opacity: .5; }
.hero-visual__steps li.is-active, .hero-visual__steps li.is-done, .hero-visual:not(.is-live) .hero-visual__steps li { opacity: 1; color: var(--blue); }
.hero-visual__steps li.is-done::before, .hero-visual:not(.is-live) .hero-visual__steps li::before { background: #fff; box-shadow: inset 0 0 0 2px var(--blue); }

/* ---------------------------------------------------------------- Connector rule between blocks */
.section-rule { position: relative; height: 1px; background: var(--line); }
.section-rule::before { content: ""; position: absolute; left: 0; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }

/* ---------------------------------------------------------------- Deliverables */
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 5rem; padding: 7.5rem 0; }
.section-copy { align-self: end; color: var(--muted); font-size: 1.05rem; }
/* A section's heading laid out like the first section of the page: title on the left, text on the right. */
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 5rem; margin-bottom: 3.5rem; }
.section-head h2 { margin: 0; }
.section-head .section-copy p { margin: 0; }
.section-copy p { margin-top: 0; }
.section-copy strong { color: var(--ink); font-weight: 500; }
.deliverables-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 2rem; border-top: 1px solid var(--line-strong); }
.deliverable-card { position: relative; min-height: 290px; padding: 2rem 2rem 2.2rem; border-right: 1px solid var(--line); transition: background .3s ease; }
.deliverable-card:last-child { border-right: 0; }
.deliverable-card::before { content: ""; position: absolute; top: -4px; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.deliverable-card:first-child::before { left: 0; }
.deliverable-card:hover { background: var(--blue-mist); }
.card-number { color: var(--muted); font: 400 .74rem var(--font-mono); letter-spacing: .1em; }
.deliverable-icon { display: block; width: 76px; height: 76px; margin: 1.6rem 0 1.4rem; color: var(--blue); }
/* The deliverables drawn on the sample building of the engine illustrations; 3D IFC Spaces is the SPACE one itself. */
.deliverable-icon.deliverable-visual { width: 100%; height: 14rem; margin: -1rem 0 1.4rem; } /* level with the card number, centred */
.deliverable-art .engine-art__labels { font-size: 8.5px; letter-spacing: .02em; }
.deliverable-visual.engine-art-space .engine-art__labels { font-size: 14px; letter-spacing: 0; } /* shown smaller here: larger tags stay readable */
.deliverable-art .deliverable-art__room { fill: var(--ink); font: 400 7.5px var(--font-sans); letter-spacing: 0; }
.deliverable-art .deliverable-art__area { fill: var(--blue); font: 400 7.5px var(--font-mono); }
.deliverable-card h3 { margin: 0 0 .7rem; }
.deliverable-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Glyphs and engine art */
.glyph { display: block; overflow: visible; }
.glyph .glyph-points circle { transition: transform .6s var(--ease); }
.engine-art { display: block; width: 100%; height: auto; overflow: visible; }
.engine-art__fills { fill: var(--blue); }
.engine-art__cloud { fill: var(--blue); }
.engine-art__lines { fill: none; stroke: var(--blue); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.engine-art__dashed { fill: none; stroke: var(--blue-soft); stroke-width: 1.1; stroke-dasharray: 2 4; }
.engine-art__nodes { fill: var(--blue); }
.engine-art__chimney { color: var(--blue); stroke-width: 1.4; stroke-linejoin: round; } /* ANALYSIS and CONCEPT: above the roof */
.engine-art__labels { fill: var(--muted); font: 400 11px var(--font-mono); letter-spacing: .06em; }

/* ---------------------------------------------------------------- Bands */
/* Full-width sections alternating paper grey and blue tint. Each carries the kit's constellation
   (brand/motifs/SnapTwin-trame-points.svg) in its own shade: --mesh-color / --mesh-opacity, also read by point-mesh.js.
   The static version is a mask, so the same SVG can take any colour; .band--flip mirrors it to vary the pattern. */
.band { position: relative; --mesh-color: #6F86AD; --mesh-opacity: .3; }
.band--tint { background: var(--blue-mist); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); --mesh-color: var(--blue); --mesh-opacity: .45; }
.band--tint + .band--paper, .band--paper + .band--tint { border-top-color: var(--line); }
.band::before { content: ""; position: absolute; inset: 0; background: var(--mesh-color); -webkit-mask: url("../../brand/motifs/SnapTwin-trame-points.svg") center / cover no-repeat; mask: url("../../brand/motifs/SnapTwin-trame-points.svg") center / cover no-repeat; opacity: var(--mesh-opacity); pointer-events: none; }
.band--flip::before { transform: scaleX(-1); }
.band > * { position: relative; }
/* Interactive version of the same grid (public/assets/js/point-mesh.js) */
.has-point-mesh::before { display: none; }
.has-point-mesh > .point-mesh { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------------------------------------------------------------- Pricing */
.pricing-layout { display: grid; grid-template-columns: 1fr minmax(320px, .8fr); gap: clamp(3rem, 9vw, 9rem); align-items: center; padding: 7rem 0 3.5rem; }
.pricing-copy p { max-width: 33rem; color: var(--muted); }
.pricing-copy p strong { color: var(--ink); font-weight: 500; }
.calculator { position: relative; padding: 2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.calculator::before, .calculator::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.calculator::before { top: -4px; left: -4px; }
.calculator::after { right: -4px; bottom: -4px; }
.calculator-head, .calculator-total { display: flex; justify-content: space-between; align-items: baseline; }
.calculator-head span, .currency-label, .calculator-total > span { color: var(--muted); font: 400 .72rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.calculator-head output { color: var(--blue); font: 300 2.8rem/1 var(--font-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.calculator input[type="range"] { width: 100%; margin: 1.4rem 0 2rem; accent-color: var(--blue); }
.calculator-total { padding-top: 1.3rem; border-top: 1px solid var(--line); }
.calculator-total small { font-size: .64rem; }
.calculator-total strong { color: var(--ink); font: 300 2.3rem/1 var(--font-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.currency-label { display: grid; gap: .45rem; margin: 1.5rem 0; }
.currency-label select { padding: .7rem .8rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; color: var(--ink); font: 400 .92rem var(--font-sans); letter-spacing: 0; text-transform: none; }

.price-notes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-bottom: 6rem; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.price-notes article { padding: 1.6rem 1.5rem 1.8rem; border-right: 1px solid var(--line); }
.price-notes article:last-child { border-right: 0; }
.price-notes .note-label { color: var(--blue); font: 500 .7rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.price-notes h3 { margin: .5rem 0 1rem; font-size: 1.1rem; }
.note-body { display: grid; gap: 1rem; }
.note-image { display: block; width: 56px; height: 56px; color: var(--blue); }
.price-notes p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.55; }

/* ---------------------------------------------------------------- Engines */
.engines { padding: 7.5rem 0; }
.centered-heading { max-width: 50rem; margin: 0 auto 3.5rem; text-align: center; }
.centered-heading p:last-child:not(.eyebrow) { margin: 0 auto; max-width: 40rem; color: var(--muted); }
/* Product links (footer, old /products/{slug} pages) land on #engines: its heading near the top, the four cards in full below. */
#engines { scroll-margin-top: -7rem; }
@media (max-width: 900px) { #engines { scroll-margin-top: -2rem; } }
.engine-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; align-items: stretch; }
/* Each card spans four shared rows (top, summary, price, details + illustration), so titles, links and prices line up
   across the cards; opening a detail grows only the last row, where the other cards' content stays put. */
.engine-card { position: relative; display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; padding: 1.25rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: background .3s ease; }
.engine-visual .engine-art { max-width: 26rem; margin: auto; }
.engine-card:hover { background: var(--blue-mist); }
.engine-card:nth-child(2)::after { content: ""; position: absolute; inset: -1px; border: 1px solid var(--blue); border-radius: var(--radius); pointer-events: none; }
.engine-card__top { display: flex; justify-content: space-between; align-items: center; padding-bottom: .8rem; }
.engine-index { color: var(--muted); font: 400 .74rem var(--font-mono); letter-spacing: .1em; }
.engine-tag { display: inline-block; vertical-align: middle; padding: .18rem .5rem; border: 1px solid var(--blue); border-radius: 999px; font: 500 .66rem/1.3 var(--font-mono); letter-spacing: .1em; }
.engine-tag--live { background: var(--blue); color: #fff; }
.engine-tag--beta { background: transparent; color: var(--blue); }
/* Next to a product name: smaller, whatever the size of the text around it. */
product-tag { font-size: .6rem !important; white-space: nowrap; letter-spacing: .1em; text-transform: uppercase; }
.engine-card__top product-tag { font-size: .66rem !important; }
.site-footer .engine-tag { border-color: var(--blue-soft); }
.site-footer .engine-tag--live { background: var(--blue-soft); color: var(--ink); }
.site-footer .engine-tag--beta { color: var(--blue-soft); }
/* The wordmark always in the sans-serif (Inter): plain A and I, never the monospace I with bars, even in buttons,
   eyebrows and labels set in the monospace font. */
brand-name { font-family: var(--font-sans); font-variant-ligatures: none; }
brand-letter { color: var(--blue); }
.eyebrow brand-name, .text-link brand-name { color: var(--ink); }
.button-primary brand-letter { color: inherit; }
.site-footer brand-letter { color: var(--blue-soft); }
.engine-card h3 { margin-bottom: .6rem; font-size: 1.2rem; }
.engine-summary { display: flex; flex-direction: column; align-items: flex-start; }
.engine-summary p { margin: 0 0 .8rem; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.engine-summary .text-link { margin-top: auto; font-size: .85rem; }
.engine-price { display: block; margin: 1rem 0 .4rem; padding: .6rem 0; border-block: 1px solid var(--line); color: var(--ink); font: 500 .74rem var(--font-mono); letter-spacing: .08em; text-align: left; }
.accordion-set { display: grid; }
.accordion-set details { border-bottom: 1px solid var(--line); }
.accordion-set summary { display: flex; justify-content: space-between; align-items: center; min-height: 2.4rem; list-style: none; cursor: pointer; color: var(--ink); font: 400 .74rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.accordion-set summary::-webkit-details-marker { display: none; }
.accordion-set summary span { color: var(--blue); font-size: 1rem; transition: transform .25s var(--ease); }
.accordion-set details[open] summary span { transform: rotate(45deg); }
.accordion-set details p { margin: 0 0 .8rem; color: var(--muted); font-size: .8rem; }
.engine-card__more { align-self: start; }
.engine-visual { margin: 0; padding-top: 1.2rem; }

/* ---------------------------------------------------------------- Plans */
.plans-section { padding: 7rem 0; }
.plans-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.plan-card { position: relative; display: flex; flex-direction: column; padding: 1.6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .25s ease, transform .3s var(--ease); }
.plan-card:hover { border-color: var(--blue); transform: translateY(-3px); }
.plan-card:first-child { background: var(--blue); border-color: var(--blue); color: #fff; }
.plan-card:first-child::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: url("../../brand/motifs/SnapTwin-flux-points-clair.svg") 30% 40% / 260% auto no-repeat; opacity: .35; pointer-events: none; }
.plan-card:first-child > * { position: relative; }
.plan-name { margin: 0 0 1rem; color: var(--blue); font: 500 .72rem var(--font-mono); letter-spacing: .12em; }
.plan-card h3 { min-height: 3.3rem; font-size: 1.3rem; text-transform: lowercase; }
.plan-card h3::first-letter { text-transform: uppercase; }
.plan-card:first-child h3, .plan-card:first-child .plan-name, .plan-card:first-child .plan-action { color: #fff; }
.plan-action { display: flex; justify-content: space-between; align-items: center; padding: .8rem 0; border-block: 1px solid var(--line); color: var(--blue); text-decoration: none; font: 500 .74rem var(--font-mono); letter-spacing: .06em; }
.plan-action span { transition: transform .25s var(--ease); }
.plan-action:hover span { transform: translateX(4px); }
.plan-card:first-child .plan-action { border-color: rgba(255, 255, 255, .3); }
.plan-card ul { margin: 0; padding: 1rem 0 0; list-style: none; color: var(--muted); font-size: .86rem; }
.plan-card:first-child ul { color: rgba(255, 255, 255, .86); }
.plan-card li { position: relative; padding: .28rem 0 .28rem 1.3rem; }
.plan-card li::before { content: ""; position: absolute; left: 0; top: .9em; width: 10px; height: 1px; background: var(--blue); }
.plan-card li::after { content: ""; position: absolute; left: 8px; top: calc(.9em - 2px); width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.plan-card:first-child li::before, .plan-card:first-child li::after { background: #fff; }

/* ---------------------------------------------------------------- Upload / project form */
.upload-section { padding: 7.5rem 0; }
.upload-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; } /* room for the page-size title; a narrower form */
.upload-layout > div > p:last-child { color: var(--muted); }
.demo-form { position: relative; padding: 2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.demo-form::before { content: ""; position: absolute; top: -4px; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.4rem; }
.form-grid label { color: var(--muted); font: 400 .7rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; margin-top: .3rem; padding: .7rem 0; border: 0; border-bottom: 1px solid var(--line-strong); outline: none; background: transparent; color: var(--ink); font: 400 .98rem var(--font-sans); letter-spacing: normal; text-transform: none; transition: border-color .2s ease; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--blue); }
.form-grid textarea { min-height: 72px; resize: vertical; }
.form-grid .full { grid-column: 1 / -1; }
.demo-form .button { margin-top: 1.8rem; border: 0; }

/* ---------------------------------------------------------------- Recognition / video */
.recognition-section { padding: 7rem 0; }
.recognition-layout { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(2rem, 7vw, 7rem); }
.recognition-layout > div > p:last-child { color: var(--muted); }
.video-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--night); box-shadow: var(--shadow); }
.video-frame img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .3s ease, transform .6s var(--ease); }
.video-frame:hover img { opacity: .7; transform: scale(1.02); }
.video-frame button { position: absolute; inset: 50% auto auto 50%; display: grid; place-items: center; width: 4.5rem; height: 4.5rem; padding-left: .25rem; border: 1px solid rgba(255, 255, 255, .8); border-radius: 50%; background: var(--blue); color: #fff; font-size: 1rem; cursor: pointer; transform: translate(-50%, -50%); box-shadow: 0 0 0 10px rgba(0, 100, 249, .18); transition: box-shadow .3s ease; }
.video-frame button:hover { box-shadow: 0 0 0 16px rgba(0, 100, 249, .22); }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }

/* ---------------------------------------------------------------- Integration */
.integration-section { padding: 7.5rem 0; }
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.partner-grid article { padding: 1.6rem; border-right: 1px solid var(--line); transition: background .25s ease; }
.partner-grid article:hover { background: var(--blue-mist); }
.partner-grid article:last-child { border-right: 0; }
.partner-grid h3 { font-size: 1.12rem; }
.partner-grid p { min-height: 2rem; color: var(--muted); font: 400 .74rem var(--font-mono); letter-spacing: .04em; }
.partner-grid a { color: var(--blue); font-size: .84rem; font-weight: 500; text-decoration: none; }
.partner-grid a span { margin-left: .2rem; }

/* ---------------------------------------------------------------- Team */
.team-section { padding: 7rem 0; }
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.team-grid article { position: relative; padding: 1rem 1rem 1.3rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-align: left; transition: border-color .25s ease; }
.team-grid article:hover { border-color: var(--blue-soft); }
.team-photo { width: 100%; height: auto; aspect-ratio: 1; margin: 0 0 1rem; border-radius: var(--radius-sm); background-image: url("../images/team-portraits.png?v=20261102"); background-repeat: no-repeat; filter: grayscale(1) contrast(1.05); transition: filter .4s ease; }
.team-grid article:hover .team-photo { filter: grayscale(.2); }
/* Sprite of 5 × 2 portraits (100px tiles at 572 × 394): sizes and offsets as percentages so the photo can fill the card */
.team-photo { background-size: 572% 394%; }
.portrait-1, .portrait-6 { background-position-x: 3.18%; }
.portrait-2, .portrait-7 { background-position-x: 26.48%; }
.portrait-3, .portrait-8 { background-position-x: 49.58%; }
.portrait-4, .portrait-9 { background-position-x: 72.88%; }
.portrait-5, .portrait-10 { background-position-x: 96.19%; }
.portrait-1, .portrait-2, .portrait-3, .portrait-4, .portrait-5 { background-position-y: 2.38%; }
.portrait-6, .portrait-7, .portrait-8, .portrait-9, .portrait-10 { background-position-y: 70.41%; }
.team-grid h3 { margin-bottom: .3rem; font-size: 1rem; font-weight: 400; }
.team-grid p { min-height: 1.4rem; margin: 0; color: var(--muted); font: 400 .68rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.team-grid a { position: absolute; top: 1.5rem; right: 1.5rem; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: #fff; color: var(--blue); text-decoration: none; font: 600 .7rem var(--font-sans); box-shadow: 0 2px 8px rgba(18, 21, 25, .12); transition: background .2s ease, color .2s ease; }
.team-grid a:hover { background: var(--blue); color: #fff; }

/* ---------------------------------------------------------------- Offices */
.offices { padding: 7.5rem 0; }
.office-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.office-grid article { position: relative; padding: 2.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.office-grid article > span:first-child { color: var(--muted); font: 400 .74rem var(--font-mono); letter-spacing: .1em; }
.office-map { position: absolute; display: block; }
.office-map__dots { fill: var(--blue); }
.office-map__streets line { stroke: var(--blue-soft); stroke-width: .8; opacity: .55; }
.office-map__streets .is-main { stroke: var(--blue); stroke-width: 1.2; opacity: .5; }
.office-map__ring { fill: var(--blue); fill-opacity: .08; stroke: var(--blue); stroke-width: 1; stroke-dasharray: 3 3; }
.office-map__node { fill: var(--blue); }
.office-grid h3 { margin: 2rem 0 .6rem; }
.office-grid p { margin: 0; color: var(--muted); }
.office-grid .coords { margin-top: 1.4rem; color: var(--blue); font: 400 .72rem var(--font-mono); letter-spacing: .06em; }

/* ---------------------------------------------------------------- Footer */
.site-footer { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; overflow: hidden; padding: 4.5rem max(1.5rem, calc((100% - var(--max)) / 2)) 2.5rem; color: rgba(255, 255, 255, .62); background: var(--night); }
.site-footer::before { content: ""; position: absolute; inset: -20% -10% -10% 30%; background: url("../../brand/motifs/SnapTwin-flux-points-clair.svg") right center / contain no-repeat; opacity: .22; pointer-events: none; }
.site-footer > * { position: relative; }
.site-footer .brand-logo { --logo-ink: #fff; --logo-blue: #4D8FFF; width: 170px; }
.footer-brand p { max-width: 36rem; margin: 1.2rem 0 0; font-size: min(.9rem, 1.5vw); }
.footer-address { margin: 1.2rem 0 0; color: rgba(255, 255, 255, .6); font: 400 .74rem/1.6 var(--font-mono); font-style: normal; letter-spacing: .04em; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); align-content: start; gap: .55rem 3rem; }
.footer-links a { color: rgba(255, 255, 255, .82); font-size: .88rem; text-decoration: none; transition: color .2s ease; }
.footer-links a:hover { color: #fff; }
.footer-links a[hidden] { display: none; }
.copyright { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 1rem; margin: 1.5rem 0 0; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .12); font: 400 .72rem var(--font-mono); letter-spacing: .06em; }

.back-to-top { position: fixed; z-index: 4; right: 1.25rem; bottom: 1.25rem; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 1px solid var(--line-strong); border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--blue); text-decoration: none; box-shadow: var(--shadow); transition: border-color .2s ease; }
.back-to-top:hover { border-color: var(--blue); }

/* ---------------------------------------------------------------- Live chat (components/chat.blade.php) */
/* Bottom right: the site's own button until the visitor agrees, then HubSpot's in the same place. Back-to-top moves up. */
.has-chat .back-to-top { bottom: 5.75rem; }
.chat-launcher { position: fixed; z-index: 30; right: max(1.25rem, env(safe-area-inset-right, 0px)); bottom: max(1.25rem, env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: .55rem; min-height: 3.25rem; padding: 0 1.25rem 0 1.05rem; border: 0; border-radius: 1.625rem; background: var(--blue); color: #fff; font: 500 .95rem/1 var(--font-sans); box-shadow: 0 12px 28px -12px rgba(0, 100, 249, .6); cursor: pointer; transition: background .2s ease, transform .35s var(--ease); }
.chat-launcher:hover { background: var(--blue-deep); transform: translateY(-2px); }
.chat-launcher[hidden] { display: none; }
.chat-launcher:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 3px; }
.chat-launcher svg { flex: none; }
.chat-consent { position: fixed; z-index: 31; right: max(1.25rem, env(safe-area-inset-right, 0px)); bottom: calc(max(1.25rem, env(safe-area-inset-bottom, 0px)) + 4.25rem); width: min(23rem, calc(100vw - 2.5rem)); max-height: calc(100vh - 7rem); overflow-y: auto; padding: 1.5rem 1.5rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); box-shadow: var(--shadow), 0 24px 48px -24px rgba(18, 21, 25, .25); }
.chat-consent .eyebrow { margin-bottom: .8rem; }
.chat-consent h2 { margin: 0 0 .7rem; font: 400 1.35rem/1.2 var(--font-display); letter-spacing: -.02em; text-wrap: balance; }
.chat-consent p { margin: 0 0 1rem; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.chat-consent a { color: var(--blue); }
.chat-consent__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.chat-consent__actions .button { min-height: 44px; padding: .65rem 1.1rem; }
.chat-consent p.chat-consent__note { margin: 0; font-size: .78rem; }
.chat-consent__close { position: absolute; top: .6rem; right: .7rem; width: 2rem; height: 2rem; border: 0; background: none; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.chat-consent__close:hover { color: var(--ink); }
/* Phones: the button is a round icon; the question takes the width. */
@media (max-width: 640px) {
  .chat-launcher { width: 3.25rem; padding: 0; justify-content: center; }
  .chat-launcher__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .chat-consent { right: 1rem; width: calc(100vw - 2rem); }
  /* Two round buttons stacked would cover the home viewer's own buttons: phones keep the chat only. */
  .has-chat .back-to-top { display: none; }
}
@media (prefers-reduced-motion: reduce) { .chat-launcher { transition: none; } .chat-launcher:hover { transform: none; } }

/* ---------------------------------------------------------------- Reveal on scroll (app.js adds .is-visible) */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- Hero statement */
/* Two lines, each kept whole (.statement-line) from tablets up: sized to its column. */
.hero-statement { margin: -.4rem 0 1.4rem; color: var(--ink); font: 300 clamp(.95rem, 1.7vw, 1.375rem)/1.3 var(--font-display); letter-spacing: -.02em; }
@media (max-width: 900px) { .hero-statement { font-size: 1.15rem; } }
/* On phones each line may wrap, so the sentence keeps its size and stays larger than the paragraph below. */
@media (max-width: 640px) { .hero .statement-line { white-space: normal; } }
.hero-statement strong { color: var(--blue); font-weight: 500; }

/* ---------------------------------------------------------------- Viewer */
.viewer-section { padding: 7.5rem 0 6.5rem; }
.viewer-head { display: grid; grid-template-columns: 1fr minmax(0, 30rem); gap: 2rem 5rem; align-items: end; margin-bottom: 2.5rem; }
.viewer-head h2 { margin: 0; }
.viewer-head > p { margin: 0; color: var(--muted); }
.home-viewer { position: relative; overflow: hidden; height: clamp(420px, 62vh, 640px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.home-viewer canvas, .home-viewer__fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-viewer canvas { opacity: 0; transition: opacity .6s ease; touch-action: none; cursor: grab; }
.home-viewer canvas:active { cursor: grabbing; }
.home-viewer__fallback { object-fit: contain; padding: 3rem 2rem 5rem; transition: opacity .6s ease; }
.home-viewer.is-live canvas { opacity: 1; }
.home-viewer.is-live .home-viewer__fallback { opacity: 0; }
.home-viewer.is-dragging { outline: 2px dashed var(--blue); outline-offset: -10px; }
.home-viewer__status { position: absolute; z-index: 2; top: 50%; left: 50%; margin: 0; padding: .55rem .9rem; transform: translate(-50%, -50%); background: rgba(255, 255, 255, .92); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--muted); font: 400 .74rem var(--font-mono); letter-spacing: .04em; text-align: center; }
.home-viewer.is-fallback .home-viewer__status { top: auto; bottom: 4.6rem; transform: translateX(-50%); }
.home-viewer__info { position: absolute; z-index: 2; top: 1.1rem; left: 1.2rem; margin: 0; color: var(--muted); font: 400 .7rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.home-viewer__info::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: .55rem; border-radius: 50%; background: var(--blue); vertical-align: middle; }
.home-viewer__bar { position: absolute; z-index: 2; left: 1rem; right: 1rem; bottom: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.home-viewer__bar:empty { display: none; }
.home-viewer__views { display: inline-flex; padding: 3px; background: rgba(255, 255, 255, .94); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.home-viewer__btn { min-height: 34px; padding: 0 .85rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .94); color: var(--ink); cursor: pointer; font: 500 .7rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.home-viewer__views .home-viewer__btn { border-color: transparent; background: transparent; }
.home-viewer__btn:hover { color: var(--blue); border-color: var(--blue-soft); }
.home-viewer__views .home-viewer__btn.is-active { background: var(--blue-pale); color: var(--blue); }
.home-viewer__btn--open { margin-left: auto; border-color: var(--blue); background: #fff; color: var(--blue); }
.home-viewer__btn--open::before { content: "↑"; margin-right: .5rem; }
.home-viewer__btn--open:hover { background: var(--blue-pale); color: var(--blue); }
/* The side panel: everything about the model, sliding in and out; on a computer the 3D view sits beside it. */
.home-viewer { --side: 18.5rem; }
.home-viewer__side { position: absolute; z-index: 4; top: 0; bottom: 0; left: 0; width: var(--side); max-width: 86%; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--line); transform: translateX(-100%); transition: transform .28s ease, box-shadow .28s ease; }
.home-viewer.is-side-open .home-viewer__side { transform: none; box-shadow: 8px 0 24px -20px rgba(11, 79, 194, .5); }
.home-viewer__side-scroll { flex: 1; min-width: 0; min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-gutter: stable; display: flex; flex-direction: column; padding: 1rem 1rem 1.1rem; gap: 1.1rem; }
.home-viewer__side-part { display: grid; gap: .5rem; }
.home-viewer__side-part[hidden] { display: none; }
.home-viewer__side-label { display: flex; align-items: center; gap: .45rem; margin: 0; color: var(--muted); font: 500 .62rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.home-viewer__side-label b { min-width: 1.3rem; padding: .05rem .35rem; border-radius: 999px; background: var(--blue-pale); color: var(--blue); font-weight: 600; text-align: center; }
.home-viewer__side-teams { flex: none; padding: .8rem 1rem .9rem; border-top: 1px solid var(--line); background: #fff; }
.home-viewer__side .home-viewer__info { position: static; color: var(--ink); line-height: 1.7; text-transform: none; letter-spacing: .02em; white-space: pre-line; overflow-wrap: anywhere; }
.home-viewer__side .home-viewer__info::before { display: none; }
.home-viewer__files { display: grid; gap: .55rem; }
.home-viewer__file { display: grid; gap: .15rem; padding: .1rem 0 .1rem .65rem; border-left: 2px solid var(--blue); }
.home-viewer__file--ifc { border-left-color: var(--blue-soft, #9dbcf7); }
.home-viewer__file strong { color: var(--ink); font: 600 .8rem/1.35 var(--font-sans); overflow-wrap: anywhere; }
.home-viewer__file span { color: var(--muted); font: 400 .7rem/1.4 var(--font-mono); letter-spacing: .02em; }
.home-viewer__layers, .home-viewer__audiences { display: grid; gap: .4rem; }
.home-viewer__layers .home-viewer__layer, .home-viewer__audiences .home-viewer__audience { width: 100%; justify-content: flex-start; padding: 0 .7rem; letter-spacing: .05em; text-align: left; white-space: nowrap; }
.home-viewer__audiences .home-viewer__audience { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.home-viewer__layer span { margin-left: auto; }
.home-viewer__side-toggle { position: absolute; top: .9rem; left: 100%; width: 24px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: #fff; color: var(--blue); cursor: pointer; font: 500 1rem var(--font-sans); }
.home-viewer__side-toggle span { transition: transform .28s ease; }
.home-viewer:not(.is-side-open) .home-viewer__side-toggle span { transform: rotate(180deg); }
.home-viewer__side-toggle:hover { background: var(--blue-pale); }
@media (min-width: 701px) {
  .home-viewer.is-side-open canvas, .home-viewer.is-side-open .home-viewer__start { left: var(--side); width: calc(100% - var(--side)); }
}
.home-viewer__bottom { position: absolute; z-index: 3; right: 1rem; bottom: 1rem; display: flex; flex-direction: column; align-items: stretch; gap: .4rem; }
.home-viewer__bottom .home-viewer__bar { position: static; flex-direction: column; align-items: stretch; gap: .4rem; }
.home-viewer__bottom .home-viewer__btn--open { margin-left: 0; }
.home-viewer__bottom .home-viewer__btn--lighten { margin-left: 0; order: -1; }
.home-viewer__btn--dashboard { display: inline-flex; align-items: center; justify-content: center; order: 1; text-decoration: none; }
.home-viewer__btn--dashboard::after { content: "→"; margin-left: .5rem; color: var(--blue); }
/* The view buttons give way to the navigation cube, the full screen button to the one under it. */
.home-viewer__bottom .home-viewer__views, .home-viewer__bottom .home-viewer__bar > .home-viewer__btn:not([class*="--"]) { display: none; }
.home-viewer__rooms-list { margin: 0 -.45rem; padding: 0; list-style: none; }
.home-viewer__rooms-list button { width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; padding: .35rem .45rem; border: 0; border-radius: 4px; background: none; color: var(--ink); cursor: pointer; font: 400 .74rem var(--font-sans); text-align: left; }
.home-viewer__rooms-list button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-viewer__rooms-list small { flex: none; color: var(--muted); font: 400 .66rem var(--font-mono); }
.home-viewer__rooms-list button:hover { background: var(--blue-pale); }
.home-viewer__rooms-list button.is-active { background: var(--blue-pale); color: var(--blue); }
.home-viewer__room { padding: 0; }
.home-viewer__room-back { padding: 0; border: 0; background: none; color: var(--blue); cursor: pointer; font: 500 .7rem var(--font-sans); }
.home-viewer__room-title { margin: .35rem 0 .45rem; color: var(--blue); font: 600 .85rem var(--font-sans); }
.home-viewer__room dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .2rem .7rem; margin: 0; font-size: .72rem; }
.home-viewer__room dt { color: var(--muted); }
.home-viewer__room dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.home-viewer__nav { position: absolute; z-index: 3; top: .7rem; right: 1rem; display: flex; align-items: flex-start; gap: .3rem; }
.home-viewer__home, .home-viewer__fs { width: 26px; height: 26px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .94); color: var(--muted); cursor: pointer; }
.home-viewer__home svg, .home-viewer__fs svg { width: 14px; height: 14px; }
.home-viewer__home:hover, .home-viewer__fs:hover { border-color: var(--blue); color: var(--blue); }
.home-viewer__cube-stage { width: 96px; height: 96px; display: grid; place-items: center; }
.home-viewer__cube { position: relative; width: 0; height: 0; transform-style: preserve-3d; }
/* Smaller on the page, full size in full screen. */
.home-viewer:not(:fullscreen) .home-viewer__cube-stage { width: 68px; height: 68px; }
.home-viewer:not(:fullscreen) .home-viewer__cube { scale: .7; }
.home-viewer__cube-face { position: absolute; left: -34px; top: -34px; width: 68px; height: 68px; display: grid; grid-template-columns: 11px 1fr 11px; grid-template-rows: 11px 1fr 11px; border: 1px solid #b9c6dc; background: rgba(246, 249, 255, .96); backface-visibility: hidden; }
.home-viewer__cube-cell { min-width: 0; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; font: 600 .56rem var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.home-viewer__cube-cell:hover { background: var(--blue-soft, #cfe0ff); color: var(--blue); }
.home-viewer__cube-cell.is-face:hover { background: var(--blue-pale); }
.home-viewer__layer { display: inline-flex; align-items: center; gap: .45rem; min-height: 30px; padding: 0 .75rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; color: var(--muted); cursor: pointer; font: 500 .66rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; transition: color .2s ease, border-color .2s ease; }
.home-viewer__layer::before { content: ""; width: 8px; height: 8px; border: 1px solid currentColor; border-radius: 2px; }
.home-viewer__layer span { color: var(--muted); font-weight: 400; letter-spacing: .02em; text-transform: none; }
.home-viewer__layer.is-on { border-color: var(--blue); color: var(--ink); }
.home-viewer__layer.is-on::before { border-color: var(--blue); background: var(--blue); }
.home-viewer__layer.is-empty { border-style: dashed; }
/* The product name in blue, as everywhere else on the site (SNAPTWIN CLEAN, SNAPTWIN SPACE). */
.home-viewer__layer strong { color: var(--blue); }
.home-viewer__layer:hover, .home-viewer__layer:focus-visible { border-color: var(--blue); }
.home-viewer__audience { min-height: 30px; padding: 0 .75rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; color: var(--ink); cursor: pointer; font: 500 .66rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.home-viewer__audience:hover, .home-viewer__audience:focus-visible { border-color: var(--blue); color: var(--blue); }
.home-viewer__audience span { color: var(--blue); }
/* Phones: the side panel opens over the 3D view. */
@media (max-width: 700px) {
  .home-viewer__bottom { right: .8rem; bottom: .8rem; }
}
.home-viewer__corner { position: absolute; z-index: 2; top: -4px; right: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.home-viewer__hint { margin: .9rem 0 0; color: var(--muted); font: 400 .7rem var(--font-mono); letter-spacing: .04em; text-align: center; }
.home-viewer:fullscreen { border: 0; border-radius: 0; }

/* ---------------------------------------------------------------- Upload */
/* The title of the start section looks the same whichever heading level it is. */
h2.start-title { font-size: var(--title-size); margin-bottom: 1rem; } /* as h1 (the Upload page), the size of every page title */
.start-title em { color: var(--blue); font-style: normal; font-weight: 400; }
.upload-layout > div > p.upload-or { margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: .92rem; }

/* ---------------------------------------------------------------- Buy credits */
.buy-layout { display: grid; grid-template-columns: 1fr minmax(320px, .8fr); gap: clamp(3rem, 9vw, 9rem); align-items: center; padding: 7rem 0; } /* the side panel the width of the price table at the top */
.buy-side__note { margin: 1rem 0 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.buy-copy > p { max-width: 33rem; color: var(--muted); }
.buy-copy > p strong { color: var(--ink); font-weight: 500; }
.buy-matrix { max-width: 30rem; margin: 2.2rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.buy-matrix li { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.buy-matrix li > span:last-child { color: var(--blue); font: 400 .8rem var(--font-mono); letter-spacing: .04em; }
.buy-matrix strong { font-weight: 600; }
.buy-side .buy-matrix { max-width: none; margin: 0; }
.buy-matrix li { align-items: center; }
.buy-matrix li > span:first-child { display: grid; gap: .2rem; }
.buy-matrix li > span:last-child { white-space: nowrap; }
.buy-matrix small { color: var(--muted); font-size: .84rem; }
.buy-side .button { margin-top: 1.6rem; }
/* Home: the landing page, a promise and the viewer. */
.viewer-section--home .viewer-head h1 { margin: 0; }
.viewer-section--home .viewer-head h1 em { color: var(--blue); font-style: normal; font-weight: 400; }
/* One screen on a computer: header, promise, viewer and hint, then the "Recognised by" logos still in view. */
@media (min-width: 901px) {
  .viewer-section--home .viewer-head { grid-template-columns: auto minmax(0, 30rem); justify-content: space-between; align-items: center; }
  .viewer-section.viewer-section--home { padding: clamp(1.5rem, 4svh, 3.5rem) 0 clamp(1rem, 2svh, 1.5rem); }
  .viewer-section--home .viewer-head { margin-bottom: clamp(1.2rem, 3svh, 2.5rem); }
  /* At least 400px: the sign-up panel fits without scrolling (on very short screens the logos then go below the fold). */
  .viewer-section--home .home-viewer, .viewer-section--home .viewer-register { height: clamp(400px, calc(100svh - 78px - var(--marquee-h, 87px) - 16rem), 720px); max-height: none; }
  .viewer-section--home .home-viewer__hint { margin-top: .6rem; }
}
.viewer-intro { display: grid; gap: 1.2rem; }
.viewer-intro > p { margin: 0; color: var(--muted); }
.viewer-intro > p strong { color: var(--ink); font-weight: 500; }
.viewer-intro__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.6rem; }
.calculator-fields { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1rem; margin: 0 0 1.5rem; }
.calculator-fields .currency-label { margin: 0; }
.calculator-credits { display: flex; justify-content: space-between; align-items: baseline; padding: 1rem 0; border-top: 1px solid var(--line); color: var(--muted); font: 400 .72rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.calculator .button-wide { margin-top: 1.6rem; }
.calculator-credits output { color: var(--blue); font: 400 1.3rem var(--font-display); letter-spacing: -.02em; text-transform: none; }

/* ---------------------------------------------------------------- Rates */
.rate-table { position: relative; padding: 1.6rem 2rem 1.8rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.rate-table::before { content: ""; position: absolute; top: -4px; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.rate-table__head { display: flex; justify-content: space-between; margin: 0 0 .4rem; color: var(--muted); font: 400 .7rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.rate-table__row { display: flex; justify-content: space-between; align-items: baseline; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.rate-table__row span { color: var(--ink-2); }
.rate-table__row strong { color: var(--ink); font: 300 1.9rem/1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.rate-table .text-link { margin-top: 1.4rem; }

/* ---------------------------------------------------------------- Cost examples */
.cost-section { padding: 7rem 0; }
.cost-section .viewer-head > p .text-link { display: inline-flex; margin-top: .8rem; }
.estimates-currency { display: inline-flex; margin: 0 0 1.4rem; padding: 3px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.estimates-currency button { min-height: 34px; padding: 0 .9rem; border: 0; border-radius: 3px; background: transparent; color: var(--muted); cursor: pointer; font: 500 .72rem var(--font-mono); letter-spacing: .08em; transition: color .2s ease, background .2s ease; }
.estimates-currency button span { color: var(--blue-soft); }
.estimates-currency button:hover { color: var(--blue); }
.estimates-currency button[aria-pressed="true"] { background: var(--blue-pale); color: var(--blue); }
.estimates-currency button[aria-pressed="true"] span { color: var(--blue); }
.estimates-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.estimate-card { position: relative; display: flex; flex-direction: column; padding: 1.4rem 1.6rem 1.6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.estimate-card::before { content: ""; position: absolute; top: -4px; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.estimate-card h3 { margin: .6rem 0 .2rem; font: 400 1.35rem/1.2 var(--font-display); letter-spacing: -.02em; }
.estimate-rooms { margin: 0 0 1rem; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.estimate-rooms strong { display: block; color: var(--blue); font: 500 .72rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.estimate-list { margin: auto 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.estimate-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.estimate-list li > span { display: flex; flex-direction: column; font-size: .9rem; }
.estimate-list li > span strong { font-weight: 600; }
.estimate-list small { color: var(--muted); font: 400 .66rem var(--font-mono); letter-spacing: .06em; }
.estimate-list li > strong { color: var(--ink); font: 300 1.5rem/1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.typology-art { display: block; width: 100%; max-width: 12rem; height: auto; margin: 0 auto; }
.typology-art__ground { stroke: var(--line-strong); stroke-width: 1; }
.typology-art__wall { fill: #fff; }
.typology-art__side { fill: var(--blue-mist); }
.typology-art__top, .typology-art__roof { fill: var(--blue-pale); }
.typology-art__roof-back { fill: #D9E7FF; }
.typology-art polygon { stroke: none; }
.typology-art__hidden polyline { fill: none; stroke: var(--blue-soft); stroke-width: 1; stroke-dasharray: 2 4; opacity: .7; }
.typology-art__thin polyline { fill: none; stroke: var(--blue-soft); stroke-width: .9; stroke-linejoin: round; }
.typology-art__edges polyline { fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-linecap: round; }
.typology-art__nodes circle { fill: #fff; stroke: var(--blue); stroke-width: 1.6; }

/* ---------------------------------------------------------------- Start your project (home: upload + building types + specific projects) */
.start-copy > p { color: var(--muted); }
.start-copy > p.start-types__intro { margin: 2.6rem 0 .8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .92rem; }
.start-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: 0 0 1.2rem; padding: 0; list-style: none; }
.start-types li { display: flex; flex-direction: column; gap: .4rem; padding: .7rem .8rem .8rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.start-types .typology-art { width: 100%; max-width: 6.5rem; margin: 0 auto; }
.start-types span { color: var(--blue); font: 400 .66rem var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.start-types strong { display: block; margin-bottom: .1rem; color: var(--ink); font: 500 .86rem/1.3 var(--font-sans); letter-spacing: 0; text-transform: none; }
.demo-form__head { margin: 0 0 1.4rem; }
.demo-form__head h3 { margin: 0 0 .4rem; font: 400 1.45rem/1.2 var(--font-display); letter-spacing: -.02em; }
.demo-form__head p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }

/* ---------------------------------------------------------------- Pricing page */
.pricing-layout--page { padding-top: 6rem; }
.pricing-layout--page h1 { margin: 0 0 1.2rem; } /* the size of every page title (h1) */
.pricing-layout--page h1 em { color: var(--blue); font-style: normal; font-weight: 400; }

/* ---------------------------------------------------------------- Free lightening (home viewer overlay) */
/* Signed in: "Send us this scan" is the main action, blue, like "Register for 20 free credits" for visitors. */
.home-viewer__btn--lighten { margin-left: .5rem; border-color: var(--blue); color: #fff; background: var(--blue); }
.home-viewer__btn--lighten:hover { background: var(--blue-deep); color: #fff; border-color: var(--blue-deep); }
.home-viewer__btn--lighten::before { content: "↗"; margin-right: .45rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .brand-logo.is-animated .brand-logo__line, .brand-logo.is-animated .brand-logo__key, .brand-logo.is-animated .brand-logo__dot { animation: none; stroke-dashoffset: 0; opacity: 1; }
  .button::before { transition: none; }
}

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1100px) {
  .engine-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { max-width: 40rem; margin: 0 auto; }
  .deliverables-grid { grid-template-columns: 1fr; }
  .deliverable-card { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .deliverable-card::before { left: 0; }
  .plans-grid, .price-notes { grid-template-columns: repeat(2, 1fr); }
  .price-notes article:nth-child(2) { border-right: 0; }
  .price-notes article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid article:nth-child(2) { border-right: 0; }
  .partner-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .engine-list { grid-template-columns: 1fr; max-width: 36rem; margin: auto; }
  .recognition-layout { gap: 3rem; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .site-header { height: 64px; }
  .site-header .brand .brand-logo { width: 150px; }
  .section-shell { width: min(calc(100% - 2rem), var(--max)); }
  .section-head, .split-section, .pricing-layout, .upload-layout, .recognition-layout, .buy-layout, .viewer-head { grid-template-columns: 1fr; }
  .estimates-grid { grid-template-columns: 1fr; }
  .estimate-card .typology-art { max-width: 11rem; }
  .hero { padding: 2.5rem 0 3rem; gap: 1rem; }
  .button-stack { align-items: stretch; }
  .button-stack .button { width: 100%; }
  .button-stack .text-link { align-self: center; }
  .split-section { padding: 4.5rem 0; gap: 1.5rem; }
  .plans-grid, .price-notes, .office-grid { grid-template-columns: 1fr; }
  .price-notes article { border-right: 0; border-bottom: 1px solid var(--line); }
  .price-notes article:last-child { border-bottom: 0; }
  .pricing-layout, .plans-section, .team-section, .recognition-section, .upload-section, .integration-section, .engines, .offices, .viewer-section, .buy-layout, .cost-section { padding: 4.5rem 0; }
  .home-viewer { height: 420px; }
  .home-viewer__btn--open { margin-left: 0; }
  .calculator-fields { grid-template-columns: 1fr; }
  .price-notes { margin-bottom: 4.5rem; }
  .engine-card { padding: 1.5rem 1.3rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .partner-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
  .partner-grid article:last-child { border-bottom: 0; }
  .team-grid { gap: .6rem; }
  .team-grid article { padding: .7rem .7rem 1rem; }
  .team-grid a { top: 1.1rem; right: 1.1rem; }
  .team-grid h3 { font-size: .86rem; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: .55rem 1.5rem; }
  .copyright { flex-direction: column; }
}

.demo-form .alert { margin: 0; }
.demo-form .field-error { margin: .7rem 0 0; }
.demo-form .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- Page top
   The first "dot · line · text" label of every page sits at the same place: same distance below the header,
   same left edge (the site's column). Content is aligned to the top of the first section rather than centred,
   so the label does not move with the screen height. Specific enough to win over each page's own stylesheet. */
:root { --page-top: clamp(2rem, 6svh, 4.5rem); } /* follows the screen height: less space on short screens */
main > section:first-of-type:is(.hero, .product-hero, .auth-shell, .legal-hero, .blog-hero, .portal-shell),
main > section.band:first-of-type > .section-shell { padding-top: var(--page-top); align-items: start; }
main > section.hero:first-of-type > .hero-copy { padding-top: 0; }
main > section:first-of-type:is(.hero, .product-hero) > :not(:first-child) { align-self: center; }
main > section.auth-shell:first-of-type { width: min(calc(100% - 3rem), var(--max)); }
main > section.blog-hero:first-of-type { max-width: none; }
main > section.blog-hero:first-of-type > * { max-width: 46rem; }
main > section.portal-shell.narrow:first-of-type { max-width: none; }
main > section.portal-shell.narrow:first-of-type > * { max-width: 46rem; }
@media (max-width: 640px) {
  main > section.auth-shell:first-of-type { width: min(calc(100% - 2rem), var(--max)); }
  /* On phones the product's illustration comes after its title, as on the other pages. */
  main > section.product-hero:first-of-type .product-hero-art { order: 0; }
}

/* Footer: the mission sentence and the registered address take two lines each at most, at every width. */
@media (max-width: 900px) {
  .site-footer { grid-template-columns: 1fr; }
  .footer-brand p { font-size: .9rem; }
}
@media (max-width: 640px) {
  .footer-brand p { font-size: min(.9rem, calc((100vw - 2rem) * .0355)); }
  .footer-address { font-size: min(.74rem, 3vw); }
}

/* Every page keeps the space of the scrollbar, scrolling or not: with always-visible scrollbars, a short page
   (an empty blog) would otherwise be wider and its whole layout would shift sideways compared with the others. */
html { scrollbar-gutter: stable; }
@supports not (scrollbar-gutter: stable) { html { overflow-y: scroll; } }

/* The mission sentence (hero and footer): two lines, broken after the comma, each kept whole. */
.statement-line { display: block; white-space: nowrap; }

/* Hero paragraph: three lines, broken where the copy says, each kept whole from tablets up (wraps on phones). */
@media (min-width: 1024px) and (max-width: 1199px) { .hero-lead { font-size: min(1.1rem, 1.45vw); } }
@media (min-width: 901px) and (max-width: 1023px) { .hero .hero-lead .statement-line { white-space: normal; } }

/* ---------------------------------------------------------------- Viewer: free reduction for registered users
   A visitor who opens their own point cloud gets the registration panel to the right of the viewer; the viewer's own
   reduce button is for confirmed accounts only (the server refuses the others). */
.home-viewer[data-guest] .home-viewer__btn--lighten { display: none; }
.home-viewer-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; }
.home-viewer-layout.is-split { grid-template-columns: minmax(0, 1fr) minmax(300px, 25rem); }
.viewer-register { position: relative; max-height: clamp(420px, 62vh, 640px); overflow-y: auto; overscroll-behavior: contain; border-radius: var(--radius); }
.viewer-register .auth-form { padding: 1.6rem 1.4rem; }
.viewer-register__head .eyebrow, .auth-form .viewer-register__head p.eyebrow { margin-bottom: .8rem; color: var(--blue); font-size: .72rem; }
.viewer-register__head h3 { margin: 0 0 .5rem; font: 400 1.3rem/1.2 var(--font-display); letter-spacing: -.02em; text-wrap: balance; }
.viewer-register__head p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.viewer-register__close { position: absolute; z-index: 1; top: .7rem; right: .7rem; display: grid; place-items: center; width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: var(--soft); color: var(--muted); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.viewer-register__close:hover { color: var(--blue); }
.viewer-register [hidden] { display: none; }
.viewer-register__wait { display: grid; align-content: start; gap: .9rem; padding: 1.6rem 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.viewer-register__wait .eyebrow { margin: 0; color: var(--blue); font-size: .72rem; }
.viewer-register__wait h3 { margin: 0; font: 400 1.3rem/1.2 var(--font-display); letter-spacing: -.02em; }
.viewer-register__wait p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.viewer-register__wait strong { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.viewer-register__wait > .button { justify-self: start; }
.viewer-register__wait .text-link { justify-self: start; border: 0; background-color: transparent; cursor: pointer; font: inherit; font-size: .88rem; }
.viewer-register__waiting { display: flex; align-items: center; gap: .6rem; }
.viewer-register__waiting span { width: .55rem; height: .55rem; border-radius: 50%; background: var(--blue); animation: viewer-wait 1.4s ease-in-out infinite; }
@keyframes viewer-wait { 50% { opacity: .25; transform: scale(.7); } }
/* The sign-up panel fits its height without scrolling: short text, tight fields, the captcha on one line, the button
   and "Sign in" side by side. */
.viewer-register .auth-form { grid-template-columns: minmax(0, 1fr) auto; gap: .55rem .9rem; padding: 1.1rem 1.3rem 1.2rem; }
/* The card fills the panel, the same height as the viewer beside it, its rows spread from top to bottom. */
.viewer-section--home .viewer-register .auth-form, .viewer-section--home .viewer-register__wait { box-sizing: border-box; min-height: 100%; }
.viewer-section--home .viewer-register .auth-form { align-content: space-between; }
.viewer-register .auth-form > * { grid-column: 1 / -1; }
.viewer-register__head { padding-right: 1.8rem; }
.viewer-register__head h3 { margin-bottom: .35rem; font-size: 1.15rem; }
.viewer-register__head p { font-size: .8rem; line-height: 1.45; }
.viewer-register .auth-form label { font-size: .62rem; }
.viewer-register .auth-form input { margin-top: .1rem; padding: .4rem 0; font-size: .9rem; }
.viewer-register .password-toggle { bottom: .3rem; }
.viewer-register .captcha-field { grid-template-columns: auto minmax(0, 1fr) auto; gap: .2rem .7rem; align-items: end; }
.viewer-register .captcha-field img { grid-row: 1; grid-column: 1; width: 112px; height: auto; }
.viewer-register .captcha-field label { grid-row: 1; grid-column: 2; }
.viewer-register .captcha-refresh { grid-row: 1; grid-column: 3; align-self: center; font-size: 0; }
.viewer-register .captcha-refresh::first-letter { font-size: 1rem; }
.viewer-register .auth-form > .button { grid-column: 1; margin-top: .3rem; min-height: 40px; }
.viewer-register .auth-form > .button + p { grid-column: 2; align-self: center; margin-top: .3rem; font-size: .8rem; }
/* The one consent of the free reduction, under the button: small, and the Terms a link. */
.viewer-register .auth-form > .viewer-register__consent { margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.4; }
.viewer-register .auth-form:has(.viewer-register__consent) { row-gap: .45rem; padding-bottom: 1rem; }
.viewer-register__consent a { color: var(--blue); }
/* The 6-digit code from the email, typed in the panel. */
.viewer-register__code { display: grid; gap: .3rem; color: var(--blue); font: 500 .62rem/1 var(--font-mono, monospace); letter-spacing: .14em; text-transform: uppercase; }
.viewer-register__code input { width: 100%; box-sizing: border-box; padding: .5rem 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font: 500 1.9rem/1.1 var(--font-mono, monospace); letter-spacing: .45em; text-transform: none; outline: none; }
.viewer-register__code input:focus { border-bottom-color: var(--blue); }
.viewer-register__code input::placeholder { color: var(--line); }
.viewer-register__wait .field-error { margin: 0; }
.viewer-register__wait > .button { justify-self: start; min-height: 40px; }
/* "Register for 20 free credits" (visitors, bottom right, above "Open your project"): signing up without a scan. */
.home-viewer__reduce { min-height: 34px; padding: 0 .9rem; border: 1px solid var(--blue); border-radius: var(--radius-sm); background: var(--blue); color: #fff; cursor: pointer; font: 500 .7rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.home-viewer__reduce:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.home-viewer__reduce[hidden] { display: none; }
@media (max-width: 900px) {
  .home-viewer-layout.is-split { grid-template-columns: minmax(0, 1fr); }
  .viewer-register { max-height: none; }
}

/* Before the visitor opens a scan: the sample building with all its controls, and one central button over it. */
.home-viewer__start { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; padding: 2rem; text-align: center; pointer-events: none; }
.home-viewer__start::before { content: ""; position: absolute; left: 50%; top: 50%; z-index: -1; width: min(30rem, 96%); height: 15rem; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .92), rgba(255, 255, 255, 0)); }
.home-viewer__start [hidden] { display: none; }
.home-viewer__start .button { pointer-events: auto; box-shadow: 0 10px 28px -10px rgba(0, 100, 249, .6); }
.home-viewer__start p { margin: 0; color: var(--ink-2); font: 400 .72rem var(--font-mono); letter-spacing: .04em; }
.home-viewer__start .home-viewer__start-note { max-width: 24rem; padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .97); box-shadow: 0 12px 30px -18px rgba(11, 79, 194, .5); font: 400 .9rem/1.5 var(--font-sans); letter-spacing: 0; } /* a card, readable over the 3D view */
/* The middle of the viewer stays clear: only a note (wrong format, no WebGPU, phone, email confirmed) shows there. */
.home-viewer__start:not(:has(.home-viewer__start-note:not([hidden]))) { display: none; }
.home-viewer__start .home-viewer__explore { pointer-events: auto; padding: .4rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--blue); cursor: pointer; font: 500 .85rem var(--font-sans); }
.home-viewer__start .home-viewer__explore:hover { text-decoration: underline; text-underline-offset: 3px; }
.home-viewer__start .home-viewer__start-note--ok { color: var(--blue); font-weight: 500; }
@media (max-width: 700px) and (pointer: coarse) { .home-viewer .home-viewer__btn--open { display: none; } }

/* Viewer head: one button per audience (details in a pop-up) and the "no scan yet" line, always visible. */
.viewer-audiences { display: grid; gap: .9rem; }
.viewer-audiences__lead { margin: 0; color: var(--muted); }
.viewer-audiences__buttons { display: flex; flex-wrap: wrap; gap: .7rem; }
.viewer-audiences__buttons .button { min-height: 44px; padding: .6rem 1.1rem; }
.viewer-audiences__note { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.viewer-audiences__note strong { color: var(--ink); }
dialog.audience-dialog { position: fixed; width: min(calc(100% - 2rem), 32rem); max-height: 90vh; border: 0; color: var(--ink); }
.audience-dialog::backdrop { background: rgba(18, 21, 25, .5); backdrop-filter: blur(3px); }
.audience-dialog form { margin: 0; }
.audience-dialog .contact-modal-close { border: 0; cursor: pointer; }
.audience-dialog .eyebrow { margin: 0 0 .9rem; }
.audience-dialog h2 { margin: 0 0 .8rem; font: 400 1.6rem/1.2 var(--font-display); letter-spacing: -.02em; text-wrap: balance; }
.audience-dialog h2 strong { color: var(--blue); font-weight: inherit; }
.audience-dialog p:not(.eyebrow) { margin: 0; color: var(--muted); }
.audience-dialog__links { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: 1.4rem; }
.home-viewer.is-dragging .home-viewer__start::before { background: radial-gradient(closest-side, var(--blue-pale), rgba(255, 255, 255, 0)); }

/* A heading broken where the copy says: one line per part, each kept whole. */
.title-line { display: block; white-space: nowrap; }

/* ---------------------------------------------------------------- Home: hero and "Recognised by" in the first screen
   On computers, the hero shrinks with the screen height so the logo band stays visible at the bottom of the first
   screen (and sits right at the bottom on tall screens). Phones keep the normal flow. */
@media (min-width: 901px) {
  .hero { min-height: calc(100svh - 78px - var(--marquee-h, 87px)); padding-bottom: clamp(1.25rem, 3.5svh, 3.5rem); }
  .hero .eyebrow { margin-bottom: min(1.1rem, 1.6svh); }
  .hero h1 { margin-bottom: min(1.6rem, 2svh); }
  .hero-statement { font-size: min(clamp(.95rem, 1.7vw, 1.375rem), 2.7svh); margin-bottom: min(1.4rem, 2svh); }
  .hero-lead { font-size: min(1.1rem, 2.05svh); line-height: 1.5; }
  .hero .button-stack { margin-top: min(2.4rem, 3.2svh); }
  .hero-offer { max-width: 36rem; margin-top: min(1.2rem, 1.6svh); font-size: min(.95rem, 1.75svh); }
  .hero-meta { margin-top: min(3rem, 3.2svh); padding-top: min(1.1rem, 1.5svh); }
  .hero-visual { width: min(100%, calc((100svh - 78px - var(--marquee-h, 87px) - var(--page-top) - clamp(1.25rem, 3.5svh, 3.5rem)) * 640 / 520)); justify-self: center; }
}
@media (min-width: 1024px) and (max-width: 1199px) { .hero-lead { font-size: min(1.1rem, 1.45vw, 2.05svh); } }
@media (min-width: 901px) and (max-height: 860px) { .hero-meta { display: none; } }

@media (min-width: 901px) and (max-height: 700px) { .hero .button-stack .button { min-height: 44px; } }

/* "There is more below" (Solutions, Pricing): bottom centre of the first screen, gone once the visitor scrolls. */
.scroll-cue { position: fixed; z-index: 20; left: 50%; bottom: max(1.2rem, env(safe-area-inset-bottom, 0px)); display: inline-flex; flex-direction: column; align-items: center; gap: .15rem; padding: .45rem .9rem .35rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; box-shadow: 0 10px 28px -12px rgba(11, 79, 194, .55); color: var(--blue); text-decoration: none; font: 500 .66rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; transform: translateX(-50%); transition: opacity .3s ease, transform .3s ease; }
.scroll-cue svg { width: 16px; height: 16px; animation: scroll-cue 1.6s ease-in-out infinite; }
.scroll-cue:hover { border-color: var(--blue); }
.scroll-cue.is-gone { opacity: 0; pointer-events: none; transform: translate(-50%, .6rem); }
@keyframes scroll-cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue svg { animation: none; } }

/* Phones and small tablets: a menu button in the top bar and a dropdown with every link (app-layout.blade.php). */
.nav-toggle { display: none; }
.mobile-menu[hidden] { display: none; }
@media (max-width: 900px) {
  .site-nav .header-login, .site-nav form { display: none; }
  .nav-toggle { display: grid; align-content: center; justify-items: center; gap: 4px; width: 42px; height: 38px; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; cursor: pointer; }
  .nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
  .mobile-menu { position: absolute; top: 100%; left: 0; right: 0; display: grid; padding: .4rem clamp(1.25rem, 4vw, 3rem) 1rem; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -24px rgba(11, 79, 194, .45); }
  .mobile-menu > a, .mobile-menu button { display: block; width: 100%; padding: .85rem 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); text-align: left; text-decoration: none; font: 400 1rem var(--font-sans); cursor: pointer; }
  .mobile-menu form { margin: 0; }
  .mobile-menu > a:hover, .mobile-menu button:hover { color: var(--blue); }
  .mobile-menu .mobile-menu__cta { margin-top: .9rem; padding: .85rem 1rem; border: 0; border-radius: var(--radius-sm); background: var(--blue); color: #fff; text-align: center; font: 500 .8rem var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
  .mobile-menu .mobile-menu__cta:hover { color: #fff; background: var(--blue-deep); }
}

/* Solutions on phones and small tablets: the animated diagram right after the statement, the blue button just below it,
   then the rest of the hero (the copy's children join the hero's own column). */
@media (max-width: 900px) {
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-top: 3rem; } /* the eyebrow at the height of every other page's */
  .hero > .hero-copy { display: contents; }
  .hero .eyebrow { order: 1; align-self: flex-start; margin-top: .46rem; } /* the space a line of text adds above it on other pages */
  .hero h1 { order: 2; }
  .hero .hero-statement { order: 3; }
  /* Sized so the blue button stays on the first screen, clear of the "See what you get" cue. */
  .hero > .hero-visual { order: 4; width: 100%; max-width: 28rem; margin: .25rem auto .6rem; }
  @media (max-width: 600px) { .hero > .hero-visual { max-width: 290px; } }
  .hero .button-stack { order: 5; }
  .hero .hero-lead { order: 6; margin-top: 1.4rem; }
  .hero .hero-meta { order: 7; }
}

/* Line breaks for phones only (Solutions statement). */
.br-phone { display: none; }
@media (max-width: 600px) {
  .br-phone { display: inline; }
  .hero .hero-statement .statement-line { display: block; white-space: nowrap; }
  .hero .hero-statement { font-size: min(1.25rem, 5.1vw); }
}

