/* Billavio landing – Bauplan Gold (tokens as in apps/web/src/styles.css). Mobile first. */
@font-face {
  font-family: "Barlow Condensed";
  font-weight: 600;
  font-display: swap;
  src: url("fonts/barlow-condensed-600.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-weight: 700;
  font-display: swap;
  src: url("fonts/barlow-condensed-700.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 100 700;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-var.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-500.woff2") format("woff2");
}

:root {
  --bg: #14181d;
  --surface: #1b2128;
  --side: #0f1216;
  --fg: #e9ecef;
  --muted: #9ea7b1;
  --line: #2c343d;
  /* translucent boxes: the gold dust (dust.js) shows through, a firmer edge keeps the box */
  --glass: rgba(27, 33, 40, 0.62);
  --glass-deep: rgba(15, 18, 22, 0.66);
  --line-glass: #3b4551;
  --accent: #e8a020;
  --accent2: #f5c05a;
  --accent-fg: #1a1206;
  --ok: #62c98f;
  --campus: #b9a2ff;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "IBM Plex Sans", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 4px;
  --tap: 48px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px / 1.55 var(--body);
  -webkit-text-size-adjust: 100%;
}
body {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 24px 24px;
  overflow-x: hidden;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(40px, 11vw, 76px);
}
h2 {
  font-size: clamp(30px, 7.5vw, 48px);
  max-width: 22ch;
}
h3 {
  font-size: 22px;
}
em {
  font-style: normal;
  color: var(--accent2);
}
p {
  margin: 0;
}
a {
  color: var(--accent2);
}
.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 3px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  background: var(--accent2);
  color: var(--accent-fg);
  padding: 10px 14px;
  font-weight: 600;
}
.skip:focus {
  top: 8px;
}
.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 max(16px, env(safe-area-inset-left));
}
.kicker {
  font: 500 12px / 1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 12px;
}
.kicker--campus {
  color: var(--campus);
}
.lead {
  color: #c7ced5;
  font-size: 17px;
  max-width: 60ch;
  margin-top: 16px;
}
.note {
  color: var(--muted);
  font-size: 14px;
  margin-top: 16px;
  max-width: 80ch;
}
.lbl {
  font: 500 11px / 1.3 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0 22px;
  border-radius: var(--radius);
  font: 700 18px var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid var(--line);
  color: var(--fg);
  background: var(--surface);
  transition:
    transform 0.15s var(--ease),
    box-shadow 0.15s var(--ease);
}
.btn--gold {
  background: linear-gradient(120deg, var(--accent2), var(--accent));
  border-color: transparent;
  color: var(--accent-fg);
}
.btn--gold:hover {
  box-shadow: 0 6px 24px rgba(232, 160, 32, 0.28);
  transform: translateY(-1px);
}
.btn--line {
  background: transparent;
  border-color: #4a5560;
}
.btn--line:hover {
  border-color: var(--accent2);
}
.btn--sm {
  min-height: 40px;
  padding: 0 12px;
  font-size: 15px;
  white-space: nowrap;
}
@media (max-width: 400px) {
  .top .brand span {
    display: none;
  }
  .top__login {
    padding: 10px 6px;
  }
}

/* ---------- header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 18, 22, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top__in {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fg);
  text-decoration: none;
  font: 700 24px var(--display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}
.top__nav {
  display: none;
}
.top__cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.top__login {
  color: var(--fg);
  text-decoration: none;
  padding: 10px;
  font-size: 15px;
}

/* ---------- hero ---------- */
.hero {
  padding: 40px 0 56px;
  position: relative;
  isolation: isolate;
  background: radial-gradient(60% 34% at 80% 16%, rgba(232, 160, 32, 0.07), transparent 70%);
}
/* gold dust (dust.js): one fixed canvas behind all content (main and footer sit above it,
   the header on top), never catches clicks; the script keeps it faint enough right behind
   text that the text keeps its contrast */
.dust {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.dust.is-on {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .dust {
    transition: none;
  }
}
/* free space above the final call where the dust forms the shield (only while the
   animation runs) */
.stage {
  display: none;
}
.dust-on .final .stage {
  display: block;
  height: 260px;
  margin-bottom: 8px;
}
.hero__in {
  display: grid;
  gap: 40px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero__facts {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 14px;
}
.hero__facts li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* demo frame shared by hero + inbox */
.demo,
.inbox,
.phone {
  margin: 0;
  position: relative;
}
.demo__pause {
  margin-top: 10px;
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  font: 500 12px var(--mono);
  padding: 8px 12px;
  min-height: 36px;
  border-radius: var(--radius);
  cursor: pointer;
}
.demo__pause:hover {
  color: var(--fg);
}

/* steps rail */
.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 4px;
  font: 500 9px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0;
  color: #8a949e;
}
@media (min-width: 480px) {
  .steps {
    grid-template-columns: repeat(6, 1fr);
    font-size: 10px;
  }
}
.steps li {
  border-top: 3px solid var(--line);
  padding-top: 6px;
  transition:
    color 0.3s,
    border-color 0.3s;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* invoice card */
.inv {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  font-size: 14px;
  position: relative;
  overflow: hidden;
}
.inv::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
}
.inv__head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  justify-content: space-between;
}
.inv__kind {
  font: 700 22px var(--display);
  text-transform: uppercase;
}
.inv__no {
  color: var(--muted);
  font-size: 13px;
}
.pill {
  font: 500 11px var(--mono);
  padding: 4px 8px;
  border-radius: 99px;
  border: 1px solid var(--line);
  white-space: nowrap;
}
.pill--draft {
  color: var(--accent2);
}
.pill--final {
  color: var(--ok);
  border-color: rgba(98, 201, 143, 0.5);
  display: none;
}
.inv__cust {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.inv__pick {
  font-size: 16px;
  min-height: 24px;
  position: relative;
}
.inv__pick b {
  font-weight: 600;
}
.inv__addr {
  color: var(--muted);
  font-size: 12.5px;
}
.inv__rows {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.inv__row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.inv__pos {
  font: 500 12px var(--mono);
  color: var(--muted);
  padding-top: 2px;
}
.inv__txt small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.inv__amt {
  font-size: 13.5px;
  white-space: nowrap;
}
.chip {
  font: 500 10px var(--mono);
  color: var(--accent2);
  border: 1px solid rgba(245, 192, 90, 0.45);
  border-radius: 3px;
  padding: 1px 5px;
  vertical-align: 2px;
}
.inv__sum {
  margin: 10px 0 0;
  display: grid;
  gap: 2px;
}
.inv__sum div {
  display: flex;
  justify-content: space-between;
}
.inv__sum dt {
  color: var(--muted);
}
.inv__sum dd {
  margin: 0;
}
.inv__gross {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 6px;
  font-weight: 600;
}
.inv__gross dd {
  color: var(--accent2);
  font-size: 18px;
}
.inv__check {
  margin-top: 12px;
}
.inv__check ul,
.mail__checks,
.ticks {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
}
.inv__check li {
  font-size: 12.5px;
  padding: 2px 0 2px 22px;
  position: relative;
  color: #c7ced5;
}
.inv__check li::before,
.mail__checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 11px;
  height: 6px;
  border: solid var(--ok);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}
.inv__valid {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(98, 201, 143, 0.45);
  background: rgba(98, 201, 143, 0.08);
  border-radius: var(--radius);
}
.inv__valid b {
  display: block;
  color: var(--ok);
}
.inv__valid small,
.inv__sent small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.seal {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ok);
  color: #0d1a12;
  font-weight: 700;
}
.inv__sent {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 12px 14px;
  background: var(--side);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}
.inv__sent b {
  font: 700 20px var(--display);
  text-transform: uppercase;
  color: var(--accent2);
}

/* ---- hero animation states: only with JS and motion allowed (html.anim) ---- */
.anim .inv__pick b,
.anim .inv__addr,
.anim .inv__row,
.anim .inv__sum,
.anim .inv__check li,
.anim .inv__valid,
.anim .inv__sent {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease);
}
.anim .inv__sent {
  transform: translateY(24px) scale(0.96);
}
.anim .inv__pick .caret {
  opacity: 1;
}
.inv__pick .caret {
  position: absolute;
  inset: 0;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.3s;
}
.anim .inv__pick .caret::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  background: var(--accent2);
  vertical-align: -2px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.demo[data-step="1"] .steps li[data-s="1"],
.demo[data-step="2"] .steps li:nth-child(-n + 2),
.demo[data-step="3"] .steps li:nth-child(-n + 3),
.demo[data-step="4"] .steps li:nth-child(-n + 4),
.demo[data-step="5"] .steps li:nth-child(-n + 5),
.demo[data-step="6"] .steps li {
  border-color: var(--accent);
  color: var(--accent2);
}
.anim .demo:not([data-step="0"]) .inv__pick .caret {
  opacity: 0;
}
.anim .demo:not([data-step="0"]) .inv__pick b,
.anim .demo:not([data-step="0"]) .inv__addr,
.anim .demo[data-step] .inv__row.is-in,
.anim .demo:is([data-step="3"], [data-step="4"], [data-step="5"], [data-step="6"]) .inv__sum,
.anim .demo:is([data-step="4"], [data-step="5"], [data-step="6"]) .inv__check li,
.anim .demo:is([data-step="5"], [data-step="6"]) .inv__valid,
.anim .demo[data-step="6"] .inv__sent {
  opacity: 1;
  transform: none;
}
.anim .demo .inv__check li:nth-child(2) {
  transition-delay: 0.2s;
}
.anim .demo .inv__check li:nth-child(3) {
  transition-delay: 0.4s;
}
.anim .demo .inv__check li:nth-child(4) {
  transition-delay: 0.6s;
}
.anim .demo .inv__check li:nth-child(5) {
  transition-delay: 0.8s;
}
.anim .demo .inv__check li:nth-child(6) {
  transition-delay: 1s;
}
.demo:is([data-step="5"], [data-step="6"]) .pill--draft,
.demo:not([data-step]) .pill--draft {
  display: none;
}
.demo:is([data-step="5"], [data-step="6"]) .pill--final,
.demo:not([data-step]) .pill--final {
  display: inline-block;
}
.demo:not([data-step]) .inv__sent {
  position: static;
  margin-top: 12px;
  box-shadow: none;
}
.demo:not([data-step]) .steps li {
  border-color: var(--accent);
  color: var(--accent2);
}
.demo:not([data-step]) .demo__pause {
  display: none;
}

/* ---------- sections ---------- */
.sec {
  padding: 64px 0;
}
.sec--alt {
  background: rgba(15, 18, 22, 0.25);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.split {
  display: grid;
  gap: 40px;
  align-items: center;
}
.split--top {
  align-items: start;
  margin-top: 28px;
}
.ticks li {
  padding: 6px 0 6px 28px;
  position: relative;
  color: #d3d9de;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 13px;
  width: 12px;
  height: 6px;
  border: solid var(--accent);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}

/* reveal on scroll */
.anim .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}
.anim .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* problem / benefit */
.vs {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}
.vs__row {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.vs__old,
.vs__new {
  padding: 14px 16px 14px 44px;
  position: relative;
}
.vs__old {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(242, 123, 123, 0.6);
  border-bottom: 1px dashed var(--line);
}
.vs__old::before,
.vs__new::before {
  position: absolute;
  left: 16px;
  font: 600 13px var(--mono);
}
.vs__old::before {
  content: "–";
  color: #f27b7b;
}
.vs__new::before {
  content: "→";
  color: var(--accent2);
}

/* flow */
.flow {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 16px;
  counter-reset: none;
  position: relative;
}
.flow__step {
  position: relative;
  padding: 18px 16px 18px 72px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.flow__n {
  position: absolute;
  left: 16px;
  top: 16px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--accent);
  color: var(--accent2);
  font-size: 14px;
  border-radius: var(--radius);
}
.flow__step p {
  color: #c7ced5;
  margin-top: 6px;
}
.anim .flow__step.is-in .flow__n {
  animation: pop 0.5s var(--ease) 0.15s both;
}
@keyframes pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
}

/* phone */
.phone {
  justify-self: center;
  width: min(300px, 100%);
}
.phone__frame {
  border: 10px solid #07090b;
  outline: 1px solid #3a434d;
  border-radius: 34px;
  background: var(--bg);
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}
.phone__bar {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px 8px;
  font: 500 12px var(--mono);
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: var(--side);
}
.phone__screen {
  padding: 14px;
  min-height: 470px;
  font-size: 13.5px;
}
.am {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.am li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.am li .num:not(b) {
  grid-column: 1;
  color: var(--muted);
  font-size: 12px;
}
.am li b {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  font-weight: 500;
}
.am__sum,
.rb__line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}
.am__sum b {
  color: var(--accent2);
}
.rb {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 2px solid var(--line);
}
.rb__line {
  border-bottom: 1px solid var(--line);
}
.rb__line b {
  font-weight: 500;
}
.sig {
  margin-top: 10px;
  border: 1px dashed #4a5560;
  border-radius: var(--radius);
  background: #10141a;
  padding: 6px 8px 4px;
}
.sig__svg {
  display: block;
  width: 100%;
  height: auto;
}
.sig__path {
  fill: none;
  stroke: #dfe6ff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sig__who {
  font: 500 11px var(--mono);
  color: var(--muted);
}
.rb__ok {
  margin-top: 10px;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--accent2), var(--accent));
  color: var(--accent-fg);
  font: 700 16px var(--display);
  text-transform: uppercase;
}
.anim .phone .am li,
.anim .phone .am__sum,
.anim .phone .rb,
.anim .phone .rb__ok,
.anim .phone .sig__who {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease);
}
.anim .phone .sig__path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
}
.anim .phone.is-in .am li,
.anim .phone.is-in .am__sum,
.anim .phone.is-in .rb,
.anim .phone.is-in .rb__ok,
.anim .phone.is-in .sig__who {
  opacity: 1;
  transform: none;
}
.anim .phone.is-in .am li:nth-child(1) {
  transition-delay: 0.2s;
}
.anim .phone.is-in .am li:nth-child(2) {
  transition-delay: 0.7s;
}
.anim .phone.is-in .am li:nth-child(3) {
  transition-delay: 1.2s;
}
.anim .phone.is-in .am__sum {
  transition-delay: 1.8s;
}
.anim .phone.is-in .rb {
  transition-delay: 2.5s;
}
.anim .phone.is-in .sig__path {
  transition: stroke-dashoffset 1.6s ease-in-out 3.3s;
  stroke-dashoffset: 0;
}
.anim .phone.is-in .sig__who {
  transition-delay: 5s;
}
.anim .phone.is-in .rb__ok {
  transition-delay: 5.3s;
}

/* roles */
.roles {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}
.role {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  border-top: 3px solid var(--accent);
}

/* law timeline */
.law {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid var(--line);
}
.law__item {
  position: relative;
  padding: 0 0 22px 22px;
}
.law__item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--bg);
  border: 2px solid var(--muted);
  transform: rotate(45deg);
}
.law__item.is-past::before {
  background: var(--ok);
  border-color: var(--ok);
}
.law__item.is-next::before {
  background: var(--accent);
  border-color: var(--accent);
}
.law__date {
  display: block;
  color: var(--accent2);
  font-size: 15px;
}
.law__item p {
  color: #d3d9de;
}
.law__count {
  display: block;
  margin-top: 4px;
  font: 500 12px var(--mono);
  color: var(--accent2);
}

/* inbox */
.inbox > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  overflow: hidden;
}
.mail {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #4a5560;
  border-radius: var(--radius);
  background: var(--side);
}
.mail__head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.mail__meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.mail__checks li {
  position: relative;
  padding: 2px 0 2px 22px;
  font-size: 13px;
}
.mail__order {
  margin-top: 10px;
  padding: 8px 10px;
  border-left: 3px solid var(--accent);
  background: rgba(232, 160, 32, 0.08);
  font-size: 13.5px;
}
.calc {
  margin-top: 16px;
}
.bar {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  font-size: 13px;
}
.bar__track {
  height: 10px;
  background: #10141a;
  border-radius: 2px;
  overflow: hidden;
}
.bar__fill {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  transition: width 0.9s var(--ease);
}
.bar__fill--labour {
  background: #6f8fb3;
}
.bar__fill--mat {
  background: var(--accent);
}
.calc__db {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 14px;
}
.inbox .v1 {
  display: none;
}
.anim .inbox .mail {
  opacity: 0;
  transform: translate(60px, -30px) rotate(4deg);
  transition:
    opacity 0.5s var(--ease),
    transform 0.7s var(--ease);
}
.anim .inbox .mail__checks li,
.anim .inbox .mail__order {
  opacity: 0;
  transition: opacity 0.35s;
}
.anim .inbox[data-stage] .v1 {
  display: inline;
}
.anim .inbox[data-stage] .v2 {
  display: none;
}
.anim .inbox:is([data-stage="1"], [data-stage="2"], [data-stage="3"], [data-stage="4"]) .mail {
  opacity: 1;
  transform: none;
}
.anim .inbox:is([data-stage="2"], [data-stage="3"], [data-stage="4"]) .mail__checks li {
  opacity: 1;
}
.anim .inbox .mail__checks li:nth-child(2) {
  transition-delay: 0.3s;
}
.anim .inbox .mail__checks li:nth-child(3) {
  transition-delay: 0.6s;
}
.anim .inbox:is([data-stage="3"], [data-stage="4"]) .mail__order {
  opacity: 1;
}
.anim .inbox[data-stage="4"] .v1 {
  display: none;
}
.anim .inbox[data-stage="4"] .v2 {
  display: inline;
  animation: flash 1.2s var(--ease);
}
@keyframes flash {
  from {
    color: var(--accent2);
    background: rgba(232, 160, 32, 0.25);
  }
}
.inbox:not([data-stage]) [data-replay] {
  display: none;
}

/* pricing */
.plans {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px 18px;
}
.plan--rec {
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(232, 160, 32, 0.08);
}
.plan__badge {
  position: absolute;
  top: -11px;
  left: 16px;
  background: var(--accent);
  color: var(--accent-fg);
  font: 500 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 3px;
}
.plan h3 {
  font-size: 26px;
}
.plan__price .num {
  font-size: 30px;
  color: var(--fg);
}
.plan__price small {
  color: var(--muted);
  font-size: 13px;
}
.plan__text {
  color: #c7ced5;
  font-size: 14.5px;
}
.plan__facts,
.plan__list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14.5px;
}
.plan__facts {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.plan__facts li {
  padding: 3px 0;
}
.plan__plus {
  font: 500 12px var(--mono);
  color: var(--muted);
}
.plan__list li {
  padding: 4px 0 4px 24px;
  position: relative;
}
.plan__list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 11px;
  width: 11px;
  height: 6px;
  border: solid var(--accent);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}
.plan__list li.soon {
  color: var(--muted);
}
.plan__list li.soon::before {
  border-color: var(--muted);
  border-style: dotted;
}
.tag {
  font: 500 10px var(--mono);
  text-transform: uppercase;
  border: 1px solid #4a5560;
  border-radius: 3px;
  padding: 1px 5px;
  vertical-align: 1px;
}
.plan .btn {
  margin-top: auto;
}
.fn {
  text-decoration: none;
  padding: 0 2px;
}
.allplans {
  margin-top: 16px;
  padding: 18px;
  border: 1px dashed #4a5560;
  border-radius: var(--radius);
}
.allplans h3 {
  font-size: 20px;
}
.allplans ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #d3d9de;
  display: grid;
  gap: 2px 24px;
}

/* campus */
.campus {
  display: grid;
  gap: 24px;
  border-left: 3px solid var(--campus);
  padding-left: 20px;
}

/* faq */
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details:first-of-type {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  padding: 16px 32px 16px 0;
  font-weight: 600;
  list-style: none;
  position: relative;
  min-height: var(--tap);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 12px;
  font: 500 22px var(--mono);
  color: var(--accent2);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 0 18px;
  color: #c7ced5;
  max-width: 75ch;
}

/* final + footer */
.final {
  padding: 72px 0;
  text-align: center;
}
.final h2 {
  margin: 0 auto;
}
.final .lead {
  margin: 16px auto 28px;
}
.foot {
  border-top: 1px solid var(--line);
  background: var(--side);
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
}
.foot__in {
  display: grid;
  gap: 12px;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.foot nav a {
  color: var(--fg);
  padding: 8px 0;
  font-size: 14.5px;
}
.brand--foot {
  font-size: 20px;
}

/* phones: no room beside the content, so the sections with a dust shape get more space
   above their heading (only while the animation runs) */
@media (max-width: 719px) {
  .dust-on .sec--shape {
    padding-top: 150px;
  }
  .dust-on .final .stage {
    height: 170px;
  }
}

/* content above the dust canvas */
main,
.foot {
  position: relative;
  z-index: 1;
}
/* translucent boxes */
.inv,
.vs__row,
.flow__step,
.role,
.inbox > div,
.plan {
  background: var(--glass);
  border-color: var(--line-glass);
}
/* the hero invoice a little clearer still: the shield forms behind it */
.inv {
  background: rgba(27, 33, 40, 0.42);
}
.plan--rec {
  border-color: var(--accent);
}
.role {
  border-top-color: var(--accent);
}
.phone__frame {
  background: rgba(20, 24, 29, 0.72);
}
.mail,
.inv__sent,
.phone__bar {
  background: var(--glass-deep);
}
.faq details {
  background: rgba(27, 33, 40, 0.45);
  border-color: var(--line-glass);
  padding: 0 12px;
}
.foot {
  background: rgba(15, 18, 22, 0.86);
}

/* ---------- wider screens ---------- */
@media (min-width: 720px) {
  .vs__row {
    grid-template-columns: 1fr 1.4fr;
  }
  .vs__old {
    border-bottom: 0;
    border-right: 1px dashed var(--line);
  }
  .flow {
    grid-template-columns: repeat(2, 1fr);
  }
  .plans {
    grid-template-columns: repeat(2, 1fr);
  }
  .allplans ul {
    grid-template-columns: repeat(2, 1fr);
  }
  .roles {
    grid-template-columns: repeat(3, 1fr);
  }
  .campus {
    grid-template-columns: 1.6fr 1fr;
    align-items: center;
  }
}
@media (min-width: 1000px) {
  .top__nav {
    display: flex;
    gap: 22px;
    margin-left: 32px;
  }
  .top__nav a {
    color: #c7ced5;
    text-decoration: none;
    font-size: 15px;
  }
  .top__nav a:hover {
    color: var(--accent2);
  }
  .hero {
    padding: 72px 0 88px;
    background: radial-gradient(34% 52% at 72% 50%, rgba(232, 160, 32, 0.08), transparent 75%);
  }
  .hero__in {
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 56px;
  }
  .sec {
    padding: 96px 0;
  }
  .split {
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
  }
  .flow {
    grid-template-columns: repeat(4, 1fr);
  }
  .flow__step {
    padding: 72px 18px 20px;
  }
  .flow__step::after {
    content: "";
    position: absolute;
    top: 36px;
    left: 64px;
    right: -16px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    transform-origin: left;
  }
  .flow__step:last-child::after {
    display: none;
  }
  .anim .flow__step::after {
    transform: scaleX(0);
    transition: transform 0.8s var(--ease) 0.4s;
  }
  .anim .flow__step.is-in::after {
    transform: scaleX(1);
  }
  .plans {
    grid-template-columns: repeat(4, 1fr);
  }
  .allplans ul {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    /* biome-ignore lint/complexity/noImportantStyles: reduced motion must override every animation */
    animation: none !important;
    /* biome-ignore lint/complexity/noImportantStyles: reduced motion must override every transition */
    transition: none !important;
  }
}

/* legal pages (impressum.html) */
.legal { padding-block: 48px 64px; }
.legal h1 { margin-block: 32px 24px; }
.legal h2 { margin-block: 28px 8px; font-size: 1.15rem; }
.legal p { max-width: 65ch; line-height: 1.6; }
