/* BubbleHMS — the public site.
   One stylesheet, no framework, no build. A marketing page that needs a
   toolchain to deploy is a page that stops working the week the toolchain
   changes, and this one has to be up when somebody is deciding whether to
   call. The palette is the product's own, so the site and the software look
   like the same thing.

   Motion is CSS: the hero reveals on load, sections reveal on scroll where
   the browser supports animation-timeline, and everything stops for a
   visitor who asks for reduced motion. Nothing on the page needs
   JavaScript to be readable; site.js only adds the moving board, the
   module filter, the link switch and the role picker. */

:root {
  --accent: #6253E0;
  --accent-deep: #4A3BC4;
  --accent-soft: #EEECFC;
  --accent-line: #D9D4F8;
  --accent-pale: #A79CF5;
  --navy: #1B2850;
  --night: #0E1530;
  --night-card: #172047;
  --ink: #15161C;
  --muted: #64677A;
  --muted-deep: #5A5D70;
  --on-night: #C9C6EE;
  --on-night-dim: #A9A6D0;
  --line: #E7E8F0;
  --canvas: #F4F5F9;
  --ok: #0B6A5E;
  --ok-light: #E4F5F2;
  --ok-bright: #3FD0B6;
  --warn: #8F4D08;
  --warn-light: #FCF1E3;
  --warn-bright: #F0B56B;
  --display: Outfit, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 62ch;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

/* every rule below sets display on elements that are sometimes hidden, so
   the attribute has to win over them */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--display);
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.022em;
  font-weight: 600;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.3rem + 3.1vw, 3.5rem); font-weight: 700; letter-spacing: -0.032em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.3125rem; }
p { margin: 0; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-deep); }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: #fff; }

.wrap { width: min(1200px, 100% - 3rem); margin-inline: auto; }
.lede { font-size: 1.125rem; max-width: var(--measure); }
.kicker {
  font-size: .8125rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-deep);
}
.num { font-variant-numeric: tabular-nums; }
.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ------------------------------------------------------------- dark areas */
.dark {
  position: relative;
  background-color: var(--night);
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 28px 28px;
  color: #fff;
  overflow: hidden;
}
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark p { color: var(--on-night); }
.dark .kicker { color: var(--accent-pale); }
.dark .inner { position: relative; }
.glow {
  position: absolute; right: -140px; top: 20px; width: 680px; height: 680px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(98, 83, 224, .4), rgba(98, 83, 224, 0) 65%);
}

/* bubbles: the mark's own two rising bubbles, scaled up */
.bubbles { position: absolute; inset: 0; pointer-events: none; }
.bubbles i {
  position: absolute; bottom: -60px; border-radius: 50%;
  border: 1.5px solid var(--accent-pale);
  animation: rise linear infinite;
}
@keyframes rise {
  0%   { transform: translateY(0) scale(.7); opacity: 0; }
  12%  { opacity: .4; }
  100% { transform: translateY(-900px) scale(1.15); opacity: 0; }
}

/* ---------------------------------------------------------------- buttons */
.btn, .btn2, .btn-light {
  display: inline-flex; align-items: center; justify-content: center; gap: .625rem;
  min-height: 52px; padding: 0 1.5rem; border-radius: 13px;
  font: inherit; font-weight: 600; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .3s var(--ease), filter .3s, background .3s, border-color .3s;
}
.btn { background: var(--accent); color: #fff; box-shadow: 0 14px 30px -12px rgba(98, 83, 224, .8); }
.btn2 { background: #fff; color: var(--navy); border-color: var(--accent-line); }
.dark .btn2 { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-light { background: #fff; color: var(--navy); }
.btn:hover, .btn2:hover, .btn-light:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn svg, .btn-light svg, .arrow svg { transition: transform .3s var(--ease); }
.btn:hover svg, .btn-light:hover svg, .arrow:hover svg { transform: translateX(4px); }
.arrow {
  display: inline-flex; align-items: center; gap: .625rem; min-height: 44px;
  align-self: flex-start; font-weight: 600; text-decoration: none;
}

/* ----------------------------------------------------------------- header */
header.bar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 21, 48, .9);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.bar .wrap { display: flex; align-items: center; gap: 1.75rem; padding: .875rem 0; }
.brand { display: flex; align-items: center; gap: .625rem; text-decoration: none; flex: none; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--accent);
  display: grid; place-items: center; flex: none;
}
.brand .word {
  font-family: var(--display); font-weight: 700; font-size: 1.1875rem;
  letter-spacing: -.02em; color: #fff;
}
.brand .word em { font-style: normal; color: var(--accent-pale); }
nav.links { margin-left: auto; display: flex; align-items: center; gap: 1.75rem; }
nav.links a {
  color: var(--on-night); text-decoration: none; font-size: .9375rem;
  transition: color .2s;
}
nav.links a:hover, nav.links a[aria-current="page"] { color: #fff; }
nav.links a[aria-current="page"] { font-weight: 600; }
nav.links .btn { min-height: 44px; padding: 0 1.125rem; border-radius: 11px; font-size: .9375rem; box-shadow: none; }
@media (max-width: 900px) {
  .bar .wrap { gap: 1rem; }
  nav.links { gap: 1rem; }
  nav.links a.hide-sm { display: none; }
}

/* ------------------------------------------------------------------- hero */
.hero .inner { padding: clamp(3.5rem, 2rem + 5vw, 5.5rem) 0 0; }
.hero-grid { display: flex; flex-wrap: wrap; gap: 3.5rem; align-items: center; }
.hero-copy { flex: 1.35 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 1.625rem; align-items: flex-start; }
.hero-copy .lede { color: var(--on-night); max-width: 35rem; }
.hero-art { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: .875rem; }
.note { font-size: .875rem; color: var(--on-night-dim); }

.pill {
  display: inline-flex; align-items: center; gap: .625rem;
  padding: .375rem .875rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .2);
  font-size: .8125rem; font-weight: 500; color: var(--on-night);
}
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.live { background: var(--ok-bright); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse {
  from { box-shadow: 0 0 0 0 rgba(11, 106, 94, .5); }
  to   { box-shadow: 0 0 0 10px rgba(11, 106, 94, 0); }
}

/* the headline reveals a line at a time, on load, no script */
.reveal-lines span { display: block; overflow: hidden; padding-bottom: .08em; }
.reveal-lines b {
  display: block; font-weight: inherit;
  animation: lineUp 1.1s var(--ease) both; animation-delay: var(--d, 0s);
}
.reveal-lines .last { color: var(--accent-pale); }
@keyframes lineUp { from { transform: translateY(112%); } to { transform: none; } }

.up { animation: fadeUp 1.1s ease both; animation-delay: var(--d, 0s); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* sections reveal as they are scrolled into view, where supported */
@keyframes viewUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  .rv {
    animation: viewUp linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
}

/* ------------------------------------------------------------- live board */
.board {
  background: #fff; color: var(--ink); border-radius: 22px; padding: 1.375rem;
  box-shadow: 0 44px 90px -28px rgba(0, 0, 0, .6);
  display: flex; flex-direction: column; gap: 1rem;
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }
.board-top { display: flex; flex-wrap: wrap; gap: .625rem; justify-content: space-between; align-items: center; }
.board-top span.label { font-size: .8125rem; font-weight: 600; color: var(--muted); }
.tag {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .3125rem .75rem; border-radius: 999px;
  font-size: .8125rem; font-weight: 600;
}
.tag.up { background: var(--ok-light); color: var(--ok); }
.tag.down { background: var(--warn-light); color: var(--warn); }
.tag.up .dot { background: var(--ok); animation: pulse 1.6s ease-out infinite; }
.tag.down .dot { background: var(--warn); }
.token { display: flex; gap: 1rem; align-items: center; padding: 1rem; border-radius: 16px; background: var(--canvas); }
.token .now { display: flex; flex-direction: column; gap: .125rem; flex: 1; min-width: 0; }
.token .now span { font-size: .8125rem; color: var(--muted); }
.token .now strong { font-family: var(--display); font-weight: 700; font-size: 2.75rem; line-height: 1; color: var(--navy); }
.token .next { display: flex; flex-direction: column; gap: .375rem; align-items: flex-end; }
.token .next span { font-size: .75rem; color: var(--muted); }
.token .next div { display: flex; gap: .375rem; }
.token .next b {
  padding: .25rem .5625rem; border-radius: 8px; background: #fff;
  border: 1px solid var(--line); font-size: .8125rem; font-weight: 600;
}
@media (max-width: 430px) {
  .token { gap: .75rem; }
  .token .now strong { font-size: 2.25rem; white-space: nowrap; }
  .token .next { flex: none; }
  .token .next b { padding: .25rem .4375rem; }
}
.board-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: .75rem; }
.board-pair > div { padding: .875rem 1rem; border-radius: 16px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: .5rem; }
.board-pair span { font-size: .8125rem; color: var(--muted); }
.board-pair strong { font-family: var(--display); font-weight: 700; font-size: 1.75rem; line-height: 1.1; color: var(--navy); }
.beds { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.beds i { height: 12px; border-radius: 4px; background: #DCDDE8; transition: background .6s; }
.beds i.taken { background: var(--accent); }
.board-foot { padding: .75rem .875rem; border-radius: 14px; font-size: .875rem; font-weight: 500; }
.board-foot.up { background: var(--ok-light); color: var(--ok); }
.board-foot.down { background: var(--warn-light); color: var(--warn); }
.caption { font-size: .8125rem; color: var(--on-night-dim); text-align: center; }

/* ------------------------------------------------------------------ facts */
.facts {
  margin-top: 4.5rem; padding: 1.75rem 0 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 1.5rem;
}
.facts div { display: flex; flex-direction: column; gap: .25rem; }
.facts b { font-family: var(--display); font-weight: 700; font-size: 2.5rem; line-height: 1; }
.facts b.small { font-size: 1.75rem; line-height: 2.5rem; }
.facts span { font-size: .875rem; color: var(--on-night); }

/* --------------------------------------------------------------- marquees */
.marquee { overflow: hidden; display: flex; flex-direction: column; gap: .75rem; }
.marquee .row { display: flex; width: max-content; animation: slide 80s linear infinite; }
.marquee .row.back { animation-direction: reverse; }
.marquee:hover .row { animation-play-state: paused; }
.marquee .row > div { display: flex; }
@keyframes slide { to { transform: translateX(-50%); } }
.chip {
  flex: none; margin-right: .75rem; padding: .5625rem 1rem; border-radius: 999px;
  font-size: .875rem; font-weight: 500; white-space: nowrap;
  background: #fff; border: 1px solid var(--line); color: var(--navy);
}
.chip.soft { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-deep); }
.dark .chip { background: transparent; border-color: rgba(255, 255, 255, .2); color: var(--on-night); }
.band { background: var(--canvas); padding: 1.75rem 0; }

/* ----------------------------------------------------------------- blocks */
section.plain, section.tint { padding: clamp(4rem, 2rem + 5vw, 7rem) 0; }
section.tint { background: var(--canvas); }
.dark .inner { padding: clamp(4rem, 2rem + 5vw, 7rem) 0; }
.stack { display: flex; flex-direction: column; gap: 2.75rem; }
.head { display: flex; flex-direction: column; gap: .875rem; max-width: 45rem; }
.head p { font-size: 1.0625rem; color: var(--muted); }
.tint .head p { color: var(--muted-deep); }

.grid { display: grid; gap: 1.5rem; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }

.card {
  padding: 2rem; border-radius: 22px; background: var(--canvas);
  display: flex; flex-direction: column; gap: .875rem;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.tint .card { background: #fff; }
.card.lift:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -20px rgba(27, 40, 80, .3); }
.card h3 { color: var(--navy); }
.card p { color: var(--muted); }
.card .no { font-family: var(--display); font-weight: 700; font-size: 2.5rem; line-height: 1; color: var(--accent); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: .75rem; height: 56px; }

/* the four rules, each with its own small drawing */
.sparkline path.draw { stroke-dasharray: 130; animation: draw 3.6s ease-in-out infinite; }
@keyframes draw { 0%, 10% { stroke-dashoffset: 130; } 55%, 100% { stroke-dashoffset: 0; } }
.supersede { display: flex; flex-direction: column; gap: .375rem; width: 130px; }
.supersede .old { position: relative; height: 16px; border-radius: 5px; background: #DCDDE8; }
.supersede .old svg { position: absolute; inset: 0; }
.supersede .new { height: 16px; border-radius: 5px; background: var(--accent-soft); border: 1.5px solid var(--accent); }
.barcode {
  position: relative; width: 110px; height: 44px;
  background: repeating-linear-gradient(90deg, var(--navy) 0 3px, transparent 3px 6px, var(--navy) 6px 7px, transparent 7px 11px);
}
.barcode i {
  position: absolute; left: 3px; top: -5px; width: 3px; height: 54px; border-radius: 2px;
  background: var(--accent); box-shadow: 0 0 12px 2px rgba(98, 83, 224, .6);
  animation: scan 2.4s ease-in-out infinite;
}
@keyframes scan { 50% { transform: translateX(100px); } }
.refusal {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .875rem; border-radius: 10px;
  background: var(--warn-light); color: var(--warn); font-size: .875rem; font-weight: 600;
  animation: shake 4s infinite;
}
@keyframes shake {
  0%, 84%, 100% { transform: none; }
  87% { transform: translateX(-4px); }
  90% { transform: translateX(4px); }
  93% { transform: translateX(-3px); }
  96% { transform: translateX(2px); }
}

/* ------------------------------------------------------------- visit flow */
.flow { position: relative; }
.flow .rail { position: absolute; left: 0; right: 0; top: 21px; height: 2px; background: rgba(255, 255, 255, .14); }
.flow .rail i {
  position: absolute; top: -5px; width: 12px; height: 12px; margin-left: -6px;
  border-radius: 50%; background: var(--accent-pale);
  box-shadow: 0 0 16px 4px rgba(167, 156, 245, .7);
  animation: along 9s linear infinite;
}
@keyframes along { from { left: 0; } to { left: 100%; } }
.flow ol {
  position: relative; display: grid; gap: 2rem 0;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
}
.flow li { display: flex; flex-direction: column; gap: .875rem; align-items: center; text-align: center; padding: 0 .75rem; }
.flow b {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--night-card); border: 1.5px solid rgba(255, 255, 255, .2);
  font-family: var(--display); font-weight: 600;
  animation: lightup 9s infinite; animation-delay: var(--d, 0s);
}
.flow h3 { font-size: 1.125rem; }
.flow p { font-size: .875rem; }
@keyframes lightup {
  0%, 14% { background: var(--accent); border-color: var(--accent-pale); transform: scale(1.12); }
  22%, 100% { background: var(--night-card); border-color: rgba(255, 255, 255, .2); transform: none; }
}
@media (max-width: 900px) { .flow .rail { display: none; } }

/* ----------------------------------------------------------- lan diagram */
.lan-wrap { display: flex; flex-direction: column; align-items: center; }
.lan {
  width: 100%; padding: 1.625rem 1.375rem 1.875rem; border-radius: 24px;
  background: var(--canvas); border: 1.5px dashed var(--accent-line);
  display: flex; flex-direction: column; gap: 1.375rem;
}
.dark .lan { background: transparent; border-color: rgba(167, 156, 245, .6); }
.lan .cols { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; }
.lan .side { display: flex; flex-direction: column; gap: 1.5rem; }
.lan .node { display: flex; align-items: center; }
.lan .node span {
  flex: none; padding: .5625rem .75rem; border-radius: 11px; background: #fff;
  border: 1px solid var(--line); font-size: .8125rem; font-weight: 600; color: var(--navy);
}
.dark .lan .node span { background: var(--night); border-color: rgba(255, 255, 255, .16); color: #fff; }
.lan .wire { flex: 1; height: 2px; background: var(--accent-line); position: relative; overflow: hidden; }
.dark .lan .wire { background: rgba(167, 156, 245, .3); }
.lan .wire i {
  position: absolute; top: 0; left: 0; width: 11px; height: 2px; background: var(--accent);
  animation: packet 1.8s linear infinite; animation-delay: var(--d, 0s);
}
.dark .lan .wire i { background: #fff; }
.lan .node.rtl i { animation-direction: reverse; }
@keyframes packet { from { transform: translateX(-11px); } to { transform: translateX(170px); } }
.lan .server {
  width: 118px; height: 118px; border-radius: 27px; background: var(--accent); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .375rem;
  box-shadow: 0 22px 44px -16px rgba(98, 83, 224, .8);
  animation: serverGlow 2.6s ease-in-out infinite;
}
.lan .server span { font-size: .8125rem; font-weight: 600; }
@keyframes serverGlow {
  50% { box-shadow: 0 0 0 14px rgba(98, 83, 224, .18), 0 22px 44px -16px rgba(98, 83, 224, .9); }
}
.uplink { width: 2px; height: 48px; background-image: repeating-linear-gradient(180deg, var(--accent) 0 8px, transparent 8px 16px); background-size: 2px 16px; animation: flowdown .8s linear infinite; }
@keyframes flowdown { to { background-position: 0 16px; } }
.outside-tag { padding: .625rem 1.125rem; border-radius: 999px; background: var(--night); color: #fff; font-size: .875rem; font-weight: 500; }

/* the link switch on the how-it-runs page */
.switch { padding: clamp(1.25rem, 3vw, 2.25rem); border-radius: 28px; background: var(--night-card); border: 1px solid rgba(255, 255, 255, .12); display: flex; flex-direction: column; gap: 1.75rem; }
.switch-top { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.switch-top p { font-size: 1rem; font-weight: 500; color: #fff; }
.switch-row { display: flex; flex-wrap: wrap; gap: 1.25rem 0; align-items: center; }
.switch-row .lan { flex: 2.2 1 520px; }
.link-col { flex: 0 1 110px; min-width: 60px; display: flex; flex-direction: column; gap: .5rem; align-items: center; }
.link-col i { width: 100%; height: 2px; background-image: repeating-linear-gradient(90deg, var(--accent-pale) 0 8px, transparent 8px 16px); background-size: 16px 2px; animation: flowright .7s linear infinite; }
.link-col span { font-size: .75rem; font-weight: 600; color: var(--on-night); }
@keyframes flowright { to { background-position: 16px 0; } }
.outside { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: .625rem; transition: opacity .6s; }
.outside span { font-size: .875rem; font-weight: 500; padding: .6875rem .875rem; border-radius: 12px; background: var(--night); border: 1px solid rgba(255, 255, 255, .16); color: #fff; }
.is-down .link-col i { background-image: repeating-linear-gradient(90deg, var(--warn-bright) 0 4px, transparent 4px 16px); animation: none; }
.is-down .link-col span { color: var(--warn-bright); }
.is-down .outside { opacity: .5; }

/* ---------------------------------------------------------------- modules */
.mod-group { display: flex; flex-direction: column; gap: 1rem; }
.mod-group .top { display: flex; align-items: baseline; gap: .75rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.mod-group .top h2 { font-size: 1.5rem; }
.mod-group .top span { font-size: .875rem; color: var(--muted); }
.mods { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 1rem; }
.mod {
  padding: 1rem 1.125rem; border-radius: 16px; background: #fff; border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: .625rem;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.mod:hover { transform: translateY(-5px); border-color: var(--accent-line); box-shadow: 0 20px 40px -18px rgba(27, 40, 80, .3); }
.mod .name { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; }
.mod h3 { font-family: var(--body); font-size: 1rem; font-weight: 600; letter-spacing: 0; line-height: 1.35; color: var(--ink); }
.mod b { flex: none; font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--accent); }
.mod .meter { height: 4px; border-radius: 2px; background: var(--accent-soft); overflow: hidden; }
.mod .meter i { display: block; height: 4px; border-radius: 2px; background: var(--accent); transition: width 1.2s var(--ease); }
.filters { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between; }
.filters .set { display: flex; flex-wrap: wrap; gap: .625rem; }
.filters button {
  min-height: 44px; padding: 0 1rem; border-radius: 999px; font: inherit;
  font-size: .875rem; font-weight: 600; cursor: pointer;
  background: #fff; color: var(--navy); border: 1px solid var(--accent-line);
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.filters button:hover { transform: translateY(-2px); }
.filters button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.filters .count { font-size: .9375rem; color: var(--muted); }
.filters .count strong { font-family: var(--display); font-size: 1.375rem; color: var(--navy); }

/* ----------------------------------------------------- built for India */
.swaps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 1rem; }
.swap { padding: 1.125rem; border-radius: 16px; background: var(--night-card); border: 1px solid rgba(255, 255, 255, .12); display: flex; flex-direction: column; gap: .625rem; }
.swap span.k { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-pale); }
.swap .pair { position: relative; display: block; height: 26px; overflow: hidden; font-size: .9375rem; }
.swap .pair b, .swap .pair i { position: absolute; inset: 0; }
.swap .pair i { font-style: normal; color: var(--on-night-dim); text-decoration: line-through; opacity: 0; animation: swapIn 7s cubic-bezier(.6, 0, .2, 1) infinite; animation-delay: var(--d, 0s); }
.swap .pair b { font-weight: 600; color: #fff; animation: swapOut 7s cubic-bezier(.6, 0, .2, 1) infinite; animation-delay: var(--d, 0s); }
@keyframes swapIn { 0%, 55% { opacity: 0; transform: translateY(-100%); } 65%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-100%); } }
@keyframes swapOut { 0%, 55% { opacity: 1; transform: none; } 65%, 90% { opacity: 0; transform: translateY(100%); } 100% { opacity: 1; transform: none; } }

.chips { display: flex; flex-wrap: wrap; gap: .625rem; }
.chips .chip { margin-right: 0; }
.ticks { display: flex; flex-direction: column; gap: .75rem; }
.ticks li { display: flex; gap: .75rem; align-items: baseline; }
.ticks i { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.ticks.good i { background: var(--ok); }
.ticks.later i { background: var(--warn); }

/* ------------------------------------------------------------------- demo */
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: .625rem; width: 100%; max-width: 35rem; }
.roles button {
  min-height: 48px; padding: .5rem 1rem; border-radius: 14px; text-align: left;
  font: inherit; font-weight: 600; font-size: .9375rem; color: #fff; cursor: pointer;
  background: var(--night-card); border: 1px solid rgba(255, 255, 255, .16);
  display: flex; align-items: center;
  transition: background .25s, border-color .25s, transform .25s;
}
.roles button:hover { transform: translateX(4px); }
.roles button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent-pale); }
.peek { background: #fff; color: var(--ink); border-radius: 24px; padding: 2rem; box-shadow: 0 44px 90px -28px rgba(0, 0, 0, .6); display: flex; flex-direction: column; gap: 1.25rem; animation: float 7s ease-in-out infinite; }
.peek .who { display: flex; flex-direction: column; gap: .375rem; }
.peek .who span { font-size: .8125rem; font-weight: 600; color: var(--muted); }
.peek .who strong {
  min-height: 52px; padding: 0 1rem; border-radius: 12px; border: 1.5px solid var(--accent);
  display: flex; align-items: center; font-family: var(--display); font-size: 1.25rem;
  font-weight: 600; letter-spacing: -.02em; color: var(--navy);
}
.peek p { font-size: .9375rem; color: var(--muted); min-height: 4.5rem; }
.peek .top { display: flex; align-items: center; gap: .625rem; }
.peek .top .mark { width: 38px; height: 38px; border-radius: 11px; background: var(--accent); display: grid; place-items: center; flex: none; }
.peek .top b { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; color: var(--navy); }
.peek .top b em { font-style: normal; color: var(--accent); }
.mailcard { display: flex; flex-direction: column; gap: .25rem; padding: 1.75rem 2.25rem; border-radius: 22px; background: var(--night); color: #fff; text-decoration: none; min-height: 0; }
.mailcard span { font-size: .875rem; color: var(--on-night); }
.mailcard b { font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, 2.4vw, 2rem); letter-spacing: -.02em; }

/* -------------------------------------------------------------- cta band */
.cta-band {
  position: relative; overflow: hidden;
  padding: clamp(2.5rem, 2rem + 3vw, 4rem) clamp(1.5rem, 5vw, 4.5rem);
  border-radius: 32px; background: var(--accent); color: #fff;
  display: flex; flex-direction: column; gap: 1.375rem; align-items: flex-start;
}
.cta-band h2, .cta-band p { position: relative; }
.cta-band p { color: #F1EFFE; font-size: 1.0625rem; max-width: 40rem; }
.cta-band .bubbles i { border-color: rgba(255, 255, 255, .6); }
.cta-band .pair { position: relative; display: flex; flex-wrap: wrap; gap: .75rem; }
.split { display: flex; flex-wrap: wrap; gap: 2rem 4rem; align-items: center; justify-content: space-between; }
.half { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 1.125rem; }

/* ----------------------------------------------------------------- footer */
footer.site { background: var(--night); color: var(--on-night); padding: 3.5rem 0 2.5rem; }
footer.site .wrap { display: flex; flex-direction: column; gap: 2rem; }
footer.site .cols { display: flex; flex-wrap: wrap; gap: 2rem 4rem; justify-content: space-between; }
footer.site .who { display: flex; flex-direction: column; gap: .625rem; }
footer.site .who b { font-family: var(--display); font-weight: 700; font-size: 1.375rem; letter-spacing: -.02em; color: #fff; }
footer.site .who b em { font-style: normal; color: var(--accent-pale); }
footer.site .who span { font-size: .9375rem; }
footer.site nav { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; align-items: center; }
footer.site nav a { color: var(--on-night); text-decoration: none; font-size: .9375rem; line-height: 44px; transition: color .2s; }
footer.site nav a:hover { color: #fff; }
footer.site .small {
  font-size: .8125rem; color: var(--on-night-dim); max-width: 54rem;
  padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12);
}

/* ------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-lines b, .up, .rv { opacity: 1 !important; transform: none !important; }
}
