/* Fortescope · Scope. Goes after the core's base.css: it sets the brand tokens (light, and dark when the visitor
   chooses it or, without JavaScript, by the system preference) and styles the theme's own pieces (fs-*).
   Brand rules: block = module T, gap 0.045 T, corner radius 0.09 T; rows left-aligned, the longest on top, in the
   order blue, red, gray; blocks are never rotated or stretched. Quicksand 500, 600 and 700 (never 400 on screen). */
@font-face { font-family: "Quicksand"; src: url("../fonts/quicksand-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Quicksand"; src: url("../fonts/quicksand-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Fallback with the metrics of Quicksand, so the title does not jump when the font arrives (CLS) */
@font-face { font-family: "Quicksand Fallback"; src: local("Arial"); size-adjust: 103%; ascent-override: 97%; descent-override: 24%; line-gap-override: 0%; }

:root {
  --fs-blue: #1E91E1; --fs-red: #EE4041; --fs-gray: #B5C2B8; --fs-cta: #1A5CB8; --fs-ink: #0F1117;
  --fs-ghost: #E9EDF2; --fs-cell: #EEF1F5; --fs-card: #FFFFFF; --fs-beam: #1E91E1;
  --wl-bg: #FFFFFF; --wl-surface: #F5F6F8; --wl-text: #0F1117; --wl-muted: #566379; --wl-line: #E2E8F0;
  --wl-accent: #1A5CB8; --wl-accent-fg: #FFFFFF; --wl-contrast-bg: #1A5CB8; --wl-contrast-text: #FFFFFF;
  --wl-radius: 16px; --wl-max: 1180px; --wl-narrow: 760px;
  --wl-font: "Quicksand", "Quicksand Fallback", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-mode="light"]) { --fs-ghost: #1F2536; --fs-cell: #161B28; --fs-card: #1A1F2E; --fs-beam: #5FB4F0;
    --wl-bg: #0F1117; --wl-surface: #131722; --wl-text: #FFFFFF; --wl-muted: #B4C0D2; --wl-line: #262D40;
    --wl-accent: #5FB4F0; --wl-accent-fg: #0F1117; --wl-contrast-bg: #1A5CB8; --wl-contrast-text: #FFFFFF; color-scheme: dark; }
}
:root[data-mode="dark"] { --fs-ghost: #1F2536; --fs-cell: #161B28; --fs-card: #1A1F2E; --fs-beam: #5FB4F0;
  --wl-bg: #0F1117; --wl-surface: #131722; --wl-text: #FFFFFF; --wl-muted: #B4C0D2; --wl-line: #262D40;
  --wl-accent: #5FB4F0; --wl-accent-fg: #0F1117; --wl-contrast-bg: #1A5CB8; --wl-contrast-text: #FFFFFF; color-scheme: dark; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.fs { font: 500 17px/1.6 var(--wl-font); -webkit-font-smoothing: antialiased; }
.fs h1, .fs h2, .fs h3, .fs .wl-h1 { font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.fs h2 { font-size: clamp(1.75rem, 3.6vw, 3rem); }
.fs b, .fs strong { font-weight: 700; }
.fs .wl-lead { font-size: clamp(1.06rem, 1.5vw, 1.25rem); font-weight: 500; }
.fs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.fs-eyebrow, .fs .wl-eyebrow { font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--wl-accent); margin: 0 0 .6em; }
.fs .wl-eyebrow a { color: inherit; }
.fs-head { max-width: 760px; margin-bottom: clamp(26px, 3vw, 46px); }
.fs-head h2 { margin: 0 0 .3em; }
.fs-c-blue { --c: var(--fs-blue); } .fs-c-red { --c: var(--fs-red); } .fs-c-gray { --c: var(--fs-gray); }

/* Buttons: FS Blue, corners instead of pills */
.fs .wl-button { border-radius: 10px; min-height: 48px; padding: 10px 22px; background: var(--fs-cta); color: #fff; border-color: var(--fs-cta); font-weight: 700; transition: transform .15s, background .15s; }
.fs .wl-button:hover { filter: none; background: #164F9F; border-color: #164F9F; transform: translateY(-1px); }
.fs .wl-button-ghost { background: transparent; color: var(--wl-text); border-color: var(--wl-line); }
.fs .wl-button-ghost:hover { background: transparent; border-color: var(--wl-accent); }

/* Header */
.fs-top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--wl-bg) 90%, transparent); backdrop-filter: blur(10px); }
.fs-brand { display: flex; align-items: center; }
.fs-brand img { height: 40px; width: auto; }
.fs .wl-nav a { font-size: .9375rem; display: inline-flex; align-items: center; min-height: 32px; }
.fs .wl-nav .fs-ext { padding-left: 20px; border-left: 1px solid var(--wl-line); }
.fs .wl-langs a { min-width: 28px; justify-content: center; }
.fs .wl-nav .fs-ext a { color: var(--wl-muted); }
.fs .wl-nav .fs-ext a:hover { color: var(--wl-accent); }
.fs-modes { display: inline-flex; border: 1px solid var(--wl-line); border-radius: 10px; padding: 2px; gap: 2px; }
.fs-modes button { background: none; border: 0; border-radius: 8px; padding: 4px 10px; min-height: 32px; font: 600 .8125rem/1 var(--wl-font); color: var(--wl-muted); cursor: pointer; }
.fs-modes button[aria-pressed="true"] { background: var(--wl-text); color: var(--wl-bg); }
@media (max-width: 800px) { .fs .wl-nav .fs-ext { padding-left: 0; border-left: 0; } }

/* Blocks: vertical rhythm and backgrounds */
.fs .wl-block { padding: clamp(52px, 7vw, 104px) 0; }
.fs .wl-block.wl-core-hero { padding: 0; }
.fs .wl-bg-muted { background: var(--wl-surface); }
.fs .wl-bg-contrast { background: var(--wl-contrast-bg); color: var(--wl-contrast-text); --wl-text: #fff; --wl-muted: #DCE8F8; --wl-line: rgba(255, 255, 255, .45); --wl-accent: #fff; }
.fs .wl-bg-contrast .wl-button { background: #fff; color: var(--fs-cta); border-color: #fff; }
.fs .wl-bg-contrast .wl-button-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.fs .wl-bg-contrast :focus-visible { outline-color: #fff; }

/* Hero with the scanned field */
.fs-hero { position: relative; overflow: hidden; }
.fs-hero-scan { min-height: min(calc(100vh - 68px), 800px); display: flex; align-items: center; padding: 72px 0; }
.fs-hero:not(.fs-hero-scan) { padding: clamp(52px, 8vw, 112px) 0; }
.fs-field { position: absolute; inset: 0; }
.fs-field canvas { display: block; width: 100%; height: 100%; }
.fs-hero-scan::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--wl-bg) 0, var(--wl-bg) 26%, transparent 62%); pointer-events: none; }
.fs-hero-in { position: relative; z-index: 2; }
.fs-hero-txt { max-width: 640px; }
.fs-hero h1, .fs-hero .wl-h1 { font-size: clamp(2.4rem, 5.4vw, 4.5rem); margin: 0 0 .3em; }
.fs-hero h1 span, .fs-hero .wl-h1 span { display: block; }
.fs-hero .wl-lead { max-width: 520px; }
.fs-legend { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .875rem; font-weight: 600; color: var(--wl-muted); }
.fs-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 2px; margin-right: 8px; background: var(--c); }
@media (max-width: 860px) {
  .fs-hero-scan { flex-direction: column; align-items: stretch; min-height: 0; padding: 44px 0 0; }
  .fs-hero-scan::after { display: none; }
  .fs-field { position: relative; inset: auto; order: 2; width: 100%; height: 300px; margin-top: 40px; }
}

/* MOSAIC */
.fs-mosaic { --cols: 7; --g: calc(100cqw / var(--cols) * .045); --r: calc(100cqw / var(--cols) * .09); container-type: inline-size; display: grid; gap: var(--g); }
.fs-mrow { display: flex; gap: var(--g); align-items: center; }
.fs-mrow > * { flex: none; }
.fs-blk { display: block; width: calc((100cqw - (var(--cols) - 1) * var(--g)) / var(--cols)); aspect-ratio: 1; border-radius: var(--r); background: var(--c); transition: background .35s; }
.fs-pc { position: relative; display: flex; gap: var(--g); text-decoration: none; border-radius: var(--r); }
/* A piece of several blocks is joined inside and keeps the notch of the corners, as in the brand's reference */
.fs-pc::before { content: ""; position: absolute; inset: var(--r); background: var(--c); transition: background .35s; }
.fs-pc b { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 0 6px; color: #fff; font: 700 clamp(19px, 2.7cqw, 24px)/1.05 var(--wl-font); letter-spacing: -.01em; transition: color .35s; }
.fs-c-gray .fs-pc b { color: var(--fs-ink); }
a.fs-pc { transition: transform .2s; }
a.fs-pc:hover { transform: translateY(-3px); }
.fs-lab { margin-left: 18px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--wl-muted); white-space: nowrap; }
.fs-mosaic-index { --cols: 9; max-width: 860px; }
.fs-mosaic-scan .fs-blk, .fs-mosaic-scan .fs-pc::before { background: var(--fs-ghost); }
.fs-mosaic-scan .fs-pc b { color: var(--wl-muted); }
.fs-mosaic-scan .fs-pc.is-on .fs-blk, .fs-mosaic-scan .fs-pc.is-on::before { background: var(--c); }
.fs-mosaic-scan .fs-pc.is-on b { color: #fff; }
.fs-mosaic-scan .fs-c-gray .fs-pc.is-on b { color: var(--fs-ink); }
@media (max-width: 700px) {
  .fs-mosaic, .fs-mosaic-index { --cols: 4; }
  .fs-mrow { flex-wrap: wrap; }
  .fs-mrow .fs-x, .fs-lab { display: none; }
  .fs-pc b { font-size: clamp(19px, 5.4cqw, 24px); }
}

/* Services as rows */
.fs-rows { border-top: 1px solid var(--wl-line); margin-top: clamp(32px, 4vw, 56px); }
.fs-row { display: grid; grid-template-columns: 44px minmax(190px, .9fr) 1.7fr auto; gap: clamp(14px, 2.4vw, 36px); align-items: center; padding: 26px 0; border-bottom: 1px solid var(--wl-line); }
.fs-sq { width: 36px; height: 36px; border-radius: 3px; background: var(--c); }
.fs-row h3 { font-size: clamp(1.5rem, 2.8vw, 2.25rem); margin: 0; }
.fs-row h3 a { color: var(--wl-text); text-decoration: none; }
.fs-row h3 a:hover { color: var(--wl-accent); }
.fs-row h3 small { display: block; font-size: .875rem; font-weight: 600; letter-spacing: 0; color: var(--wl-muted); margin-top: 6px; }
.fs-row p { margin: 0; color: var(--wl-muted); font-size: 1.06rem; }
.fs-more { font-weight: 700; white-space: nowrap; }
@media (max-width: 860px) { .fs-row { grid-template-columns: 36px 1fr; row-gap: 8px; } .fs-row p, .fs-more { grid-column: 2; } }

/* Scan */
.fs-scan { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.fs-needs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--wl-line); }
.fs-needs li { border-bottom: 1px solid var(--wl-line); }
.fs-needs label { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 16px 4px; cursor: pointer; font-size: clamp(1.06rem, 1.6vw, 1.25rem); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.fs-needs input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fs-box { width: 34px; height: 34px; border-radius: 3px; background: var(--fs-ghost); border: 2px solid var(--wl-line); transition: background .2s, border-color .2s; }
.fs-needs label:hover .fs-box { border-color: var(--wl-accent); }
.fs-needs input:checked + .fs-box { background: var(--fs-blue); border-color: var(--fs-blue); }
.fs-needs input:focus-visible + .fs-box { outline: 3px solid var(--wl-accent); outline-offset: 3px; }
.fs-result { position: sticky; top: 92px; background: var(--fs-card); border: 1px solid var(--wl-line); border-radius: 18px; padding: clamp(20px, 2.6vw, 32px); }
.fs-result .fs-mosaic { margin: 16px 0 24px; }
.fs-result h3 { font-size: clamp(1.375rem, 2.3vw, 1.75rem); margin: 0; }
.fs-none { color: var(--wl-muted); margin: 10px 0 0; }
.fs-recs { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.fs-recs li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline; padding-top: 10px; border-top: 1px solid var(--wl-line); }
.fs-recs li span { grid-column: 1; grid-row: 2; color: var(--wl-muted); font-size: .9375rem; }
.fs-recs li a { grid-column: 2; grid-row: 1; font-weight: 700; white-space: nowrap; font-size: .9375rem; }
.fs-js .fs-recs li:not(.is-on) { display: none; }
@media (max-width: 860px) { .fs-scan { grid-template-columns: 1fr; } .fs-result { position: static; } }

/* Steps */
.fs-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--wl-line); }
.fs-steps li { display: grid; grid-template-columns: clamp(56px, 9vw, 130px) 1fr; gap: 16px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--wl-line); }
.fs-n { font-size: clamp(2.5rem, 5.4vw, 4.5rem); font-weight: 700; line-height: 1; letter-spacing: -.03em; color: var(--fs-blue); }
.fs-steps h3 { font-size: clamp(1.3rem, 2.4vw, 1.875rem); margin: 0; }
.fs-steps p { color: var(--wl-muted); margin: 6px 0 0; }

/* Group */
.fs-two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.fs-two .wl-lead p { margin: 0 0 .8em; }
.fs-sis { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--wl-line); }
.fs-sis li { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--wl-line); }
.fs-sis span { color: var(--wl-muted); }
.fs-sis a, .fs-sis b { font-weight: 700; white-space: nowrap; }
@media (max-width: 860px) { .fs-two { grid-template-columns: 1fr; } }

/* Closing call to action */
.fs-cta h2 { font-size: clamp(2.1rem, 5vw, 4.25rem); max-width: 760px; margin: 0; }
.fs-cta .wl-lead { margin: 16px 0 0; max-width: 520px; }
.fs-cta .wl-actions { margin-top: 28px; }

/* Cards of the core (posts, services) */
.fs .wl-card { border-radius: 16px; border: 1px solid var(--wl-line); background: var(--fs-card); transition: border-color .15s; }
.fs .wl-card:hover { border-color: var(--wl-accent); }
.fs .wl-card h3 { font-size: 1.3rem; line-height: 1.25; }
.fs .wl-card h3 a { color: var(--wl-text); text-decoration: none; }
.fs .wl-page-head h1 { font-size: clamp(2.2rem, 5vw, 4rem); }

/* A page that opens with a plain hero and goes on with a form (Contact): the form follows the title closely and lines
   up with it on the left */
.fs .wl-core-hero:has(+ .wl-core-form) .fs-hero:not(.fs-hero-scan) { padding-bottom: 8px; }
.fs .wl-core-hero + .wl-core-form { padding-top: 0; }
.fs .wl-core-hero + .wl-core-form .wl-narrow { width: min(100% - 32px, var(--wl-max)); }
.fs .wl-core-hero + .wl-core-form form { max-width: 640px; }

/* A service page: the need first, then the name */
.fs-need { font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 600; line-height: 1.3; color: var(--wl-muted); margin: 0 0 .5em; }
.fs-service .wl-page-head h1 { margin: 0; }
.fs-body { font-size: 1.125rem; }
.fs-facts { list-style: none; margin: 1em 0 0; padding: 0; display: grid; gap: 12px; font-weight: 600; font-size: 1.125rem; }
.fs-facts li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: baseline; }
.fs-facts li::before { content: ""; width: 12px; height: 12px; border-radius: 2px; background: var(--fs-blue); }
/* Anchors land below the sticky header */
.fs .wl-block[id], .fs [id]:target { scroll-margin-top: 68px; }

/* Footer */
.fs-foot-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding: 48px 0 12px; }
.fs-foot-brand img { height: 74px; width: auto; }
.fs-foot-brand p { margin: 14px 0 0; }
.fs-foot .fs-d { display: none; }
:root[data-mode="dark"] .fs-foot .fs-l { display: none; }
:root[data-mode="dark"] .fs-foot .fs-d { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-mode="light"]) .fs-foot .fs-l { display: none; }
  :root:not([data-mode="light"]) .fs-foot .fs-d { display: block; }
}
.fs-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.fs-foot a { color: var(--wl-muted); text-decoration: none; display: inline-block; min-height: 24px; padding: 2px 0; }
.fs-foot a:hover { color: var(--wl-accent); }
.fs-foot-contact p { margin: 0 0 6px; }
@media (max-width: 860px) { .fs-foot-row { grid-template-columns: 1fr; } }
