/* Public site of agoradis.com: home, legal pages and private quote links.
   Agoradis design system (Mark, 2026-11-06): the header and footer are dark bands with the brand (logo, shining gold
   rule); the body is light by default and dark on request (theme.js sets data-mode on <html>). Ion blue marks what is
   active. Type: Sofia Sans, Extra Condensed for figures, JetBrains Mono for status words. The fonts are served by the
   site itself (SIL Open Font License, see fonts/). */
@font-face { font-family: "Sofia Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/sofia-sans.woff2") format("woff2"); }
@font-face { font-family: "Sofia Sans"; font-style: italic; font-weight: 200 800; font-display: swap; src: url("fonts/sofia-sans-italic.woff2") format("woff2"); }
@font-face { font-family: "Sofia Sans Extra Condensed"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/sofia-sans-extra-condensed.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("fonts/jetbrains-mono.woff2") format("woff2"); }

:root {
  --bg: #ffffff; --panel: #f5f7fa; --line: #dadfe7; --ink: #0b0f1a; --muted: #586073;
  --gold: #8a6a2f; --gold-deep: #a8874c; --ion: #2c5ae0;
  --gold-shine: linear-gradient(115deg, #9c7e45 0%, #d6bf8a 30%, #f7eccc 48%, #d6bf8a 62%, #9c7e45 100%);
  --sans: "Sofia Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --cond: "Sofia Sans Extra Condensed", "Sofia Sans", "Arial Narrow", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}
/* the brand's dark colours: always in the header and footer bands, everywhere in dark mode */
:root[data-mode="dark"], .band {
  --bg: #05070d; --panel: #0b0f1a; --line: #1b2130; --ink: #f5f8ff; --muted: #9ba1b3;
  --gold: #d6bf8a; --gold-deep: #9c7e45; --ion: #4d7cff;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; transition: background-color .25s, color .25s; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
main { flex: 1 0 auto; padding-bottom: 56px; }
@media (prefers-reduced-motion: reduce) { body { transition: none; } }
h1, h2, h3, h4, h5, p { margin: 0; }
button, input, output { font: inherit; color: inherit; }
a { color: var(--ink); text-decoration-color: var(--gold-deep); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.gold-rule { height: 1px; border: 0; margin: 0; background: var(--gold-shine); background-size: 300% 100%; animation: sheen 6s ease-in-out infinite; }
@keyframes sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { .gold-rule { animation: none; } }
.ico { display: inline-grid; place-items: center; flex: none; }
.ico svg { width: 24px; height: 24px; display: block; }

/* header and footer: dark bands with the brand, on every page */
.band { background: var(--bg); color: var(--ink); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; padding-block: 20px; }
.logo { display: block; }
.logo img { width: 150px; height: auto; display: block; }
.tools { display: flex; align-items: center; gap: 8px; }
.langs, .modes { display: flex; gap: 4px; }
.langs button, .modes button { background: none; border: 1px solid transparent; border-radius: 999px; color: var(--muted); cursor: pointer; }
.langs button { padding: 4px 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; }
.modes button { width: 32px; height: 30px; padding: 0; display: grid; place-items: center; }
.modes svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.langs button:hover, .modes button:hover { color: var(--ink); }
.langs button[aria-pressed="true"], .modes button[aria-pressed="true"] { color: var(--ink); border-color: var(--line); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.foot { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--muted); padding-block: 22px 28px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }

/* simple pages: home, legal pages, expired link */
.page { padding-top: 40px; display: grid; gap: 18px; max-width: 72ch; }
.page h1 { font-weight: 300; font-style: italic; font-size: clamp(30px, 4.6vw, 42px); line-height: 1.15; }
.page h2 { font-weight: 500; font-size: 20px; line-height: 1.3; margin-top: 18px; }
.page p, .page li { color: var(--muted); }
.page strong { color: var(--ink); font-weight: 500; }
.page ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.page .lead { color: var(--ink); font-size: 19px; }
.page dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 20px; margin: 0; }
.page dt { color: var(--muted); }
.page dd { margin: 0; }
@media (max-width: 560px) { .page dl { grid-template-columns: minmax(0, 1fr); gap: 0; } .page dd { margin-bottom: 10px; } }

/* --- the quote page ------------------------------------------------------------------------------------- */
.quote { padding-top: 32px; display: grid; gap: 24px; align-content: start; }
.status { color: var(--muted); padding-block: 48px; }
.hero { display: grid; gap: 10px; padding-bottom: 8px; max-width: 66ch; }
.hero h1 { font-weight: 300; font-style: italic; font-size: clamp(30px, 4.6vw, 44px); line-height: 1.15; }

/* questions */
.q { display: grid; gap: 8px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.q h3, .dh { font-weight: 500; font-size: 19px; line-height: 1.3; }
.why { color: var(--muted); font-size: 15px; line-height: 1.45; }
.why-l { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-right: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 2px; }
.chip { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 15px; color: var(--muted); cursor: pointer; transition: border-color .15s, color .15s; }
.chip:hover { border-color: var(--muted); color: var(--ink); }
.chip.on { border-color: var(--ink); color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.qgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 0 28px; }

/* device block */
.dev { display: grid; gap: 12px; padding-block: 16px 18px; border-bottom: 1px solid var(--line); }
.stp { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 2px; flex: none; }
.stp button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; color: var(--ink); cursor: pointer; font-size: 19px; line-height: 1; display: grid; place-items: center; }
.stp button:hover { background: color-mix(in srgb, var(--ink) 9%, transparent); }
.stp button:disabled { opacity: .28; cursor: default; background: none; }
.stp output { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* devices: one tile per kind */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 700px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px; color: var(--muted); transition: border-color .2s; min-width: 0; }
.tile > .ico { justify-self: start; }
.tile .ico svg { width: 30px; height: 30px; }
.tile b { font-weight: 500; font-size: 16px; line-height: 1.25; color: var(--ink); }
.tile p { font-size: 13px; line-height: 1.4; }
.tile.on { border-color: var(--ion); }
.tile.on > .ico { color: var(--ion); }
.tile-n { position: absolute; top: 12px; right: 14px; font-family: var(--cond); font-weight: 300; font-size: 34px; line-height: 1; color: var(--ink); }
.tile-c { padding-top: 2px; }
.tile .add { color: var(--ink); }

/* offer rows: one per module, added or removed with one click, with the reason of the preselection */
.rows { display: grid; border-top: 1px solid var(--line); margin-inline: -8px; }
.row { width: 100%; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto minmax(104px, auto); gap: 4px 16px; align-items: start; padding: 14px 8px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; color: var(--muted); cursor: pointer; transition: background-color .15s; }
.row:not(.locked):hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.row.locked { cursor: default; }
.rid { font-family: var(--mono); font-size: 12px; padding-top: 5px; }
.rbody { display: grid; gap: 2px; min-width: 0; }
.rbody strong { font-weight: 500; font-size: 17px; color: var(--muted); transition: color .15s; }
.row.on .rbody strong, .row:hover .rbody strong { color: var(--ink); }
.rwhat { font-size: 14px; line-height: 1.45; }
.px { display: grid; justify-items: end; font-family: var(--cond); font-size: 25px; line-height: 1.1; white-space: nowrap; color: var(--muted); }
.px small { font-family: var(--mono); font-size: 11px; line-height: 16px; color: var(--muted); }
.row.on .px { color: var(--ink); }
/* the switch at the end of each line, and the word under it: included or not (a padlock when it cannot be removed) */
.ctl { justify-self: end; display: grid; justify-items: center; gap: 4px; margin-top: 2px; white-space: nowrap; }
.ctl-t { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; transition: color .2s; }
.sw-t { position: relative; width: 44px; height: 24px; border-radius: 999px; border: 1px solid var(--muted); background: var(--bg); transition: background-color .2s, border-color .2s; }
.sw-t i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .2s, background-color .2s; }
.row:hover .sw-t { border-color: var(--ink); }
.row.on .sw-t { background: var(--ion); border-color: var(--ion); }
.row.on .sw-t i { transform: translateX(20px); background: #ffffff; }
.row.on:not(.locked) .ctl-t { color: var(--ion); }
.ctl.lock { color: var(--muted); }
.ctl.lock .ico svg { width: 18px; height: 18px; }
@media (hover: none) { .row:not(.locked):hover { background: none; } }
.tag { display: block; margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.tag.from { color: var(--ink); }
.tag-l { display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold); border-radius: 999px; padding: 0 8px; margin-right: 8px; vertical-align: 1px; }
.row.flash { animation: flash 1.2s ease-out; }
@keyframes flash { from { background: color-mix(in srgb, var(--ion) 16%, transparent); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .row.flash { animation: none; } }
/* phone: the control stays next to the title, the price goes under it */
@media (max-width: 560px) { .row { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; grid-template-areas: "body ctl" "body px"; } .rid { display: none; } .rbody { grid-area: body; } .ctl { grid-area: ctl; } .px { grid-area: px; } }

/* the plan of the office */
.plan { display: grid; justify-items: center; min-width: 0; }
.nd { position: relative; width: min(100%, 320px); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--bg); display: grid; gap: 2px; justify-items: center; text-align: center; transition: border-color .25s; }
.nd b { font-weight: 500; font-size: 16px; }
.nd small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.st { white-space: nowrap; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; color: var(--muted); }
.nd > .st { margin-top: 4px; }
.nd.lit { border-color: var(--ion); }
.nd.lit > .st { color: var(--ion); border-color: var(--ion); }
.nd.unk { border-style: dashed; border-color: var(--gold-deep); }
.nd.unk > .st { color: var(--gold); border-color: var(--gold); }
.nd-x { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; line-height: 1.3; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px 3px 7px; color: var(--muted); text-align: left; }
.nd-x .ico svg { width: 16px; height: 16px; }
.nd-x.lit { border-color: var(--ion); color: var(--ink); }
.nd-x.lit .ico { color: var(--ion); }
.nd-x.unk { border-style: dashed; border-color: var(--gold-deep); color: var(--gold); }
.wire { width: 1px; height: 18px; background: var(--muted); }
.zones { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: min(100%, 640px); padding-top: 18px; }
.zones::before { content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 1px; background: var(--muted); }
.zone { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 6px; align-content: start; min-width: 0; background: var(--bg); transition: border-color .25s; }
.zone::before { content: ""; position: absolute; top: -19px; left: 50%; width: 1px; height: 18px; background: var(--muted); }
.zone.lit { border-color: color-mix(in srgb, var(--ion) 70%, var(--line)); }
.zone.unk { border-style: dashed; border-color: var(--gold-deep); }
.zone-h { display: flex; justify-content: space-between; align-items: center; gap: 4px 8px; flex-wrap: wrap; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 2px 2px; }
.zone.lit .zone-h .st { color: var(--ion); border-color: var(--ion); }
.zone.unk .zone-h .st { color: var(--gold); border-color: var(--gold); }
.dv { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 14px; line-height: 1.25; color: var(--muted); text-align: left; min-width: 0; }
.dv .ico svg { width: 20px; height: 20px; }
.dv-l { flex: 1; min-width: 0; }
.dv.lit { border-color: var(--ion); color: var(--ink); }
.dv.lit .ico { color: var(--ion); }
.dv.unk { border-style: dashed; border-color: var(--gold-deep); color: var(--gold); }
.dv.na { border-style: dashed; }
.clouds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: min(100%, 640px); margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.clouds > .nd { width: 100%; }
.clouds > .nd:first-child { grid-column: 1 / -1; }
.clouds .dv { margin-top: 6px; width: min(100%, 260px); }
.plan.compact .nd { padding: 7px 8px; }
.plan.compact .nd b { font-size: 14px; }
.plan.compact .nd small { font-size: 12px; }
.plan.compact .dv { font-size: 13px; padding: 5px 7px; gap: 6px; }
.plan.compact .dv .ico svg { width: 18px; height: 18px; }
.plan.compact .zone { padding: 8px; }
@media (max-width: 520px) { .zones, .clouds { gap: 6px; } .zone { padding: 7px; } .dv { font-size: 13px; padding: 5px 6px; gap: 6px; } .nd b { font-size: 14px; } .nd small { font-size: 12px; } }

/* totals, gauges, sending */
.tot { display: grid; gap: 2px; }
.tot-v { font-family: var(--cond); font-weight: 200; font-size: 84px; line-height: .95; color: var(--ink); }
.tot-c { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ion); }
.extras { color: var(--muted); font-size: 14px; line-height: 1.5; }
.send { display: grid; gap: 10px; }
.btn { border: 0; border-radius: 999px; height: 46px; padding: 0 24px; font-weight: 600; font-size: 15px; cursor: pointer; background: var(--ink); color: var(--bg); }
.btn:hover { background: color-mix(in srgb, var(--ink) 90%, var(--ion)); }
.btn:disabled { opacity: .5; cursor: default; }
.sent { border: 1px solid var(--ion); border-radius: 10px; padding: 12px 14px; font-size: 15px; }
.fail { border: 1px dashed var(--gold-deep); border-radius: 10px; padding: 12px 14px; font-size: 15px; color: var(--gold); }

/* the cockpit: answers and modules on the left; plan, total and gauges on the right */
.ck { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.ck-r { position: sticky; top: 16px; display: grid; gap: 18px; border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: var(--panel); min-width: 0; }
.ck-r .nd, .ck-r .zone { background: var(--panel); }
@media (max-width: 960px) { .ck { grid-template-columns: minmax(0, 1fr); } .ck-r { position: static; } }
.ck-h { font-weight: 300; font-style: italic; font-size: 24px; margin-top: 8px; }
.ck-l { display: grid; gap: 16px; min-width: 0; }
.gauge { display: grid; gap: 6px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.gauge > div:first-child { display: flex; justify-content: space-between; gap: 8px; }
.gauge .g { height: 4px; background: var(--line); position: relative; }
.gauge .g i { position: absolute; inset: 0 auto 0 0; width: 100%; background: var(--muted); transition: width .4s; }
.gauge.me .g i { background: var(--ion); width: 0; }
