@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-display: swap; src: url("../fonts/PlusJakartaSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 500; font-display: swap; src: url("../fonts/PlusJakartaSans-Medium.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-display: swap; src: url("../fonts/PlusJakartaSans-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url("../fonts/PlusJakartaSans-Bold.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-display: swap; src: url("../fonts/PlusJakartaSans-ExtraBold.woff2") format("woff2"); }

/* Bergerio site. Flat page, hairline rules, big type; the real screens carry the colour.
   Orange is used for the one action and the one state that matters. Tokens are the app's. */

:root {
  --bg: #f7f7f9; --surface: #fff; --inset: #f0f0f4; --edge: #e4e3ea;
  --ink: #1c1c21; --slate: #6d6d79;
  --orange: #e2763a; --orange-text: #b4531c; --tint: #fdeee3;
  --green: #1a7f45; --amber: #8f5300; --red: #bd3326;
  --shadow: 0 40px 80px -30px rgba(28, 28, 33, .35), 0 12px 24px -12px rgba(28, 28, 33, .18);
  --ease: cubic-bezier(.23, 1, .32, 1);
  --std: cubic-bezier(.4, 0, .2, 1);
  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121214; --surface: #1c1c21; --inset: #202026; --edge: #2c2c33; --ink: #f4f4f6; --slate: #9a9aa6;
    --orange-text: #f5a25d; --tint: #3a2c22; --green: #34c759; --amber: #ffc24d; --red: #ff7a6e;
    --shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 12px 24px -12px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121214; --surface: #1c1c21; --inset: #202026; --edge: #2c2c33; --ink: #f4f4f6; --slate: #9a9aa6;
  --orange-text: #f5a25d; --tint: #3a2c22; --green: #34c759; --amber: #ffc24d; --red: #ff7a6e;
  --shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 12px 24px -12px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; transition: background-color .3s var(--std), color .3s var(--std); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 60; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 12px; }
.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* icons */
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.f { fill: none; }
.tile { justify-self: start; display: inline-grid; place-items: center; color: var(--orange-text); flex: none; }
.tile .ic { width: 24px; height: 24px; }

/* type */
h1 { font-size: clamp(42px, 6.2vw, 92px); line-height: 1; letter-spacing: -.045em; font-weight: 800; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -.04em; font-weight: 800; text-wrap: balance; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.015em; font-weight: 700; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--slate); max-width: 34em; text-wrap: pretty; }
.small { font-size: 14px; color: var(--slate); }

/* status: a dot and a word, nothing boxed */
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; line-height: 1.3; color: var(--slate); }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.chip:has(.ic)::before { display: none; }
.chip .ic { width: 16px; height: 16px; stroke-width: 2; }
.chip.ok { color: var(--green); } .chip.warn { color: var(--amber); } .chip.bad { color: var(--red); } .chip.acc { color: var(--orange-text); }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; flex: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px; background: #d9622a; color: #fff; font-size: 16px; font-weight: 700; white-space: nowrap; border: 1px solid transparent; transition: transform .16s var(--ease), background-color .2s var(--std), border-color .2s var(--std), color .2s var(--std); }
.btn:active { transform: scale(.97); }
.btn .ic { width: 18px; height: 18px; stroke-width: 2; transition: transform .2s var(--ease); }
.btn.alt { background: transparent; color: var(--ink); border-color: var(--edge); }
.btn.sm { min-height: 40px; padding: 0 20px; font-size: 14px; }
.btn.ink { background: #1c1c21; color: #fff; }
.panel-o .btn.ink { background: #fff; color: #b4531c; }
.btn[disabled] { opacity: .6; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #c9561f; }
  .btn.alt:hover { background: transparent; border-color: var(--ink); }
  .btn.ink:hover { background: #000; }
  .btn:hover .ic.go { transform: translateX(3px); }
}

/* ---------- top bar ---------- */
.bar { position: fixed; inset: 0 0 auto; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid transparent; transition: border-color .25s var(--std); }
.bar.scrolled { border-bottom-color: var(--edge); }
.bar .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--orange); transform-origin: 0 50%; transform: scaleX(0); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.03em; }
.logo svg { width: 32px; height: 32px; }
.nav-pill { position: relative; display: flex; gap: 4px; margin: 0 auto; }
.nav-pill a { padding: 10px 14px; font-size: 14.5px; font-weight: 600; color: var(--slate); transition: color .2s var(--std); position: relative; z-index: 1; }
.nav-pill a.on { color: var(--ink); }
.ind { position: absolute; left: 0; bottom: 4px; height: 2px; width: 0; background: var(--orange); border-radius: 2px; pointer-events: none; opacity: 0; transition: transform .35s var(--ease), width .35s var(--ease), opacity .2s var(--std); }
.has-ind > .ind { opacity: 1; }
.tabs .ind { display: none; }
.bar-end { display: flex; align-items: center; gap: 8px; }
.theme { display: inline-flex; align-items: center; padding: 3px; border: 1px solid var(--edge); border-radius: 999px; }
.theme button { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 999px; color: var(--slate); transition: color .2s var(--std), transform .16s var(--ease); }
.theme button .ic { width: 18px; height: 18px; }
.theme button:active { transform: scale(.92); }
.theme button[aria-pressed="true"] { color: var(--orange-text); }
.lang { height: 40px; min-width: 40px; padding: 0 8px; border-radius: 12px; font-size: 13px; font-weight: 700; color: var(--slate); display: grid; place-items: center; transition: color .2s var(--std); }
.lang:hover { color: var(--ink); }
.menu { display: none; width: 40px; height: 40px; border-radius: 12px; place-items: center; }
.menu .ic { stroke: var(--ink); }
.sheet { position: fixed; inset: 68px 0 0; z-index: 39; background: var(--bg); padding: 12px var(--gutter); display: grid; align-content: start; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s var(--std), transform .2s var(--ease), visibility 0s .2s; }
.menu-open .sheet { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.sheet a { padding: 18px 2px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.sheet a + a { border-top: 1px solid var(--edge); }

/* section rail: where you are, and a way to jump */
.rail { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 30; display: none; gap: 2px; }
.rail a { position: relative; display: grid; place-items: center; width: 24px; height: 24px; }
.rail a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--edge); transition: background-color .2s var(--std), transform .25s var(--ease); }
.rail a.on::before { background: var(--orange); transform: scale(1.5); }
.rail a span { position: absolute; right: 30px; padding: 5px 10px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 600; white-space: nowrap; opacity: 0; transform: translateX(6px); pointer-events: none; transition: opacity .15s var(--std), transform .2s var(--ease); }
@media (hover: hover) and (pointer: fine) { .rail a:hover span { opacity: 1; transform: none; } .rail a:hover::before { background: var(--slate); } }
@media (min-width: 1360px) { .rail { display: grid; } }

/* ---------- reveal ---------- */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { padding: 132px 0 0; position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); justify-items: center; }
.hero-copy { display: grid; gap: 26px; justify-items: center; text-align: center; max-width: 920px; }
.hero-copy .lead { margin-inline: auto; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.scene { position: relative; perspective: 2000px; perspective-origin: 50% 30%; aspect-ratio: 1.72; width: min(1100px, 100%); }
.scene-tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(8deg) rotateY(-6deg); will-change: transform; }
.layer { position: absolute; transform-style: preserve-3d; }
.layer img { width: 100%; border-radius: 14px; border: 1px solid var(--edge); box-shadow: var(--shadow); background: var(--surface); }
.layer.back { left: 4%; top: 4%; width: 78%; }
.layer.phone { right: 5%; bottom: -2%; width: 19%; transform: translateZ(110px); }
.layer.phone img { border-radius: 26px; }
.layer.note { left: 1%; bottom: 16%; transform: translateZ(170px); }
.layer.note .chip { padding: 11px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--edge); box-shadow: var(--shadow); font-size: 14px; color: var(--green); }

.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--edge); }
.figures > div { display: grid; gap: 6px; align-content: start; padding: 26px 24px 0 0; }
.figures > div + div { border-left: 1px solid var(--edge); padding-left: 24px; }
.figures dt { font-size: 14px; color: var(--slate); font-weight: 500; }
.figures .num { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.figures .num small { font-size: 15px; letter-spacing: 0; font-weight: 700; color: var(--slate); }

/* ---------- sections ---------- */
.sec { padding: clamp(88px, 11vw, 150px) 0 0; }
.head { display: grid; gap: 18px; justify-items: center; text-align: center; max-width: 820px; margin: 0 auto clamp(40px, 6vw, 72px); }
.head .lead { margin-inline: auto; }

/* why: old way, new way */
.swap { display: grid; grid-template-columns: auto minmax(0, 5fr) auto minmax(0, 7fr); gap: 22px; align-items: center; padding: 26px 0; }
.swap + .swap { border-top: 1px solid var(--edge); }
.swap .was { color: var(--slate); }
.swap .arr { color: var(--slate); display: grid; }
.swap .arr .ic { width: 18px; height: 18px; stroke-width: 2; }
.swap .now b { display: block; font-size: clamp(18px, 1.7vw, 22px); font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }

/* product */
.panel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.prod-left { min-width: 0; }
.tabs { display: grid; }
.tab { position: relative; display: flex; align-items: center; gap: 14px; padding: 15px 0; min-height: 52px; font-size: 18px; font-weight: 700; letter-spacing: -.02em; color: var(--slate); transition: color .2s var(--std), padding-left .3s var(--ease); }
.tab + .tab { border-top: 1px solid var(--edge); }
.tab::before { content: ""; position: absolute; left: 0; top: 50%; margin-top: -3.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); transform: scale(0); transition: transform .25s var(--ease); }
.tab[aria-selected="true"] { color: var(--ink); padding-left: 21px; }
.tab[aria-selected="true"]::before { transform: none; }
@media (hover: hover) and (pointer: fine) { .tab:hover { color: var(--ink); } }
.txt { margin-top: 20px; }
.txt .tile, .txt h3, .txt .chips { display: none; }
.txt p { color: var(--slate); font-size: 16.5px; max-width: 28em; min-height: 5.2em; }
.stack { position: relative; aspect-ratio: 1400 / 900; perspective: 1600px; }
.stack img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 14px; border: 1px solid var(--edge); box-shadow: var(--shadow); background: var(--surface); opacity: 0; pointer-events: none; transition: opacity .2s var(--std); }
.stack img.on { opacity: 1; }

/* offline: the app's attendance screen */
.off { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.off-copy { display: grid; gap: 24px; justify-items: start; }
.ticks { display: grid; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; }
.ticks li + li { border-top: 1px solid var(--edge); }
.ticks .ic { stroke: var(--green); stroke-width: 2.2; width: 20px; height: 20px; margin-top: 3px; }
.try { color: var(--slate); font-size: 15px; max-width: 30em; }
.app { position: relative; display: grid; gap: 16px; padding: 22px; background: var(--surface); border: 1px solid var(--edge); border-radius: 28px; box-shadow: var(--shadow); transform-style: preserve-3d; max-width: 560px; justify-self: end; width: 100%; }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.app-top h3 { display: flex; align-items: center; gap: 12px; font-size: 20px; }
.sig { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--slate); }
.sw { width: 46px; height: 28px; border-radius: 999px; background: var(--green); position: relative; transition: background-color .25s var(--std); flex: none; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .25); transition: transform .3s var(--ease); transform: translateX(18px); }
.sw[aria-checked="false"] { background: #8d8d99; }
.sw[aria-checked="false"]::after { transform: none; }
.counters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--edge); }
.counter { padding: 14px 6px 14px 12px; display: grid; gap: 8px; justify-items: start; }
.counter + .counter { border-left: 1px solid var(--edge); }
.counter .lbl { font-size: 12.5px; color: var(--slate); font-weight: 500; }
.counter .val { font-size: 32px; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.step { display: flex; gap: 6px; }
.step button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--edge); display: grid; place-items: center; transition: transform .16s var(--ease), border-color .2s var(--std); }
.step button:active { transform: scale(.9); }
.step .pl { border-color: var(--orange); color: var(--orange-text); }
.step .ic { width: 16px; height: 16px; stroke-width: 2; }
.sum { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.ring { position: relative; width: 112px; height: 112px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.ring .bg { stroke: var(--edge); }
.ring .fg { stroke: var(--orange); transition: stroke-dashoffset .4s var(--ease); }
.ring div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring b { font-size: 28px; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.ring small { font-size: 11px; color: var(--slate); }
.sum dl { display: grid; font-size: 14px; }
.sum dl div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; }
.sum dl div + div { border-top: 1px solid var(--edge); }
.sum dt { color: var(--slate); }
.sum dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.app .btn { width: 100%; }
.toast { position: absolute; left: 50%; bottom: 84px; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; white-space: nowrap; transition: opacity .2s var(--std), transform .3s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* roles: four columns divided by rules */
.roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--edge); }
.role { display: grid; gap: 18px; align-content: start; padding: 30px 26px 0 0; }
.role + .role { border-left: 1px solid var(--edge); padding-left: 26px; }
.role h3 { font-size: 24px; letter-spacing: -.035em; }
.role h4 { font-size: 13px; font-weight: 700; color: var(--slate); margin-bottom: 8px; }
.role ul { display: grid; gap: 10px; font-size: 15px; }
.role ul li { display: flex; gap: 10px; align-items: flex-start; }
.role ul .ic { width: 18px; height: 18px; stroke: var(--green); stroke-width: 2.2; margin-top: 2px; }
.role .no .ic { stroke: var(--slate); stroke-width: 1.8; }
.role .no { padding-top: 14px; border-top: 1px solid var(--edge); }

/* network */
.net { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.tree { perspective: 1400px; }
.tree svg { width: 100%; height: auto; display: block; overflow: visible; transform-origin: 50% 100%; }
.tree .ln { fill: none; stroke: var(--edge); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease); }
.tree .ln.hot { stroke: var(--orange); }
.tree.in .ln { stroke-dashoffset: 0; }
.tree .nd rect.b { fill: var(--surface); stroke: var(--edge); stroke-width: 1.5; }
.tree .nd.hot rect.b { stroke: var(--orange); stroke-width: 2; }
.tree .nd rect.i { fill: var(--orange); }
.tree .nd .g { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tree .nd text { fill: var(--ink); font: 700 14px var(--sans); }
.tree .nd text.s { fill: var(--slate); font: 500 12px var(--sans); }
.tree .tg.ok rect { fill: none; stroke: none; } .tree .tg.ok text { fill: var(--green); }
.tree .tg.bad rect { fill: var(--bg); stroke: var(--red); } .tree .tg.bad text { fill: var(--red); }
.tree .tg text { font: 700 11px var(--sans); }
.tree .nd, .tree .tg { opacity: 0; transition: opacity .5s var(--ease); transition-delay: calc(var(--k, 0) * 100ms + .3s); }
.tree.in .nd, .tree.in .tg { opacity: 1; }
.org { display: grid; gap: 14px; align-content: start; }
.org h3 { font-size: 24px; letter-spacing: -.035em; }
.org .vals { display: grid; margin: 6px 0; }
.org .vals div { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; font-size: 15px; }
.org .vals div + div { border-top: 1px solid var(--edge); }
.org .vals dt { color: var(--slate); }

/* trust */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); }
.tr { display: grid; gap: 8px; align-content: start; padding: 28px 0 36px; border-top: 1px solid var(--edge); }
.tr .tile { margin-bottom: 10px; justify-self: start; }
.tr h3 { font-size: 20px; letter-spacing: -.025em; }
.tr p { font-size: 15.5px; color: var(--slate); max-width: 30em; }

/* get */
.get-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.plats h3 { margin-bottom: 8px; font-size: 24px; letter-spacing: -.035em; }
.plat { display: flex; align-items: center; gap: 16px; padding: 18px 0; }
.plat + .plat, .plats h3 + .plat { border-top: 1px solid var(--edge); }
.plat .t { min-width: 0; flex: 1; }
.plat b { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 700; flex-wrap: wrap; }
.plat span.d { font-size: 14px; color: var(--slate); display: block; line-height: 1.4; }
.plat .you { font-size: 12.5px; }
.plat .you[hidden] { display: none; }
.plat a.go { font-size: 14px; font-weight: 700; color: var(--orange-text); white-space: nowrap; border-bottom: 1px solid transparent; transition: border-color .2s var(--std); }
.plat a.go:hover { border-bottom-color: currentColor; }
.fields { display: grid; gap: 22px; }
.fields h3 { font-size: 28px; letter-spacing: -.04em; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.row2:has(.pick[data-single]) { grid-template-columns: 1fr; }
.fld { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.fld input { width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--edge); border-radius: 12px; background: var(--surface); color: var(--ink); font: 400 16px var(--sans); transition: border-color .2s var(--std); }
.fld input:focus { outline: 0; border-color: var(--orange); }
.fld input::placeholder { color: var(--slate); opacity: .7; }
.pick { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.pick button { position: relative; display: inline-flex; align-items: center; gap: 9px; min-height: 40px; font-size: 15px; font-weight: 600; color: var(--slate); transition: color .2s var(--std), transform .16s var(--ease); }
.pick button::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--edge); background: radial-gradient(circle, var(--orange) 0 4px, transparent 4.5px) no-repeat center / 0 0; transition: border-color .2s var(--std), background-size .2s var(--ease); flex: none; }
.pick[data-multi] button::before { border-radius: 5px; }
.pick button:active { transform: scale(.97); }
.pick button[aria-pressed="true"] { color: var(--ink); }
.pick button[aria-pressed="true"]::before { border-color: var(--orange); background-size: 100% 100%; }
.pick[data-multi] button[aria-pressed="true"]::before { background: var(--orange) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m3.5 8.5 3 3 6-6.5'/></svg>") center / 100% 100% no-repeat; }
.err { color: var(--red); font-size: 14px; font-weight: 600; }
.sent .fields { display: none; }
.done { display: none; gap: 14px; justify-items: start; padding: 8px 0; }
.sent .done { display: grid; animation: rise .45s var(--ease) both; }
.done .big { color: var(--green); }
.done .big .ic { width: 40px; height: 40px; stroke-width: 2; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* faq */
.faq { max-width: 900px; margin-inline: auto; }
.q + .q { border-top: 1px solid var(--edge); }
.q > button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: clamp(17px, 1.6vw, 20px); font-weight: 700; letter-spacing: -.02em; min-height: 64px; }
.q .ic { width: 20px; height: 20px; stroke-width: 2; transition: transform .3s var(--ease); }
.q[data-open] .ic { transform: rotate(180deg); }
.q .ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.q[data-open] .ans { grid-template-rows: 1fr; }
.q .ans > div { overflow: hidden; }
.q .ans p { padding: 0 0 24px; color: var(--slate); max-width: 44em; }

/* closer: one solid orange panel, dark type */
.closer { margin-top: clamp(88px, 11vw, 150px); }
.panel-o { position: relative; border-radius: 28px; background: #d9622a; color: #fff; padding: clamp(36px, 7vw, 96px); display: grid; gap: 26px; justify-items: start; overflow: hidden; isolation: isolate; }
.panel-o .word { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.panel-o .word svg { width: 40px; height: 40px; }
.panel-o h2 { max-width: 11em; font-size: clamp(40px, 6.6vw, 88px); }
.panel-o p { max-width: 28em; font-size: 19px; color: #fff; }
.panel-o .bgmark { position: absolute; right: -3%; bottom: -34%; width: min(40%, 440px); aspect-ratio: 1; z-index: -1; opacity: .2; will-change: transform; }
.panel-o .bgmark svg { width: 100%; height: 100%; }
.foot { padding: 56px 0 56px; font-size: 14px; color: var(--slate); }
.foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot .logo { color: var(--ink); }
.foot a:hover { color: var(--ink); }

/* plain pages */
.page { padding: 150px 0 100px; }
.page .wrap { width: min(720px, 100% - 2 * var(--gutter)); display: grid; gap: 20px; }
.page .card { display: grid; gap: 18px; }
.page h1 { font-size: clamp(36px, 5vw, 56px); }
.page h2 { font-size: 22px; margin-top: 8px; letter-spacing: -.02em; }
.page p, .page li { color: var(--slate); }
.page ul { padding-left: 20px; display: grid; gap: 8px; list-style: disc; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .nav-pill { display: none; }
  .menu { display: grid; }
  .bar .wrap { justify-content: space-between; }
  .bar-end { margin-left: auto; }
  .hero-grid, .off, .net, .get-grid, .panel { grid-template-columns: minmax(0, 1fr); }
  .scene { margin-right: 0; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .figures > div:nth-child(n+3) { margin-top: 26px; border-top: 1px solid var(--edge); }
  .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role:nth-child(3) { border-left: 0; padding-left: 0; }
  .role:nth-child(n+3) { margin-top: 30px; border-top: 1px solid var(--edge); }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .swap { grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; }
  .swap .arr { display: none; }
  .swap .now { grid-column: 2; }
  .tabs { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { white-space: nowrap; padding: 12px 0; font-size: 16px; border-bottom: 2px solid transparent; }
  .tab + .tab { border-top: 0; }
  .tab::before { display: none; }
  .tab[aria-selected="true"] { padding-left: 0; border-bottom-color: var(--orange); }
  .app { justify-self: stretch; max-width: none; }
}
@media (max-width: 640px) {
  .hero { padding-top: 108px; }
  .bar .btn { display: none; }
  .roles, .trust, .row2 { grid-template-columns: 1fr; }
  .role, .role + .role { border-left: 0; padding-left: 0; margin-top: 0; border-top: 1px solid var(--edge); padding-block: 26px; }
  .role:first-child { border-top: 1px solid var(--edge); }
  .layer.note { display: none; }
  .counters { grid-template-columns: 1fr 1fr; }
  .counter:nth-child(3) { border-left: 0; }
  .counter:nth-child(n+3) { border-top: 1px solid var(--edge); }
  .sum { grid-template-columns: 1fr; justify-items: center; }
  .sum dl { width: 100%; }
  .plat { flex-wrap: wrap; }
  .toast { white-space: normal; width: max-content; max-width: 86%; text-align: center; }
  .theme button { width: 30px; }
}

/* ---------- motion (only when the visitor has not asked for less) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
  .js h1 .wi { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease); transition-delay: calc(var(--w) * 70ms + .1s); }
  .js h1.on .wi { transform: none; }

  /* hero scene: the three layers arrive from different depths */
  .js .layer { opacity: 0; transition: opacity .8s var(--ease), transform 1.1s var(--ease); }
  .js .layer.back { transform: translateZ(-120px) translateY(40px); }
  .js .layer.phone { transform: translateZ(10px) translateY(60px); }
  .js .layer.note { transform: translateZ(40px) translateY(30px); transition-delay: .5s; }
  .js .scene.in .layer { opacity: 1; }
  .js .scene.in .layer.back { transform: translateZ(0); }
  .js .scene.in .layer.phone { transform: translateZ(110px); transition-delay: .25s; }
  .js .scene.in .layer.note { transform: translateZ(170px); }
  .js .scene.in .synced .ic { animation: turn .9s var(--ease) .9s both; }
  @keyframes turn { from { transform: rotate(-200deg); } to { transform: none; } }

  .js .swap { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .js .swap.in { opacity: 1; transform: none; }
  .js .swap .now, .js .swap .arr { opacity: 0; transform: translateX(-10px); transition: opacity .5s var(--ease) .65s, transform .5s var(--ease) .65s; }
  .js .swap.in .now, .js .swap.in .arr { opacity: 1; transform: none; }

  .stack img { transform: scale(1.02); transition: opacity .3s var(--std), transform .5s var(--ease); }
  .stack img.on { transform: none; }
  .txt.swapin p { animation: slide .4s var(--ease) both; }
  @keyframes slide { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
  .counter .val.bump { animation: bump .26s var(--ease); }
  @keyframes bump { 40% { transform: scale(1.16); } }

  .tree.in .tg.bad rect { animation: late 1.8s var(--std) 3 1.6s; }
  @keyframes late { 0%, 100% { stroke-opacity: 1; } 50% { stroke-opacity: .2; } }

  .role, .tr { transition: opacity .6s var(--ease); }
  .js .tr.rv, .js .role.rv { transition: opacity .7s var(--ease), transform .7s var(--ease); }
  @media (hover: hover) and (pointer: fine) {
    .logo svg { transition: transform .4s var(--ease); }
    .logo:hover svg { transform: rotate(-8deg) scale(1.06); }
  }
  .js .panel-o .word svg { transform: scale(.6) rotate(-20deg); opacity: 0; transition: transform .8s cubic-bezier(.34, 1.56, .64, 1) .2s, opacity .4s var(--std) .2s; }
  .js .panel-o.in .word svg { transform: none; opacity: 1; }
  .sent .done .big { animation: popin .5s var(--ease) both; }
  @keyframes popin { from { opacity: 0; transform: scale(.85); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { transition: opacity .3s; transform: none; }
  .tree .ln { transition: none; stroke-dashoffset: 0; }
  .q .ans, .ring .fg, .sw::after, .toast { transition: none; }
  .progress { display: none; }
}

/* soft rounded bands, like a product launch page */
#product, #people, #trust { background: var(--inset); border-radius: 40px; margin: clamp(56px, 8vw, 104px) var(--gutter) 0; padding: clamp(56px, 7vw, 96px) 0; }
@media (max-width: 640px) { #product, #people, #trust { border-radius: 28px; margin-inline: 8px; } }
