/* Disjoncto — disjoncto.com. World: "la planche de l'électricien" (DESIGN.md).
   Papier calque, trait graphite, ambre seulement pour ce qui porte du courant.
   Archivo semi-étendu pour les titres, IBM Plex Mono pour les repères (C1, 16 A, 2,5 mm²). */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plexmono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plexmono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  --graphite: #14171c; --slate: #1e232a; --slate-2: #272d36; --line-d: #343b46;
  --paper: #f5f3ee; --paper-2: #ece8df; --line-l: #d9d3c7; --white: #fbfaf7;
  --ink: #1b1f25; --ink-2: #5b6270; --ink-d2: #a3aab6;
  --amber: #ffb020; --amber-2: #ffbf47; --amber-text: #9a6200; --copper: #c98a4b;
  --green: #2fbf71; --green-text: #1e8a4f; --red: #e5484d; --red-text: #c2363b;
  /* surface tokens: paper by default */
  --bg: var(--paper); --bg-2: var(--paper-2); --bg-raised: var(--white); --fg: var(--ink); --fg-2: var(--ink-2); --rule: var(--line-l); --rule-ink: var(--ink); --accent-text: var(--amber-text);
  --shadow: 0 24px 48px -28px rgba(27, 31, 37, .35), 0 2px 6px -2px rgba(27, 31, 37, .12);
  --r10: 10px; --r14: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1); --ease-io: cubic-bezier(.65, 0, .35, 1);
  --measure: 68ch; --pad: clamp(16px, 4vw, 40px); --max: 1240px; --hdr: 72px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: var(--slate); --bg-2: var(--graphite); --bg-raised: var(--slate-2); --fg: var(--paper); --fg-2: var(--ink-d2); --rule: var(--line-d); --rule-ink: var(--ink-d2); --accent-text: var(--amber); --shadow: 0 24px 48px -24px rgba(0, 0, 0, .6); color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: var(--slate); --bg-2: var(--graphite); --bg-raised: var(--slate-2); --fg: var(--paper); --fg-2: var(--ink-d2); --rule: var(--line-d); --rule-ink: var(--ink-d2); --accent-text: var(--amber); --shadow: 0 24px 48px -24px rgba(0, 0, 0, .6); color-scheme: dark; }
[data-theme-dark] { --bg: var(--graphite); --bg-2: var(--slate); --bg-raised: var(--slate); --fg: var(--paper); --fg-2: var(--ink-d2); --rule: var(--line-d); --rule-ink: var(--ink-d2); --accent-text: var(--amber); --shadow: 0 24px 48px -24px rgba(0, 0, 0, .6); color-scheme: dark; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); scrollbar-color: rgba(91, 98, 112, .45) transparent; }
body { margin: 0; font-family: "Archivo", system-ui, sans-serif; font-stretch: 100%; font-size: 17px; line-height: 1.6; color: var(--fg); background: var(--bg); font-feature-settings: "kern"; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; text-decoration-color: rgba(201, 138, 75, .6); }
a:hover { text-decoration-color: var(--amber); }
::selection { background: rgba(255, 176, 32, .4); color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
input, select, textarea, button { font: inherit; color: inherit; }
input, select { caret-color: var(--amber); accent-color: var(--amber); }
.mono, code, kbd, time { font-family: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace; font-variant-numeric: tabular-nums; font-stretch: 100%; letter-spacing: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--amber); color: var(--graphite); padding: 10px 14px; border-radius: var(--r10); }
main { display: block; min-height: 60vh; }
[hidden] { display: none !important; }

h1, h2, h3 { font-stretch: 114%; font-weight: 680; letter-spacing: -0.028em; line-height: 1.04; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 84px); font-stretch: 116%; letter-spacing: -0.032em; line-height: .98; }
h2 { font-size: clamp(30px, 4.1vw, 54px); }
h2.h-sm { font-size: clamp(26px, 3vw, 38px); margin-bottom: 26px; }
h3 { font-size: clamp(20px, 2vw, 24px); font-stretch: 108%; letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lead { font-size: clamp(18px, 1.55vw, 21px); line-height: 1.55; max-width: 56ch; color: var(--fg-2); margin-top: 20px; }
.fine { font-size: 14px; color: var(--fg-2); max-width: 70ch; }
.hint { font-size: 13.5px; color: var(--fg-2); }

/* ---------- header: glass, arrives from the top, shrinks on scroll ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 40; color: var(--paper); background: rgba(20, 23, 28, .74); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); transform: translateY(-100%); animation: hdr-in .7s var(--ease) .15s forwards; --h: var(--hdr); }
@keyframes hdr-in { to { transform: none; } }
.top .wrap { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); height: var(--h); transition: height .35s var(--ease); }
.top.scrolled { --h: 58px; background: rgba(20, 23, 28, .86); }
.top .rule { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(245, 243, 238, .1); overflow: hidden; }
.top .rule::after { content: ""; position: absolute; inset: 0; background: var(--amber); transform-origin: left; transform: scaleX(var(--progress, 0)); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-stretch: 112%; font-size: 20px; letter-spacing: -0.025em; color: inherit; }
.brand .logo { position: relative; width: 30px; height: 30px; transition: transform .45s var(--ease); }
.brand .logo img { width: 100%; height: 100%; }
.brand:hover .logo { transform: rotate(-6deg) scale(1.06); }
.logo .lg-light { display: none; }
[data-theme-dark] .logo .lg-dark, .top .logo .lg-dark { display: block; }
.foot .logo .lg-dark { display: none; } .foot .logo .lg-light { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .foot .logo .lg-dark { display: block; } :root:not([data-theme="light"]) .foot .logo .lg-light { display: none; } }
:root[data-theme="dark"] .foot .logo .lg-dark { display: block; } :root[data-theme="dark"] .foot .logo .lg-light { display: none; }
.top.scrolled .brand .logo { transform: scale(.9); }
.nav { display: flex; gap: 2px; margin-left: 6px; }
.nav a { position: relative; text-decoration: none; padding: 10px 11px; color: var(--ink-d2); font-size: 15px; font-weight: 540; white-space: nowrap; transition: color .25s; }
.nav a span { position: relative; }
.nav a span::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); border-radius: 1px; }
.nav a:hover { color: var(--paper); }
.nav a:hover span::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { color: var(--paper); }
.nav a[aria-current="page"] span::after { transform: scaleX(1); background: var(--copper); }
.top .grow { flex: 1; }
.nav-cta { display: none !important; }
.top .acts { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; position: relative; width: 44px; height: 44px; border-radius: var(--r10); border: 1px solid rgba(245, 243, 238, .16); background: transparent; cursor: pointer; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--paper); border-radius: 1px; transition: transform .4s var(--ease), opacity .25s; top: 50%; }
.menu-btn span:nth-child(1) { transform: translateY(-7px); } .menu-btn span:nth-child(2) { transform: translateY(-1px); } .menu-btn span:nth-child(3) { transform: translateY(5px); }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(-1px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: translateY(-1px) scaleX(.2); }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-1px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--r10); font-weight: 640; font-size: 16px; text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap; overflow: hidden; isolation: isolate; transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s, box-shadow .3s var(--ease), color .25s; -webkit-tap-highlight-color: transparent; }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease); }
.btn:hover svg:last-child:not(.trace) { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 17px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-amber { background: var(--amber); color: var(--graphite); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset; }
.btn-amber:hover { background: var(--amber-2); transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(255, 176, 32, .7); }
.btn-amber:active { transform: translateY(0) scale(.985); }
/* the single-line trace that draws itself across the primary button */
.btn .trace { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; color: rgba(20, 23, 28, .55); z-index: -1; }
.btn .trace path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .7s var(--ease), opacity .3s; opacity: 0; }
.btn:hover .trace path, .btn:focus-visible .trace path { stroke-dashoffset: 0; opacity: 1; }
.btn-ghost { border-color: rgba(245, 243, 238, .22); color: var(--paper); background: rgba(245, 243, 238, .02); }
.btn-ghost:hover { border-color: rgba(245, 243, 238, .5); background: rgba(245, 243, 238, .06); }
.btn-line { border-color: var(--rule); color: var(--fg); background: transparent; }
.btn-line:hover { border-color: var(--fg-2); background: var(--bg-raised); }
.btn[aria-disabled="true"] { pointer-events: none; background: var(--bg-2); color: var(--fg-2); border-color: var(--rule); box-shadow: none; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--rule); background: transparent; color: var(--fg-2); cursor: pointer; transition: border-color .2s, color .2s; }
.icon-btn:hover { color: var(--red-text); border-color: var(--red-text); }
.icon-btn svg { width: 16px; height: 16px; }

/* ---------- language menu with flags ---------- */
.lang { position: relative; }
.lang > button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px 0 10px; border-radius: var(--r10); border: 1px solid rgba(245, 243, 238, .16); background: transparent; color: var(--paper); font-size: 14px; font-weight: 580; cursor: pointer; font-family: "Plex Mono", monospace; transition: border-color .25s, background .25s; }
.lang > button:hover, .lang.open > button { border-color: rgba(245, 243, 238, .4); background: rgba(245, 243, 238, .05); }
.lang img { width: 20px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); object-fit: cover; }
.lang > button svg { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.lang.open > button svg { transform: rotate(180deg); }
.lang ul { position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; list-style: none; margin: 0; padding: 6px; min-width: 212px; background: var(--slate); color: var(--paper); border: 1px solid var(--line-d); border-radius: var(--r14); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .5); opacity: 0; visibility: hidden; transform: translateY(-6px); transform-origin: top right; transition: opacity .16s var(--ease), transform .22s var(--ease), visibility 0s linear .22s; max-height: min(70vh, 480px); overflow: auto; overscroll-behavior: contain; }
.lang.open ul { opacity: 1; visibility: visible; transform: none; transition: opacity .2s var(--ease), transform .24s var(--ease); }
.lang.up ul { top: auto; bottom: calc(100% + 10px); right: 0; left: auto; transform-origin: bottom right; transform: translateY(6px); }
.lang.up.open ul { transform: none; }
.lang li a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--paper); font-size: 15px; transition: background .2s, transform .3s var(--ease); }
.lang li a span { margin-left: auto; color: var(--ink-d2); font-family: "Plex Mono", monospace; font-size: 12.5px; }
.lang li a:hover, .lang li a:focus-visible { background: var(--slate-2); outline: none; transform: translateX(2px); }
.lang li a[aria-current="true"] { background: rgba(255, 176, 32, .12); }
.lang li a[aria-current="true"] span { color: var(--amber); }
.foot .lang > button { border-color: var(--rule); color: var(--fg); }
.foot .lang > button:hover { border-color: var(--fg-2); background: var(--bg-raised); }

/* ---------- hero (dark, the building builds itself) ---------- */
.hero { position: relative; background: var(--graphite); color: var(--paper); overflow: hidden; padding-top: var(--hdr); }
.hero-bg, .ph-bg, .cta-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.grid-paper { position: absolute; inset: -20% 0; background-image: linear-gradient(rgba(245, 243, 238, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(245, 243, 238, .055) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 45%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 70% 45%, #000 20%, transparent 75%); }
.hero .glow { position: absolute; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; right: -10%; top: -10%; background: radial-gradient(circle, rgba(255, 176, 32, .13), transparent 60%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(16px, 2vw, 28px); }
.hero h1 { color: var(--paper); }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lead { color: var(--ink-d2); margin-top: 24px; }
.hero .ctas, .page-head .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero .fine { margin-top: 20px; font-size: 13px; color: var(--ink-d2); letter-spacing: .01em; }
.hero-copy > * { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.hero-copy h1 { animation-delay: .2s; } .hero-copy .lead { animation-delay: .32s; } .hero-copy .ctas { animation-delay: .42s; } .hero-copy .fine { animation-delay: .52s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.stage { position: relative; aspect-ratio: 1.18 / 1; width: 100%; opacity: 0; animation: fade 1.2s var(--ease) .35s forwards; }
@keyframes fade { to { opacity: 1; } }
.stage svg { width: 100%; height: 100%; overflow: visible; }
.stage .replay { position: absolute; right: 0; top: 0; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 8px; border: 1px solid var(--line-d); color: var(--ink-d2); background: rgba(20, 23, 28, .6); cursor: pointer; transition: color .2s, border-color .2s; }
.stage .replay svg { width: 14px; height: 14px; transition: transform .5s var(--ease); }
.stage .replay:hover { color: var(--paper); border-color: var(--ink-d2); }
.stage .replay:hover svg { transform: rotate(-360deg); }
.legend-strip { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 14px 0 clamp(20px, 3vw, 36px); font-size: 12.5px; color: var(--ink-d2); border-top: 1px solid rgba(245, 243, 238, .08); }
.legend-strip span { display: inline-flex; align-items: center; gap: 8px; }
.legend-strip i { width: 18px; height: 2px; border-radius: 1px; display: inline-block; }

/* ---------- sections ---------- */
section { position: relative; }
.sec { padding: clamp(72px, 9vw, 132px) 0; }
.sec-paper { background: var(--bg); color: var(--fg); }
.sec-paper-2 { background: var(--bg-2); color: var(--fg); }
.sec-graphite { background: var(--graphite); color: var(--paper); }
.head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
/* the short amber trait above section titles draws itself on reveal */
:where(.sec, .convert) h2:where(:not(.h-sm):not(.ver))::before { content: ""; display: block; width: 40px; height: 2px; background: var(--amber); margin-bottom: 24px; transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) .2s; }
.rv.in h2::before, h2.rv.in::before { transform: none; }
.rules-title { margin-bottom: 14px; }

/* dimension line used as a rule */
.cote { display: flex; align-items: center; gap: 12px; color: var(--fg-2); font-size: 12px; }
.cote i { flex: 1; height: 1px; background: var(--rule-ink); position: relative; opacity: .5; }
.cote i::before, .cote i::after { content: ""; position: absolute; top: -4px; width: 1px; height: 9px; background: currentColor; }
.cote i::before { left: 0; } .cote i::after { right: 0; }

/* each home section opens with a dimension line (cote) and its sheet number */
.cote-row { margin-top: clamp(-40px, -3vw, -16px); margin-bottom: clamp(36px, 5vw, 64px); }
.cote-row .cote i { transform: scaleX(0); transition: transform 1.1s var(--ease) .1s; }
.cote-row .cote i:first-child { transform-origin: right; } .cote-row .cote i:last-child { transform-origin: left; }
.cote-row.in .cote i { transform: none; }
.cote-row .cote span { letter-spacing: .08em; }

/* ---------- sheet (drawing board with title block) ---------- */
.sheet { background: var(--bg-raised); border-radius: var(--r14); box-shadow: var(--shadow); overflow: hidden; }
[data-theme-dark] .sheet { box-shadow: none; border: 1px solid var(--rule); }
.sheet .cart { display: grid; grid-template-columns: 2fr 1.4fr 1fr 1fr .7fr; border-top: 1.2px solid var(--rule-ink); font-size: 12.5px; }
.sheet .cart div { padding: 8px 12px; border-left: 1px solid var(--rule-ink); min-width: 0; }
.sheet .cart div:first-child { border-left: 0; }
.sheet .cart b { display: block; font-weight: 640; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet .cart small { color: var(--fg-2); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; font-family: "Plex Mono", monospace; }

/* ---------- conversion plan -> unifilaire (animation 2) ---------- */
.convert { height: 260vh; background: var(--bg); color: var(--fg); }
.convert .pin { position: sticky; top: var(--hdr); height: calc(100vh - var(--hdr)); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--rule); color: var(--fg-2); transition: color .4s var(--ease); }
.steps li .n { font-size: 12px; color: var(--fg-2); padding-top: 5px; }
.steps li b { display: block; color: var(--fg); font-weight: 640; font-stretch: 108%; transition: color .4s; }
.steps li p { margin: 2px 0 0; font-size: 15.5px; }
.steps li.on { color: var(--fg); }
.steps li.on b, .steps li.on .n { color: var(--accent-text); }
.convert .board { aspect-ratio: 1.45 / 1; }
.convert .board svg { width: 100%; height: 100%; }

/* ---------- finding demo ---------- */
.finding { margin-top: 36px; background: var(--bg-raised); border: 1px solid var(--rule); border-radius: var(--r14); padding: 22px 24px; max-width: 620px; }
.finding .row { display: flex; gap: 14px; align-items: flex-start; }
.finding .sev { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--red); }
.finding .msg { font-size: 17px; line-height: 1.45; transition: color .4s; }
.finding .art { color: var(--fg-2); font-size: 12.5px; margin-top: 8px; }
.finding .fix { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; min-height: 42px; padding: 8px 16px; text-align: left; white-space: normal; border-radius: var(--r10); border: 1px solid rgba(255, 176, 32, .7); color: var(--amber); font-weight: 620; font-size: 15px; background: transparent; cursor: pointer; transition: background .25s, transform .25s var(--ease); }
.finding .fix:hover { background: rgba(255, 176, 32, .12); transform: translateY(-1px); }
.finding.done .msg { color: var(--fg-2); text-decoration: line-through; text-decoration-color: rgba(163, 170, 182, .5); }
.finding.done .sev { color: var(--green); }
.finding .ok { display: none; margin-top: 16px; color: var(--green); font-weight: 620; align-items: center; gap: 8px; animation: rise .5s var(--ease); }
.finding.done .ok { display: inline-flex; } .finding.done .fix { display: none; }
.rules { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rules li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; }
.rules li .ref { color: var(--accent-text); font-size: 12.5px; white-space: nowrap; }
.sec-graphite .fine { margin-top: 18px; }

/* ---------- devices ---------- */
.devices { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.device figure { margin: 0; border-radius: var(--r14); overflow: hidden; background: var(--slate); aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.device figure img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--ease); }
.device.in figure img { transform: scale(1); }
.device h3 { margin-top: 22px; }
.device p { color: var(--fg-2); margin-top: 8px; max-width: 46ch; }
.device-list { display: grid; gap: 26px; align-content: start; padding-top: 6px; }
.device-list .item { padding-top: 22px; border-top: 1px solid var(--rule); }
.device-list .item p { color: var(--fg-2); margin: 8px 0 0; }

/* ---------- documents fan ---------- */
.docs-fan { display: flex; align-items: flex-end; justify-content: center; align-self: center; padding: 28px 8px 16px; perspective: 1400px; overflow: hidden; }
.docs-fan .pg { width: clamp(90px, 12vw, 150px); aspect-ratio: 210 / 297; background: var(--white); border-radius: 4px; margin-left: -12px; box-shadow: 0 18px 30px -18px rgba(27, 31, 37, .45); transform: rotate(var(--r, 0deg)) translateY(var(--y, 0)); transition: transform .6s var(--ease); padding: 10px; display: flex; flex-direction: column; gap: 6px; opacity: 0; }
.docs-fan.in .pg { animation: card-in .9s var(--ease) forwards; animation-delay: calc(var(--i) * 90ms); }
@keyframes card-in { from { opacity: 0; transform: rotate(var(--r)) translateY(26px); } to { opacity: 1; transform: rotate(var(--r)) translateY(0); } }
.docs-fan .pg:first-child { margin-left: 0; }
.docs-fan:hover .pg { --y: -8px; }
.docs-fan .pg svg { flex: 1; width: 100%; }
.docs-fan .pg small { font-size: 9.5px; line-height: 1.2; color: var(--ink-2); font-weight: 560; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.doclist { columns: 2; column-gap: 40px; margin: 28px 0 0; padding: 0; list-style: none; }
.doclist li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; }

/* ---------- index lists ---------- */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.index a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 28px; gap: 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--rule); text-decoration: none; transition: padding .35s var(--ease), background .35s; }
.index a:hover { padding-left: 12px; padding-right: 8px; background: rgba(255, 176, 32, .08); }
.index a b { font-size: 20px; font-weight: 640; font-stretch: 110%; letter-spacing: -0.012em; }
.index a span { color: var(--fg-2); font-size: 15.5px; }
.index a svg { width: 20px; height: 20px; align-self: center; color: var(--accent-text); transition: transform .35s var(--ease); }
.index a:hover svg { transform: translateX(4px); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--rule); max-width: 860px; }
.faq-narrow { margin-top: 48px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; font-weight: 620; font-size: 18px; padding: 18px 0; list-style: none; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-text); }
.faq summary i { position: relative; flex: none; width: 22px; height: 22px; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.75px; background: currentColor; transform: translate(-50%, -50%); transition: transform .4s var(--ease); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq .ans { padding: 0 0 20px; color: var(--fg-2); max-width: 70ch; }
.faq details[open] .ans { animation: rise .45s var(--ease); }
.faq .ans p { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--graphite); color: var(--paper); overflow: hidden; }
.cta-band .cta-bg svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .35; }
.cta-band .cta-bg .line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease-io); }
.cta-band.in .cta-bg .line { stroke-dashoffset: 0; }
.cta-band .wrap { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px); }
.cta-band h2 { max-width: 20ch; }
.cta-band h2::before { display: none !important; }

/* ---------- page head (inner pages) ---------- */
.page-head { position: relative; background: var(--graphite); color: var(--paper); padding: calc(var(--hdr) + clamp(44px, 6vw, 80px)) 0 clamp(44px, 6vw, 72px); overflow: hidden; }
.page-head .wrap { position: relative; }
.page-head .lead { color: var(--ink-d2); }
.page-head .meta, .page-head .detected { margin-top: 16px; font-size: 13.5px; color: var(--ink-d2); }
.page-head .detected { color: var(--amber); }
.page-head > .wrap > * { opacity: 0; transform: translateY(14px); animation: rise .8s var(--ease) forwards; }
.page-head > .wrap > :nth-child(2) { animation-delay: .1s; } .page-head > .wrap > :nth-child(3) { animation-delay: .2s; } .page-head > .wrap > :nth-child(4) { animation-delay: .28s; }
.page-head.nf { min-height: 60vh; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-d2); margin-bottom: 26px; }
.crumbs a { text-decoration: none; transition: color .2s; } .crumbs a:hover { color: var(--amber); }
.crumbs i { width: 14px; height: 1px; background: var(--ink-d2); opacity: .6; }
.page-body { padding-top: clamp(44px, 6vw, 80px); }
.page-body .prose .cta-p { margin-top: 2.2em; }
.page-body.wide .prose { max-width: none; }

/* ---------- prose ---------- */
.prose { max-width: var(--measure); font-size: 17.5px; line-height: 1.7; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 2.1em 0 .6em; }
.prose h3 { margin: 1.8em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: .35em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 1.4em 0; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; min-width: 120px; }
.prose th { font-weight: 640; background: var(--bg-2); font-size: 13.5px; }
.prose td.mono, .prose th.mono { white-space: nowrap; font-size: 13.5px; }
.prose .meta { font-family: "Plex Mono", monospace; font-size: 13px; color: var(--fg-2); margin: 0 0 2em; }
.prose a { text-decoration-color: rgba(201, 138, 75, .7); }
.prose a:hover { color: var(--accent-text); }
.prose .note { margin-top: 2.5em; padding: 16px 18px; border: 1px solid var(--rule); border-radius: var(--r10); background: var(--bg-raised); color: var(--fg-2); font-size: 15px; }
.legal .prose p, .legal .prose li { font-size: 16.5px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.aside { position: sticky; top: calc(var(--hdr) + 24px); display: grid; gap: 16px; }
.aside .box { background: var(--bg-raised); border: 1px solid var(--rule); border-radius: var(--r14); padding: 20px 22px; font-size: 15px; }
.aside .box b { display: block; font-size: 16px; font-stretch: 108%; margin-bottom: 8px; }
.aside .box p { color: var(--fg-2); margin: 0 0 16px; }
.aside .box a:not(.btn) { display: block; padding: 8px 0; border-top: 1px solid var(--rule); text-decoration: none; }
.aside .box a:not(.btn):hover { color: var(--accent-text); }

/* ---------- blog ---------- */
.posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; border-top: 1px solid var(--rule); }
.posts li { border-bottom: 1px solid var(--rule); }
.posts a { text-decoration: none; display: block; padding: 28px 0 30px; transition: transform .4s var(--ease); }
.posts a:hover { transform: translateX(6px); }
.posts h2 { font-size: 24px; margin: 10px 0; }
.posts h2::before { display: none; }
.posts a:hover h2 { color: var(--accent-text); }
.posts p { color: var(--fg-2); margin: 0 0 14px; font-size: 16px; }
.posts .tag, .tag { display: inline-block; font-size: 12px; color: var(--accent-text); border: 1px solid currentColor; border-radius: 6px; padding: 2px 8px; letter-spacing: .02em; }
.posts .read { display: inline-flex; align-items: center; gap: 8px; font-weight: 620; font-size: 15px; }
.posts .read svg { width: 18px; height: 18px; color: var(--accent-text); }
.more { margin-top: 48px; }
.more a { display: inline-flex; align-items: center; gap: 8px; font-weight: 620; text-decoration: none; }
.more a svg { width: 18px; height: 18px; color: var(--accent-text); transition: transform .35s var(--ease); }
.more a:hover svg { transform: translateX(4px); }

/* ---------- pricing: one sheet, three columns, a bill of materials ---------- */
.plans-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan { padding: 30px 28px 32px; border-left: 1px solid var(--rule); display: flex; flex-direction: column; min-width: 0; }
.plan:first-child { border-left: 0; }
.plan.main { background: var(--bg-2); }
.plan h2 { font-size: 20px; }
.plan h2::before { display: none !important; }
.plan .amt { font-size: clamp(40px, 4vw, 52px); font-weight: 700; font-stretch: 114%; letter-spacing: -0.035em; margin: 18px 0 4px; line-height: 1; font-variant-numeric: tabular-nums; }
.plan.main .amt { color: var(--accent-text); }
.plan .amt small { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--fg-2); margin-left: 6px; font-stretch: 100%; }
.plan .per { color: var(--fg-2); font-size: 14.5px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; flex: 1; border-top: 1px solid var(--rule); }
.plan li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; }
.plan li svg { flex: none; margin-top: 4px; color: var(--accent-text); }
.plan .btn { align-self: flex-start; }
.plans .cart { grid-template-columns: 2fr 1fr 1fr; }
.bom { list-style: none; margin: 40px 0 28px; padding: 0; border-top: 1px solid var(--rule-ink); }
.bom li { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
.bom li b { font-weight: 640; font-stretch: 108%; white-space: nowrap; }
.bom li i { flex: 1; border-bottom: 1px dotted var(--fg-2); opacity: .6; min-width: 24px; transform: translateY(-5px); }
.bom li span { color: var(--fg-2); text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- download ---------- */
.plats { border-top: 1px solid var(--rule-ink); }
.plat { padding: 28px 0 30px; border-bottom: 1px solid var(--rule); transition: background .4s; }
.plat.for-you { background: rgba(255, 176, 32, .07); border-radius: var(--r14); margin: 0 calc(-1 * var(--pad)); padding-left: var(--pad); padding-right: var(--pad); }
.plat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.plat-head svg { width: 32px; height: 32px; color: var(--accent-text); }
.plat-head h2 { font-size: clamp(24px, 2.6vw, 32px); }
.plat-head h2::before { display: none !important; }
.plat-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .9fr); gap: 24px 40px; align-items: start; }
.plat .req, .plat .how { margin: 0 0 8px; color: var(--fg-2); font-size: 15.5px; max-width: 60ch; }
.plat .req b { color: var(--fg); font-weight: 620; }
.plat .meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 14px 0 0; font-size: 13px; color: var(--fg-2); }
.plat .meta div { display: flex; gap: 8px; } .plat .meta dt { color: var(--fg-2); } .plat .meta dd { margin: 0; color: var(--fg); }
.plat .meta [data-opt] { display: none; } .plat.ready .meta [data-opt] { display: flex; }
.plat-act { display: grid; gap: 12px; justify-items: start; }
.plat .soon { display: grid; gap: 4px; font-size: 14px; color: var(--fg-2); max-width: 36ch; }
.plat .soon b { color: var(--fg); font-weight: 620; display: inline-flex; align-items: center; gap: 8px; }
.plat .soon b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--copper); box-shadow: 0 0 0 3px rgba(201, 138, 75, .25); }
.plat.ready .soon { display: none; }
.dl .ios { margin-top: clamp(56px, 7vw, 88px); padding-top: 40px; border-top: 1px solid var(--rule-ink); max-width: 820px; }
.dl .ios h2 { font-size: clamp(26px, 3vw, 38px); }
.dl .ios .steps { margin: 28px 0 32px; }
.dl .fine { margin-top: 20px; }

/* ---------- changelog ---------- */
.changelog { max-width: 860px; }
.rel { padding: 36px 0 40px; border-top: 1px solid var(--rule-ink); }
.rel:first-child { border-top: 0; padding-top: 0; }
.rel .ver { font-size: clamp(40px, 5vw, 64px); font-weight: 700; font-stretch: 116%; letter-spacing: -0.035em; display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.rel .ver .tag { font-size: 12px; letter-spacing: .02em; font-weight: 500; }
.rel .meta { margin: 10px 0 0; font-size: 13.5px; color: var(--fg-2); }
.rel .plats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 14px; border: 0; }
.rel .plats b { font-weight: 620; margin-right: 6px; }
.rel .plats span { border: 1px solid var(--rule); border-radius: 6px; padding: 2px 9px; font-size: 13px; color: var(--fg-2); }
.rel .notes { margin: 26px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.rel .notes li { padding: 12px 0 12px 22px; border-bottom: 1px solid var(--rule); position: relative; font-size: 16px; }
.rel .notes li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 10px; height: 2px; background: var(--amber); }

/* ---------- calculators ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; margin: 8px 0 20px; }
.calc form { padding: 28px; display: grid; gap: 16px; align-content: start; }
.calc .out { padding: 28px; background: var(--graphite); color: var(--paper); display: grid; gap: 18px; align-content: start; }
.field { display: grid; gap: 6px; }
.field > label, .field .lbl { font-size: 13.5px; font-weight: 600; color: var(--fg-2); }
.field input, .field select { width: 100%; min-width: 0; min-height: 46px; padding: 0 12px; border: 1px solid var(--rule); border-radius: var(--r10); background: var(--bg); color: var(--fg); font-size: 16px; font-family: "Plex Mono", monospace; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255, 176, 32, .25); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.seg { display: flex; flex-wrap: wrap; border: 1px solid var(--rule); border-radius: var(--r10); overflow: hidden; }
.seg label { flex: 1 1 auto; text-align: center; position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: block; padding: 11px 12px; font-size: 15px; font-weight: 560; color: var(--fg-2); transition: background .2s, color .2s; }
.seg input:checked + span { background: var(--graphite); color: var(--paper); }
.seg input:focus-visible + span { box-shadow: inset 0 0 0 2px var(--amber); }
.calc .hint { margin: -8px 0 0; }
.out .lbl { font-size: 12.5px; color: var(--ink-d2); font-family: "Plex Mono", monospace; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.out .big { font-size: 48px; font-weight: 500; line-height: 1; }
.out .big small { font-size: 20px; color: var(--ink-d2); }
.out .best { font-size: 22px; }
.out .bar { height: 6px; border-radius: 3px; background: rgba(245, 243, 238, .12); overflow: hidden; }
.out .bar i { display: block; height: 100%; width: 0; background: var(--amber); border-radius: 3px; transition: width .6s var(--ease); }
.out .verdict { display: inline-flex; align-items: center; gap: 8px; font-weight: 640; padding: 6px 12px; border-radius: 8px; justify-self: start; font-size: 15px; }
.out .verdict::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.out .verdict.ok { color: var(--green); background: rgba(47, 191, 113, .12); }
.out .verdict.bad { color: var(--red); background: rgba(229, 72, 77, .14); }
.out .small { font-size: 13px; color: var(--ink-d2); margin: 6px 0 0; }
.loads { display: grid; gap: 8px; }
.loads .ld { display: grid; grid-template-columns: minmax(0, 1fr) 110px 70px 40px; gap: 8px; align-items: center; }
.loads .hd { font-size: 12.5px; color: var(--fg-2); font-weight: 600; }
.calc .add { justify-self: start; }

/* ---------- footer ---------- */
.foot { background: var(--bg-2); color: var(--fg); font-size: 15px; border-top: 1px solid var(--rule); }
.foot .cols { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 64px; padding-bottom: 40px; }
.foot h2 { font-size: 13px; font-weight: 640; margin: 0 0 12px; letter-spacing: .02em; font-stretch: 108%; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { padding: 4px 0; }
.foot a { text-decoration: none; color: var(--fg-2); transition: color .2s; }
.foot a:hover { color: var(--fg); }
.foot .about .brand { color: var(--fg); }
.foot .tagline { margin: 16px 0 10px; font-weight: 620; font-stretch: 108%; }
.foot .notice { max-width: 40ch; color: var(--fg-2); font-size: 14px; margin: 0; }
.foot .legal { position: relative; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; padding-top: 22px; padding-bottom: 32px; color: var(--fg-2); font-size: 14px; }
.foot .legal .ver { font-size: 12.5px; margin-right: auto; }
.foot .legal .lang { margin-left: auto; }
.foot .legal .rights { flex-basis: auto; }

.foot .legal::before { content: ""; position: absolute; top: 0; left: var(--pad); right: var(--pad); height: 1px; background: var(--rule); }

/* ---------- cookies (GDPR): equal choices, animated in ---------- */
.cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 520px; margin-left: auto; background: var(--slate); color: var(--paper); border: 1px solid var(--line-d); border-radius: var(--r14); padding: 20px 20px 18px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .3s var(--ease), transform .5s var(--ease), visibility 0s linear .5s; visibility: hidden; }
.cookies.show { opacity: 1; transform: none; visibility: visible; transition: opacity .3s var(--ease), transform .5s var(--ease); }
.cookies h2 { font-size: 18px; font-stretch: 108%; margin-bottom: 8px; }
.cookies p { font-size: 14.5px; color: var(--ink-d2); margin: 0 0 14px; }
.cookies p a { color: var(--paper); }
.cookies .acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cookies .acts .btn { min-height: 44px; padding: 0 10px; font-size: 14.5px; }
.cookies .acts .btn-c { background: var(--slate-2); color: var(--paper); border-color: var(--line-d); }
.cookies .acts .btn-c:hover { border-color: var(--ink-d2); }
.cookies .acts [data-ck="accept"] { background: var(--amber); color: var(--graphite); border-color: transparent; }
.cookies .prefs { display: none; margin: 4px 0 14px; border-top: 1px solid var(--line-d); }
.cookies.custom .prefs { display: block; animation: rise .4s var(--ease); }
.cookies .prefs label { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-d); font-size: 15px; cursor: pointer; }
.cookies .prefs small { display: block; color: var(--ink-d2); font-size: 13px; }
.cookies .prefs input { width: 20px; height: 20px; flex: none; }

/* ---------- reveal on scroll ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.rv.d2 { transition-delay: .12s; }
.rv.in { opacity: 1; transform: none; }
.plat.rv, .rel.rv, .posts li.rv, .bom li.rv { transition-delay: calc(var(--i, 0) * 70ms); }

/* ---------- page transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .18s var(--ease-io) forwards; }
::view-transition-new(root) { animation: vt-in .4s var(--ease) forwards; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
html.leaving main, html.leaving .foot { opacity: 0; transform: translateY(-8px); transition: opacity .18s var(--ease-io), transform .18s var(--ease-io); }
main, .foot { transition: opacity .18s, transform .18s; }

/* parallax layers move with transform only */
[data-parallax] { will-change: transform; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .rv, .hero-copy > *, .stage, .page-head > .wrap > *, .docs-fan .pg { opacity: 1; transform: none; }
  .top { transform: none; }
  .cote-row .cote i, .btn .trace path, .cta-band .cta-bg .line, .sec h2::before, .convert h2::before { stroke-dashoffset: 0; transform: none; opacity: 1; }
  [data-parallax] { transform: none !important; will-change: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav { position: fixed; left: 0; right: 0; top: var(--h, var(--hdr)); z-index: 45; flex-direction: column; gap: 0; margin: 0; padding: 10px var(--pad) 22px; background: var(--graphite); border-bottom: 1px solid var(--line-d); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .25s var(--ease), transform .4s var(--ease), visibility 0s linear .4s; max-height: calc(100dvh - var(--h, var(--hdr))); overflow: auto; }
  .nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .4s var(--ease); }
  .nav a { padding: 15px 4px; font-size: 18px; border-bottom: 1px solid rgba(245, 243, 238, .08); color: var(--paper); opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .5s var(--ease); }
  .nav.open a { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 40ms + 60ms); }
  .nav a span::after { display: none; }
  .nav a[aria-current="page"] { color: var(--amber); }
  .menu-btn { display: inline-flex; }
  .nav .nav-cta { display: inline-flex !important; margin-top: 18px; width: 100%; border-bottom: 0; color: var(--graphite); font-size: 17px; }
  .nav .nav-cta span::after { display: none; }
}
@media (max-width: 1020px) {
  .hero .wrap, .split, .devices, .article-grid, .calc { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { padding-top: clamp(36px, 6vw, 64px); }
  .stage { max-width: 640px; margin: 0 auto; }
  .convert { height: auto; }
  .convert .pin { position: static; height: auto; grid-template-columns: minmax(0, 1fr); padding-top: clamp(64px, 8vw, 96px); padding-bottom: clamp(64px, 8vw, 96px); }
  .aside { position: static; }
  .plans-grid { grid-template-columns: 1fr; }
  .plan { border-left: 0; border-top: 1px solid var(--rule); }
  .plan:first-child { border-top: 0; }
  .plat-body { grid-template-columns: 1fr; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --hdr: 64px; }
  body { font-size: 16.5px; }
  .top .cta { display: none; }
  .brand .name { font-size: 19px; }
  .btn { padding: 10px 18px; white-space: normal; text-align: center; }
  .top .btn, .lang > button { padding-top: 0; padding-bottom: 0; }
  .hero .ctas .btn { flex: 1 1 auto; }
  .posts { grid-template-columns: 1fr; }
  .index a { grid-template-columns: minmax(0, 1fr) 24px; }
  .index a span { grid-column: 1; }
  .index a svg { grid-row: 1 / span 2; grid-column: 2; }
  .doclist { columns: 1; }
  .docs-fan .pg { width: 72px; margin-left: -22px; padding: 6px; }
  .docs-fan .pg small { display: none; }
  .cookies { left: 12px; right: 12px; bottom: 12px; padding: 16px 16px 14px; }
  .cookies p { font-size: 14px; margin-bottom: 12px; }
  .cookies .acts { grid-template-columns: 1fr; }
  .cookies .acts .btn { font-size: 15px; }
  .sheet .cart { grid-template-columns: 1fr 1fr; }
  .sheet .cart div:nth-child(n+3) { display: none; }
  .plans .cart div:nth-child(n+3) { display: none; }
  .loads .ld { grid-template-columns: minmax(0, 1fr) 84px 40px; }
  .loads .ld .q { display: none; }
  .foot .cols { grid-template-columns: 1fr; gap: 26px; padding-top: 48px; }
  .foot .legal { flex-direction: column; align-items: flex-start; }
  .foot .legal .ver, .foot .legal .lang { margin: 0; }
  .calc form, .calc .out { padding: 20px 16px; }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .out .big { font-size: 38px; }
  .plat.for-you { margin: 0 calc(-1 * var(--pad)); }
  .plat-act .btn { white-space: normal; text-align: left; min-height: 52px; padding: 10px 16px; }
  .rules li { flex-direction: column; gap: 2px; }
  .legend-strip { gap: 6px 14px; }
  .lang ul { min-width: 200px; }
  .cta-band .wrap .btn { width: 100%; }
}
@media (max-width: 360px) {
  .brand .name { display: none; }
  .hero .ctas .btn { width: 100%; }
}
/* overflow guards (tested at 320/375/390/430/1024 px) */
.split > *, .hero .wrap > *, .devices > *, .article-grid > *, .calc > *, .convert .pin > *, .plat-body > *, .plans-grid > * { min-width: 0; }
:where(.wrap > *) { max-width: 100%; }
