/* Bergerio site, built from the app's own parts (apps/bergerio/mobile/lib/presentation/widget):
   frost page, white 24px cards with a hairline, inset 18px panels, 16px capsule rows,
   14px orange buttons, pill chips and tabs, duotone icon tiles, the top bar with its orange line.
   Tokens are the app's (app_colors.dart); the dark palette is the app's night. */

@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"); }

:root {
  --bg: #f7f7f9; --surface: #fff; --inset: #f2f2f6; --edge: #ecebf0;
  --ink: #1c1c21; --slate: #7a7a86;
  --orange: #e2763a; --orange-text: #b4531c; --tint: #fdeee3; --glyph-fill: #fce4d4;
  --green: #1a7f45; --green-tint: #e4f2ea; --amber: #8f5300; --amber-tint: #fef5e5; --red: #bd3326; --red-tint: #fbf2ef; --blue: #0a7ae0;
  --card-shadow: 0 4px 12px -6px rgba(28, 28, 33, .06);
  --glow: 0 10px 24px -12px rgba(226, 118, 58, .6);
  --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 dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #121214; --surface: #1c1c21; --inset: #26262c; --edge: #2e2e35; --ink: #f4f4f6; --slate: #9a9aa6; --orange-text: #f5a25d; --tint: #3a2c22; --glyph-fill: #3e3026; --green: #34c759; --green-tint: #17301f; --amber: #ffc24d; --amber-tint: #33290f; --red: #ff7a6e; --red-tint: #35201d; --card-shadow: none; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -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: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ol, ul, 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: 2px; border-radius: 10px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 60; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 14px; }
.skip:focus { left: 12px; }
.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.tnum { font-variant-numeric: tabular-nums; }

/* icons: duotone like the app's drawn glyphs */
.ic { width: 24px; height: 24px; fill: none; stroke: var(--orange-text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.f { fill: var(--glyph-fill); }
.tile { width: 44px; height: 44px; border-radius: 14px; background: var(--tint); display: grid; place-items: center; flex: none; }
.tile.sm { width: 36px; height: 36px; border-radius: 12px; }
.tile.sm .ic { width: 20px; height: 20px; }

/* type scale: display 800 tight, titles 600/700, body slate */
h1 { font-size: clamp(42px, 6.4vw, 80px); line-height: 1.02; letter-spacing: -.045em; font-weight: 800; text-wrap: balance; }
h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.08; letter-spacing: -.038em; font-weight: 800; text-wrap: balance; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -.015em; font-weight: 700; }
.lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--slate); max-width: 34em; text-wrap: pretty; }
.small { font-size: 13px; color: var(--slate); }

/* ---------- the app's parts ---------- */
.card { background: var(--surface); border: 1px solid var(--edge); border-radius: 24px; box-shadow: var(--card-shadow); }
.inset { background: var(--inset); border-radius: 18px; }
.cap { display: flex; align-items: center; gap: 12px; background: var(--inset); border-radius: 16px; padding: 10px 14px; min-height: 52px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 18px; white-space: nowrap; background: var(--inset); color: var(--slate); }
.chip.ok { background: var(--green-tint); color: var(--green); }
.chip.warn { background: var(--amber-tint); color: var(--amber); }
.chip.bad { background: var(--red-tint); color: var(--red); }
.chip.acc { background: var(--tint); color: var(--orange-text); }
.chip .ic { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; }
.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: 48px; padding: 0 22px; border-radius: 14px; background: var(--orange); color: #fff; font-size: 15px; font-weight: 600; box-shadow: var(--glow); white-space: nowrap; transition: transform .16s var(--std), box-shadow .25s var(--std), background-color .25s var(--std), border-color .25s var(--std); border: 1px solid transparent; }
.btn:active { transform: scale(.97); }
.btn .ic { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; transition: transform .25s var(--std); }
.btn.alt { background: var(--surface); color: var(--ink); border-color: var(--edge); box-shadow: none; }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn.white { background: #fff; color: var(--ink); box-shadow: 0 10px 24px -12px rgba(60, 20, 0, .5); }
.btn[disabled] { opacity: .6; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { box-shadow: 0 14px 28px -12px rgba(226, 118, 58, .75); }
  .btn:hover .ic.go { transform: translateX(3px); }
  .btn.alt:hover { border-color: var(--orange); box-shadow: none; }
  .nav-pill a:hover { color: var(--ink); }
}

/* ---------- top bar ---------- */
.bar { position: fixed; inset: 0 0 auto; z-index: 40; background: var(--surface); border-bottom: 4px solid var(--orange); border-radius: 0 0 28px 28px; box-shadow: 0 12px 26px -16px rgba(28, 28, 33, .25); }
.bar .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.logo svg { width: 32px; height: 32px; }
.nav-pill { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--inset); margin: 0 auto; }
.nav-pill a { padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--slate); transition: background-color .25s var(--std), color .25s var(--std); }
.nav-pill a.on { background: var(--orange); color: #fff; }
.bar-end { display: flex; align-items: center; gap: 10px; }
.lang { width: 40px; height: 40px; border-radius: 50%; background: var(--inset); font-size: 12px; font-weight: 700; display: grid; place-items: center; transition: transform .16s var(--std); }
.lang:active { transform: scale(.94); }
.menu { display: none; width: 40px; height: 40px; border-radius: 50%; background: var(--inset); place-items: center; }
.menu .ic { stroke: var(--ink); }
.sheet { position: fixed; inset: 68px 0 0; z-index: 39; background: var(--bg); padding: 20px var(--gutter); display: grid; align-content: start; gap: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s var(--std), transform .2s var(--std), visibility 0s .2s; }
.menu-open .sheet { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.sheet a { padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--edge); font-size: 18px; font-weight: 700; }

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

/* indicators that slide between items (nav pill, product tabs) */
.nav-pill, .tabs { position: relative; }
.ind { position: absolute; left: 0; top: 4px; bottom: 4px; width: 0; border-radius: 999px; pointer-events: none; opacity: 0; transition: transform .38s var(--ease), width .38s var(--ease), opacity .2s var(--std); }
.has-ind > .ind { opacity: 1; }
.nav-pill .ind { background: var(--orange); }
.tabs .ind { background: var(--surface); box-shadow: 0 1px 3px rgba(28, 28, 33, .1); }
.has-ind > a.on { background: transparent; color: #fff; }
.has-ind > .tab[aria-selected="true"] { background: transparent; box-shadow: none; }
.nav-pill a, .tab { position: relative; z-index: 1; }
.try { color: var(--slate); font-size: 15px; max-width: 30em; }
.bar { transition: box-shadow .3s var(--std); }
.bar:not(.scrolled) { box-shadow: 0 8px 18px -16px rgba(28, 28, 33, .12); }

/* ---------- hero ---------- */
.hero { padding: 132px 0 0; position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.dash { display: grid; gap: 14px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { position: relative; padding: 22px 18px 16px; display: grid; gap: 2px; align-content: start; overflow: hidden; }
.stat::before { content: ""; position: absolute; top: 0; left: 18%; right: 18%; height: 4px; border-radius: 0 0 4px 4px; background: var(--bar); }
.stat .tile { margin-bottom: 8px; }
.stat .lbl { font-size: 12px; color: var(--slate); font-weight: 500; }
.stat .num { font-size: 28px; line-height: 1.1; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat .num small { font-size: 14px; letter-spacing: -.01em; font-weight: 700; }
.stat .chip { justify-self: start; margin-top: 6px; }
.stat svg.spark { position: absolute; right: 10px; top: 18px; width: 86px; height: 32px; fill: none; stroke: var(--orange-text); stroke-width: 1.6; }
.requests { padding: 18px; display: grid; gap: 10px; }
.requests-head { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 15px; }
.cap b { font-size: 14px; font-weight: 700; display: block; line-height: 1.2; }
.cap small { font-size: 12px; color: var(--slate); }
.cap .end { margin-left: auto; color: var(--ink); }
.cap .end .ic { width: 18px; height: 18px; stroke: var(--ink); }
.synced { position: absolute; right: 0; top: -16px; z-index: 2; box-shadow: 0 8px 20px -10px rgba(28, 28, 33, .35); background: var(--green-tint); }
.dash-wrap { position: relative; }

.plate { margin-top: clamp(64px, 8vw, 104px); }
.frame { position: relative; padding: 10px; }
.frame img { width: 100%; border-radius: 16px; border: 1px solid var(--edge); }
.pin { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; box-shadow: 0 0 0 5px rgba(226, 118, 58, .25); }
.js .pin { opacity: 0; transform: scale(.6); transition: opacity .35s var(--ease), transform .35s var(--ease); transition-delay: calc(var(--i) * 120ms + .3s); }
.js .plate.in .pin { opacity: 1; transform: none; }
.legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.legend li { display: grid; gap: 2px; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--edge); font-size: 13.5px; color: var(--slate); }
.legend b { color: var(--ink); font-size: 15px; display: flex; align-items: center; gap: 10px; }
.legend b span { width: 22px; height: 22px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 12px; display: grid; place-items: center; }

/* ---------- sections ---------- */
.sec { padding: clamp(72px, 10vw, 128px) 0 0; }
.head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }

/* replaces */
.swaps { padding: 10px; display: grid; gap: 8px; }
.swap { display: grid; grid-template-columns: auto minmax(0, 5fr) auto minmax(0, 7fr); gap: 18px; align-items: center; background: var(--inset); border-radius: 16px; padding: 16px 20px; }
.swap .was { color: var(--slate); text-decoration: line-through; text-decoration-color: var(--orange); text-decoration-thickness: 1.5px; }
.swap .arr { width: 30px; height: 30px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; }
.swap .arr .ic { width: 16px; height: 16px; stroke: var(--orange-text); stroke-width: 2; }
.swap .now b { display: block; font-size: 18px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
.swap .now small { color: var(--slate); font-size: 13.5px; }

/* product tabs */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--inset); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; margin-bottom: 20px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--slate); white-space: nowrap; transition: background-color .25s var(--std), color .25s var(--std), box-shadow .25s var(--std); min-height: 44px; }
.tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(28, 28, 33, .1); }
.panel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px; align-items: stretch; }
.panel .txt { padding: 28px; display: grid; gap: 14px; align-content: start; }
.panel .txt p { color: var(--slate); font-size: 16px; }
.panel .txt .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.stack { position: relative; aspect-ratio: 1400 / 900; padding: 0; overflow: hidden; }
.stack img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .2s ease-out; }
.stack img.on { opacity: 1; }

/* offline: the app's attendance screen */
.off { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.off-copy { display: grid; gap: 22px; justify-items: start; }
.ticks { display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .ic { stroke: var(--green); stroke-width: 2.2; width: 20px; height: 20px; margin-top: 3px; }
.app { padding: 18px; display: grid; gap: 14px; position: relative; }
.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: 10px; 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: #a7a7b2; }
.sw[aria-checked="false"]::after { transform: none; }
.counters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.counter { background: var(--surface); border: 1px solid var(--edge); border-radius: 18px; padding: 10px 10px 12px; display: grid; gap: 6px; justify-items: center; }
.counter .lbl { font-size: 12px; color: var(--slate); font-weight: 500; }
.counter .val { font-size: 30px; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.step { display: flex; gap: 8px; }
.step button { width: 36px; height: 36px; border-radius: 50%; background: var(--inset); display: grid; place-items: center; transition: transform .16s var(--std), background-color .2s var(--std); }
.step button.pl { background: var(--tint); }
.step button:active { transform: scale(.9); }
.step .ic { width: 16px; height: 16px; stroke: var(--ink); stroke-width: 2; }
.step .pl .ic { stroke: var(--orange); }
.sum { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 16px; }
.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-text); 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 { margin: 0; display: grid; gap: 6px; font-size: 14px; }
.sum dl div { display: flex; justify-content: space-between; gap: 10px; }
.sum dt { color: var(--slate); }
.sum dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.app .btn { width: 100%; }
.toast { position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-size: 14px; font-weight: 600; white-space: nowrap; transition: opacity .25s var(--std), transform .3s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* roles */
.roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.role { padding: 22px; display: grid; gap: 16px; align-content: start; }
.role h3 { font-size: 22px; letter-spacing: -.03em; }
.role h4 { font-size: 13px; font-weight: 700; color: var(--slate); margin-bottom: 8px; }
.role ul { display: grid; gap: 8px; font-size: 14.5px; }
.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 { background: var(--inset); border-radius: 16px; padding: 12px 14px; }
.role .no .ic { stroke: var(--slate); stroke-width: 1.8; }

/* network */
.net { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 14px; }
.tree { padding: 22px; }
.tree svg { width: 100%; height: auto; display: block; overflow: visible; }
.tree .ln { fill: none; stroke: #c9c9d3; 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-text); }
.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-text); }
.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 rect { stroke-width: 1; }
.tree .tg.ok rect { fill: var(--green-tint); stroke: none; } .tree .tg.ok text { fill: var(--green); }
.tree .tg.bad rect { fill: var(--surface); 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 { padding: 20px; display: grid; gap: 12px; align-content: start; }
.org h3 { font-size: 18px; }
.org .vals { background: var(--inset); border-radius: 18px; padding: 8px 14px; display: grid; }
.org .vals div { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; font-size: 14px; }
.org .vals div + div { border-top: 1px solid var(--edge); }
.org .vals dt { color: var(--slate); }
.org dd { margin: 0; }
.org .small { line-height: 1.45; }
.net-copy { margin-top: 20px; }

/* trust: like the app's workspace tiles */
.trust { padding: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tr { background: var(--inset); border-radius: 18px; padding: 20px; display: grid; gap: 6px; align-content: start; }
.tr .tile { background: var(--surface); margin-bottom: 8px; }
.tr h3 { font-size: 17px; }
.tr p { font-size: 14.5px; color: var(--slate); }

/* get */
.get-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 14px; align-items: start; }
.plats { padding: 18px; display: grid; gap: 8px; }
.plats h3 { margin-bottom: 6px; }
.plat { display: flex; align-items: center; gap: 14px; background: var(--inset); border-radius: 16px; padding: 12px 14px; border: 1.5px solid transparent; transition: border-color .25s var(--std), background-color .25s var(--std); }
.plat.rec { border-color: var(--orange); background: var(--tint); }
.plat .tile { background: var(--surface); width: 42px; height: 42px; }
.plat .t { min-width: 0; flex: 1; }
.plat b { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; flex-wrap: wrap; }
.plat span.d { font-size: 13px; color: var(--slate); display: block; line-height: 1.35; }
.plat .you { font-size: 11px; }
.plat .you[hidden] { display: none; }
.plat a.go { font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--edge); white-space: nowrap; transition: border-color .2s var(--std), background-color .2s var(--std); }
.plat a.go:hover { border-color: var(--orange); }
.form { padding: clamp(20px, 3vw, 30px); }
.fields { display: grid; gap: 16px; }
.fields h3 { font-size: 24px; letter-spacing: -.03em; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fld { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.fld input, .fld select { width: 100%; height: 48px; padding: 0 16px; border: 1px solid var(--edge); border-radius: 14px; background: var(--inset); color: var(--ink); font: 400 15px var(--sans); appearance: none; -webkit-appearance: none; transition: border-color .2s var(--std), box-shadow .25s var(--std), background-color .2s var(--std); }
.fld select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%237a7a86' stroke-width='1.6' stroke-linecap='round'><path d='M1 1.5l5 5 5-5'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.fld input:focus, .fld select:focus { outline: 0; border-color: var(--orange); background-color: var(--surface); box-shadow: 0 0 0 4px rgba(226, 118, 58, .16); }
.fld input::placeholder { color: var(--slate); opacity: .7; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick button { padding: 9px 16px; min-height: 44px; border-radius: 999px; background: var(--inset); font-size: 14px; font-weight: 600; color: var(--slate); border: 1px solid transparent; transition: background-color .2s var(--std), color .2s var(--std), transform .16s var(--std); }
.pick button:active { transform: scale(.96); }
.pick button[aria-pressed="true"] { background: var(--tint); color: var(--orange-text); border-color: var(--orange); }
.err { color: var(--red); font-size: 14px; font-weight: 600; }
.sent .fields { display: none; }
.done { display: none; gap: 12px; justify-items: start; padding: 8px 0; }
.sent .done { display: grid; animation: rise .45s var(--ease) both; }
.done .big { width: 56px; height: 56px; border-radius: 50%; background: var(--green-tint); display: grid; place-items: center; }
.done .big .ic { stroke: var(--green); stroke-width: 2.2; width: 26px; height: 26px; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* faq */
.faq { padding: 10px; display: grid; gap: 8px; max-width: 880px; }
.q { background: var(--inset); border-radius: 16px; }
.q > button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; border-radius: 16px; min-height: 56px; }
.q .ic { stroke: var(--ink); width: 18px; height: 18px; 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 20px 18px; color: var(--slate); max-width: 46em; }

/* closer: the app's orange brand panel */
.closer { margin-top: clamp(72px, 10vw, 128px); }
.panel-o { position: relative; border-radius: 32px; background: linear-gradient(135deg, #f08a4b, #d9622a); color: #fff; padding: clamp(36px, 7vw, 88px); display: grid; gap: 24px; justify-items: start; overflow: hidden; isolation: isolate; }
.panel-o::after { content: ""; position: absolute; right: -6%; bottom: -30%; width: 46%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .1); z-index: -1; }
.panel-o .word { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
.panel-o .word svg { width: 40px; height: 40px; }
.panel-o h2 { color: #fff; max-width: 12em; font-size: clamp(36px, 6vw, 76px); }
.panel-o p { color: rgba(255, 255, 255, .88); max-width: 30em; font-size: 18px; }
.foot { padding: 40px 0 48px; 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: 22px; flex-wrap: wrap; }
.foot .logo { color: var(--ink); }
.foot a:hover { color: var(--ink); }

/* plain pages */
.page { padding: 140px 0 100px; }
.page .wrap { width: min(720px, 100% - 2 * var(--gutter)); display: grid; gap: 20px; }
.page .card { padding: clamp(22px, 4vw, 40px); display: grid; gap: 18px; }
.page h1 { font-size: clamp(34px, 5vw, 52px); }
.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; }
  .hero-grid, .off, .net, .get-grid, .panel { grid-template-columns: 1fr; }
  .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .swap { grid-template-columns: auto minmax(0, 1fr); }
  .swap .arr { display: none; }
  .swap .now { grid-column: 1 / -1; }
  .synced { top: -14px; }
}
@media (max-width: 640px) {
  .hero { padding-top: 112px; }
  .bar .btn { display: none; }
  .roles, .trust, .row2, .legend { grid-template-columns: 1fr; }
  .stats { gap: 10px; }
  .stat { padding: 20px 14px 14px; }
  .stat .num { font-size: 22px; }
  .stat svg.spark { display: none; }
  .pin { display: none; }
  .counters { grid-template-columns: 1fr 1fr; }
  .sum { grid-template-columns: 1fr; justify-items: center; }
  .sum dl { width: 100%; }
  .panel .txt { padding: 22px; }
  .plat { flex-wrap: wrap; }
  .plat a.go { margin-left: 56px; }
  .toast { white-space: normal; width: max-content; max-width: 86%; text-align: center; }
}
/* ---------- motion (only when the visitor has not asked for less) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* hero headline: words rise out of a mask */
  .js h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
  .js h1 .wi { display: inline-block; transform: translateY(110%); transition: transform .8s var(--ease); transition-delay: calc(var(--w) * 70ms + .1s); }
  .js h1.on .wi { transform: none; }

  /* hero dashboard builds itself: cards pop in order, the line draws, the badge turns once */
  .js .dash-wrap .stat, .js .dash-wrap .requests, .js .dash-wrap .synced { opacity: 0; }
  .js .dash-wrap.in .stat, .js .dash-wrap.in .requests { animation: pop .7s var(--ease) both; animation-delay: calc(var(--n, 0) * 90ms + .15s); }
  .js .dash-wrap.in .synced { animation: pop .6s var(--ease) both .9s; }
  .js .dash-wrap.in .synced .ic { animation: turn .9s var(--ease) 1.1s both; }
  .stats .stat:nth-child(1) { --n: 0; } .stats .stat:nth-child(2) { --n: 1; } .stats .stat:nth-child(3) { --n: 2; } .stats .stat:nth-child(4) { --n: 3; }
  .requests { --n: 4; }
  .js .dash-wrap .cap { opacity: 0; }
  .js .dash-wrap.in .cap { animation: slide .55s var(--ease) both; animation-delay: calc(var(--n2, 0) * 90ms + .75s); }
  .requests .cap:nth-of-type(1) { --n2: 0; } .requests .cap:nth-of-type(2) { --n2: 1; } .requests .cap:nth-of-type(3) { --n2: 2; }
  .stat svg.spark path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .dash-wrap.in .stat svg.spark path { animation: draw 1.2s var(--ease) .8s forwards; }
  @keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
  @keyframes slide { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes turn { from { transform: rotate(-200deg); } to { transform: none; } }

  /* screenshot lands softly, pins ping twice to say "look here" */
  .js .plate .frame img { transform: scale(1.035); transition: transform 1.2s var(--ease); }
  .js .plate.in .frame img { transform: none; }
  .js .plate.in .pin { animation: ping 1.6s var(--std) 2; animation-delay: calc(var(--i) * 120ms + .9s); }
  @keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(226, 118, 58, .45); } 80%, 100% { box-shadow: 0 0 0 12px rgba(226, 118, 58, 0); } }

  /* old way struck out, new way slides in */
  .js .swap { opacity: 0; transform: translateY(10px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
  .js .swap.in { opacity: 1; transform: none; }
  .swaps .swap:nth-child(2) { transition-delay: .08s; } .swaps .swap:nth-child(3) { transition-delay: .16s; } .swaps .swap:nth-child(4) { transition-delay: .24s; }
  .js .swap .was { text-decoration-color: transparent; transition: text-decoration-color .4s var(--std) .5s, opacity .4s var(--std) .5s; }
  .js .swap.in .was { text-decoration-color: var(--orange); opacity: .75; }
  .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; }

  /* product tabs: text rises, screenshot settles */
  .stack img { transform: scale(1.02); transition: opacity .3s var(--std), transform .5s var(--ease); }
  .stack img.on { transform: none; }
  .txt.swapin > * { animation: slide .45s var(--ease) both; }
  .txt.swapin > :nth-child(2) { animation-delay: 40ms; } .txt.swapin > :nth-child(3) { animation-delay: 80ms; } .txt.swapin > :nth-child(4) { animation-delay: 120ms; }

  /* offline demo: a tapped number pops, the diff chip flashes */
  .counter .val.bump { animation: bump .28s var(--ease); }
  @keyframes bump { 40% { transform: scale(1.18); } }
  .chip { transition: background-color .3s var(--std), color .3s var(--std); }

  /* network: the late report asks for attention three times, then stops */
  .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; } }

  /* hover lift where there is a hover */
  @media (hover: hover) and (pointer: fine) {
    .js .role.rv { transition: opacity .6s var(--ease) calc(var(--d, 0) * 70ms), transform .6s var(--ease) calc(var(--d, 0) * 70ms), translate .3s var(--ease), box-shadow .3s var(--ease); }
    .tr, .plat, .legend li { transition: translate .3s var(--ease), border-color .25s var(--std), background-color .25s var(--std); }
    .role:hover { translate: 0 -4px; box-shadow: 0 18px 30px -20px rgba(28, 28, 33, .28); }
    .tr:hover, .legend li:hover { translate: 0 -3px; }
    .plat:hover { translate: 3px 0; }
    .logo svg { transition: transform .4s var(--ease); }
    .logo:hover svg { transform: rotate(-8deg) scale(1.06); }
  }

  /* closing panel: the mark pops, the disc drifts */
  .js .panel-o .word svg { transform: scale(.5) 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; }
  .panel-o.in::after { animation: drift 16s ease-in-out infinite alternate; }
  @keyframes drift { to { transform: translate(-6%, -8%) scale(1.08); } }
  .sent .done .big { animation: pop .6s cubic-bezier(.34, 1.56, .64, 1) both; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv, .js .pin { transition: opacity .3s; transform: none; }
  .tree .ln { transition: none; stroke-dashoffset: 0; }
  .q .ans, .ring .fg, .sw::after, .toast { transition: none; }
}
