/* Ember's website. Static: no scripts, no cookies, nothing loaded from other hosts.
   Layout: one left-aligned 72rem column. A charcoal header and hero like Ember's app tile,
   light sections below in the dashboard's warm neutrals, and the flame's colours kept for
   what matters. Every colour is a token; light and dark are both chosen, not flipped. */

@font-face {
  font-family: "Poppins";
  src: url("fonts/poppins-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* neutrals, from Ember's dashboard */
  --page: #f9f9f7;
  --page-2: #f2f1ec;
  --surface: #fdfdfb;
  --ink: #0b0b0b;
  --text: #292825;
  --text-2: #52514e;
  --muted: #6f6d68;
  --line: #e1e0d9;
  --line-2: #cfcdc4;
  --chip: #eae8e1;
  --accent: #b84a1a; /* the flame's orange, darkened for text on light */
  --focus: #b84a1a;
  --tile: #1a1a19;
  --tile-icon: #fab219;

  /* the flame, from Ember's icon */
  --flame: #eb6834;
  --flame-hover: #f07e50;
  --amber: #fab219;
  --core: #ffecb3;
  --char: #1a1a19;

  /* header, hero, contact and footer: always night */
  --night: #121211;
  --night-2: #1a1a19;
  --night-3: #242422;
  --night-text: #f3f2ee;
  --night-muted: #aeaca3;
  --night-line: #2e2e2b;
  --night-shadow: rgba(0, 0, 0, 0.55);

  /* the receipt: always paper */
  --paper: #fbfaf6;
  --paper-ink: #1a1a19;
  --paper-muted: #66645f;
  --paper-line: #d6d3c9;
  --paper-accent: #b84a1a;

  /* runway, as an ember's heat: a dying coal to a bright flame */
  --heat-1: #8f2a12;
  --heat-2: #d4541f;
  --heat-3: #f08a24;
  --heat-4: #fab219;

  /* life states, from the dashboard */
  --good: #0a8f0a;
  --critical: #d03b3b;
  --idle: #9a988f;

  --font-display: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7rem);
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0d0d0d;
    --page-2: #151514;
    --surface: #1a1a19;
    --ink: #ffffff;
    --text: #dddbd3;
    --text-2: #c3c2b7;
    --muted: #9a988f;
    --line: #2c2c2a;
    --line-2: #3b3b38;
    --chip: #242422;
    --accent: #f28b5c;
    --focus: #f28b5c;
    --tile: #242422;
    --tile-icon: #fab219;
    --good: #2fbf2f;
    --critical: #e66767;
    --idle: #85837b;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d;
  --page-2: #151514;
  --surface: #1a1a19;
  --ink: #ffffff;
  --text: #dddbd3;
  --text-2: #c3c2b7;
  --muted: #9a988f;
  --line: #2c2c2a;
  --line-2: #3b3b38;
  --chip: #242422;
  --accent: #f28b5c;
  --focus: #f28b5c;
  --tile: #242422;
  --tile-icon: #fab219;
  --good: #2fbf2f;
  --critical: #e66767;
  --idle: #85837b;
}

/* ---- base ---------------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 1.5rem + 4.6vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.1875rem;
  line-height: 1.3;
  letter-spacing: -0.012em;
}

p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--core);
  color: var(--char);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--flame);
  color: var(--char);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: calc(env(safe-area-inset-top, 0px) + 0.75rem);
}

/* ---- header -------------------------------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 10;
  background: var(--night);
  color: var(--night-text);
  border-bottom: 1px solid var(--night-line);
}

@media (min-width: 1100px) {
  .site-header {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
  }
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding-block: 0.8rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-right: auto;
  text-decoration: none;
}

.brand-mark {
  width: 1.25rem;
  height: 1.95rem;
}

.brand-name {
  color: var(--flame);
  font: 700 1.35rem/1 var(--font-display);
  letter-spacing: -0.02em;
}

.site-nav {
  order: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 1.25rem;
  width: 100%;
}

.site-nav a {
  padding-block: 0.3rem;
  color: var(--night-muted);
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--night-text);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  border: 1px solid color-mix(in srgb, var(--night-text) 25%, transparent);
  border-radius: 999px;
  color: var(--night-text);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.header-cta:hover {
  border-color: var(--flame);
}

.header-cta .icon {
  width: 1rem;
  height: 1rem;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid color-mix(in srgb, var(--night-text) 22%, transparent);
  border-radius: 999px;
}

.lang-switch a {
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  color: var(--night-muted);
  font: 700 0.75rem/1.2 var(--font-display);
  letter-spacing: 0.06em;
  text-decoration: none;
}

.lang-switch a:hover {
  color: var(--night-text);
}

.lang-switch a[aria-current] {
  background: var(--night-3);
  color: var(--night-text);
}

.site-header :focus-visible,
.hero :focus-visible,
.contact :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--amber);
}

@media (min-width: 1100px) {
  .header-row {
    column-gap: 1.75rem;
  }

  .site-nav {
    order: 0;
    flex-wrap: nowrap;
    gap: 1.5rem;
    width: auto;
  }
}

/* ---- hero ---------------------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 8vw, 6.5rem);
  background: var(--night);
  color: var(--night-text);
}

.hero-glow {
  position: absolute;
  z-index: -1;
  right: -25%;
  bottom: -55%;
  width: 95%;
  height: 120%;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--flame) 36%, transparent),
    color-mix(in srgb, var(--amber) 9%, transparent) 55%,
    transparent 78%
  );
  pointer-events: none;
}

.sparks {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}

.sparks i {
  position: absolute;
  bottom: -8px;
  left: var(--x);
  width: var(--s, 3px);
  height: var(--s, 3px);
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px 1px color-mix(in srgb, var(--flame) 75%, transparent);
  opacity: 0;
  animation: rise var(--d) linear var(--delay) infinite;
}

.sparks i:nth-child(1) { --x: 58%; --d: 9s; --delay: -1s; --drift: -30px; }
.sparks i:nth-child(2) { --x: 66%; --d: 12s; --delay: -6s; --drift: 25px; --s: 2px; }
.sparks i:nth-child(3) { --x: 72%; --d: 10s; --delay: -3s; --drift: -15px; }
.sparks i:nth-child(4) { --x: 79%; --d: 14s; --delay: -9s; --drift: 40px; --s: 2px; }
.sparks i:nth-child(5) { --x: 84%; --d: 11s; --delay: -4.5s; --drift: -35px; --s: 4px; }
.sparks i:nth-child(6) { --x: 90%; --d: 13s; --delay: -11s; --drift: 20px; }
.sparks i:nth-child(7) { --x: 63%; --d: 15s; --delay: -7.5s; --drift: 45px; --s: 2px; }
.sparks i:nth-child(8) { --x: 95%; --d: 10.5s; --delay: -2.5s; --drift: -20px; --s: 2px; }
.sparks i:nth-child(9) { --x: 76%; --d: 16s; --delay: -13s; --drift: -50px; --s: 3px; }
.sparks i:nth-child(10) { --x: 69%; --d: 8.5s; --delay: -5.5s; --drift: 15px; --s: 2px; }

@keyframes rise {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  12% {
    opacity: 0.95;
  }
  70% {
    opacity: 0.5;
  }
  100% {
    transform: translate(var(--drift), -78vh);
    opacity: 0;
  }
}

.hero-grid {
  display: grid;
  gap: clamp(3rem, 6vw, 4rem);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  }
}

.hero .eyebrow {
  color: var(--amber);
}

.hero h1 {
  max-width: 13ch;
  margin-top: 1.25rem;
  color: var(--night-text);
}

.hero h1:lang(de) {
  max-width: 16ch;
}

.burn {
  background: linear-gradient(95deg, var(--amber) 10%, var(--flame) 75%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  max-width: 36rem;
  margin-top: 1.75rem;
  color: var(--night-text);
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem);
  line-height: 1.6;
}

.hero-note {
  max-width: 36rem;
  margin-top: 1rem;
  color: var(--night-muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 2.25rem;
  padding: 0;
  list-style: none;
  color: var(--night-muted);
  font-size: 0.875rem;
}

.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-facts li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--flame);
}

/* ---- buttons ------------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 700 1rem/1.1 var(--font-display);
  text-decoration: none;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    transform 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn .icon {
  width: 1.1rem;
  height: 1.1rem;
  stroke-width: 2.25;
}

.btn-primary {
  background: var(--flame);
  color: var(--char);
}

.btn-primary:hover {
  background: var(--flame-hover);
}

.btn-ghost {
  border-color: color-mix(in srgb, var(--night-text) 30%, transparent);
  color: var(--night-text);
}

.btn-ghost:hover {
  border-color: var(--night-text);
}

.btn-ink {
  background: var(--ink);
  color: var(--page);
}

/* ---- the receipt --------------------------------------------------------------------------- */

.receipt {
  justify-self: center;
  width: min(100%, 25.5rem);
  filter: drop-shadow(0 28px 40px var(--night-shadow))
    drop-shadow(0 0 70px color-mix(in srgb, var(--flame) 22%, transparent));
}

@media (min-width: 1024px) {
  .receipt {
    justify-self: end;
    transform: rotate(1.25deg);
  }
}

.receipt-paper {
  padding: 1.6rem clamp(1rem, 4vw, 1.5rem) 2.2rem;
  background: var(--paper);
  color: var(--paper-ink);
  font: 400 0.8125rem/1.5 var(--font-mono);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
}

.receipt-head {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--paper-line);
  text-align: center;
}

.receipt-logo {
  width: 2.1rem;
  height: 2.1rem;
}

.receipt-name {
  font: 700 1rem/1.2 var(--font-display);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.receipt-meta {
  color: var(--paper-muted);
  font-size: 0.75rem;
}

.receipt table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.receipt th,
.receipt td {
  padding: 0.55rem 0;
  font-weight: 400;
  text-align: left;
  vertical-align: top;
}

.receipt td {
  padding-left: 1rem;
  text-align: right;
  white-space: nowrap;
}

.receipt tbody tr + tr th,
.receipt tbody tr + tr td {
  border-top: 1px dotted var(--paper-line);
}

.step-tag {
  display: block;
  color: var(--paper-muted);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.waits {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0 0.45rem;
  border: 1px solid var(--paper-accent);
  border-radius: 999px;
  color: var(--paper-accent);
  font-size: 0.6875rem;
  line-height: 1.5;
}

.receipt tfoot th,
.receipt tfoot td {
  padding-top: 0.7rem;
  border-top: 1px dashed var(--paper-line);
}

.receipt tfoot tr:first-child th,
.receipt tfoot tr:first-child td {
  font-size: 0.9375rem;
  font-weight: 700;
}

.receipt tfoot tr + tr th,
.receipt tfoot tr + tr td {
  padding-top: 0.2rem;
  border-top: 0;
  color: var(--paper-muted);
}

.receipt-foot {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--paper-line);
  color: var(--paper-muted);
  font-size: 0.6875rem;
  line-height: 1.5;
  text-align: center;
}

/* ---- sections ------------------------------------------------------------------------------ */

.section {
  padding-block: var(--section);
  scroll-margin-top: 4rem;
}

.section-alt {
  background: var(--page-2);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--accent);
  font: 700 0.8125rem/1.2 var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--flame);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--flame) 22%, transparent),
    0 0 12px color-mix(in srgb, var(--amber) 70%, transparent);
}

.section-head {
  max-width: 47rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.section-head h2 {
  margin-top: 1.1rem;
}

.section-head .lead {
  margin-top: 1.25rem;
  color: var(--text-2);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.6;
}

.subhead {
  margin: clamp(3.5rem, 7vw, 5rem) 0 1.75rem;
  font-size: clamp(1.4rem, 1.15rem + 0.9vw, 1.75rem);
  letter-spacing: -0.022em;
}

.fine {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.tile {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 22%;
  background: var(--tile);
  color: var(--tile-icon);
}

.tile .icon {
  width: 1.5rem;
  height: 1.5rem;
}

/* ---- the idea ------------------------------------------------------------------------------ */

.trio {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 900px) {
  .trio {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.fact h3 {
  margin-top: 1.25rem;
}

.fact p {
  margin-top: 0.6rem;
  color: var(--text-2);
}

.quote {
  max-width: 60rem;
  margin-top: clamp(3.5rem, 8vw, 5.5rem);
}

.quote-mark {
  display: block;
  width: clamp(2.5rem, 2rem + 1.5vw, 3.25rem);
  height: clamp(1.8rem, 1.45rem + 1.1vw, 2.35rem);
  margin-bottom: 1.1rem;
  fill: var(--flame);
}

.quote p {
  color: var(--ink);
  font: 700 clamp(1.5rem, 1.05rem + 1.9vw, 2.4rem)/1.24 var(--font-display);
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.quote footer {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ---- the goal ------------------------------------------------------------------------------ */

.goal-grid {
  display: grid;
  gap: clamp(3rem, 6vw, 4.5rem);
}

@media (min-width: 960px) {
  .goal-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }
}

.priorities {
  display: grid;
  gap: 2rem;
  padding: 0;
  list-style: none;
}

.priorities li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1.1rem;
}

.rank {
  color: var(--accent);
  font: 700 2.75rem/0.95 var(--font-display);
  letter-spacing: -0.04em;
}

.priorities p {
  margin-top: 0.45rem;
  color: var(--text-2);
}

.legs {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-2);
  color: var(--text-2);
}

.goal-card {
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
}

.goal-card figcaption p {
  margin-top: 0.4rem;
  color: var(--text-2);
}

.ladder-plot {
  --unit: 3.4rem;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 0.9rem;
  height: calc(var(--unit) * 3 + 1.5rem);
  margin-top: 1.75rem;
  border-bottom: 2px solid var(--ink);
}

.bar {
  display: flex;
  justify-content: center;
  padding-top: 0.45rem;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--amber), var(--flame));
  color: var(--char);
  font: 700 1rem/1 var(--font-display);
  font-variant-numeric: tabular-nums;
}

.bar-1 {
  height: var(--unit);
}

.bar-2 {
  height: calc(var(--unit) * 2);
}

.bar-3 {
  height: calc(var(--unit) * 3);
}

.spend-line {
  position: absolute;
  right: 0;
  bottom: var(--unit);
  left: 0;
  border-top: 2px dashed var(--ink);
}

.spend-line span {
  position: absolute;
  bottom: 0.35rem;
  left: 0;
  color: var(--text-2);
  font-size: 0.75rem;
  line-height: 1.2;
}

.ladder-labels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 0.75rem;
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.ladder-labels strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.875rem;
}

.goal-card .fine {
  margin-top: 1.5rem;
}

/* ---- how it works -------------------------------------------------------------------------- */

.cycle {
  display: grid;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  padding: 0 0 2.25rem 4.25rem;
}

.step::before {
  content: "";
  position: absolute;
  top: 3rem;
  bottom: 0.25rem;
  left: calc(1.4rem - 1px);
  width: 2px;
  background: var(--line-2);
}

.step:last-child {
  padding-bottom: 0;
}

.step:last-child::before {
  display: none;
}

.step-icon {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--tile);
  color: var(--tile-icon);
}

.step-num {
  color: var(--accent);
  font: 700 0.75rem/1.2 var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.step h3 {
  margin-top: 0.2rem;
  font-size: 1.3rem;
}

.step p {
  margin-top: 0.45rem;
  color: var(--text-2);
  font-size: 0.96875rem;
}

@media (min-width: 1024px) {
  .cycle {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.75rem;
  }

  .step,
  .step:last-child {
    padding: 4.1rem 0 0;
  }

  .step::before,
  .step:last-child::before {
    display: block;
    top: calc(1.4rem - 1px);
    right: -1.75rem;
    bottom: auto;
    left: 3.6rem;
    width: auto;
    height: 2px;
  }

  .step:last-child::before {
    right: 0;
    background: linear-gradient(90deg, var(--line-2), transparent);
  }
}

.again {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.25rem;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.again .icon {
  color: var(--accent);
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 54rem;
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.note .icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.1rem;
  color: var(--accent);
}

.note strong {
  color: var(--ink);
}

.toolkit {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

@media (min-width: 640px) {
  .toolkit {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .toolkit {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tool {
  padding: 1.6rem 1.6rem 1.75rem;
  background: var(--page);
}

.tool h4 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.tool h4 .icon {
  color: var(--accent);
}

.tool p {
  margin-top: 0.6rem;
  color: var(--text-2);
  font-size: 0.96875rem;
}

.owner {
  display: grid;
  gap: 1.5rem 3rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: calc(var(--radius) + 4px);
  background: var(--night-2);
  color: var(--night-text);
}

@media (min-width: 900px) {
  .owner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: center;
  }
}

.owner h3 {
  color: var(--night-text);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.owner p {
  margin-top: 0.6rem;
  color: var(--night-muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--chip);
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.35;
}

.owner .chips li {
  border: 1px solid var(--night-line);
  background: var(--night-3);
  color: var(--night-text);
}

/* ---- money --------------------------------------------------------------------------------- */

.money-grid {
  display: grid;
  gap: clamp(3rem, 6vw, 4.5rem);
}

@media (min-width: 960px) {
  .money-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
  }
}

.figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.figures div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.3rem;
  padding: 1.2rem 1.25rem 1.15rem;
  background: var(--surface);
}

.figures dt {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.35;
}

.figures dd {
  color: var(--ink);
  font: 700 clamp(1.75rem, 1.45rem + 1.1vw, 2.25rem)/1.05 var(--font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.money-copy .fine {
  margin-top: 0.75rem;
}

.money-copy > p:not(.fine) {
  margin-top: 1.5rem;
  color: var(--text-2);
}

.runway h3 {
  font-size: 1.3rem;
}

.runway figcaption p {
  margin-top: 0.45rem;
  color: var(--text-2);
}

.meter {
  margin-top: 1.75rem;
}

.meter-bar {
  display: grid;
  grid-template-columns: 2fr 13fr 15fr 15fr;
  height: 0.9rem;
  overflow: hidden;
  border-radius: 999px;
}

.meter-bar span:nth-child(1),
.swatch-1 {
  background: var(--heat-1);
}

.meter-bar span:nth-child(2),
.swatch-2 {
  background: var(--heat-2);
}

.meter-bar span:nth-child(3),
.swatch-3 {
  background: var(--heat-3);
}

.meter-bar span:nth-child(4) {
  background: linear-gradient(90deg, var(--heat-4), var(--core));
}

.swatch-4 {
  background: var(--heat-4);
}

.meter-ticks {
  position: relative;
  height: 1.5rem;
  margin-top: 0.4rem;
  color: var(--muted);
  font: 400 0.75rem/1.5 var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.meter-ticks span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}

.meter-ticks span:nth-child(1) {
  left: 0;
  transform: none;
}

.meter-ticks span:nth-child(2) {
  left: 4.444%;
}

.meter-ticks span:nth-child(3) {
  left: 33.333%;
}

.meter-ticks span:nth-child(4) {
  left: 66.667%;
}

.modes {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.modes div {
  display: grid;
  grid-template-columns: 9.25rem minmax(0, 1fr);
  align-items: baseline;
  gap: 0.25rem 1rem;
}

.modes dt {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
}

.modes dd {
  color: var(--text-2);
  font-size: 0.9375rem;
}

.swatch {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  margin-right: 0.55rem;
  border-radius: 3px;
  vertical-align: -0.05em;
}

@media (max-width: 480px) {
  .modes div {
    grid-template-columns: minmax(0, 1fr);
  }
}

.vitals {
  display: grid;
  gap: 1.5rem;
  margin-top: clamp(3.5rem, 7vw, 5rem);
}

@media (min-width: 900px) {
  .vitals {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: start;
  }
}

.states h3 {
  font-size: 1.3rem;
}

.states dl {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.states dl div {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  align-items: baseline;
  gap: 0.25rem 1rem;
}

.states dt {
  color: var(--ink);
  font: 400 0.9375rem/1.6 var(--font-mono);
}

.states dd {
  color: var(--text-2);
  font-size: 0.9375rem;
}

.dot {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  margin-right: 0.6rem;
  border-radius: 50%;
  background: var(--idle);
  vertical-align: 0.02em;
}

.dot-alive {
  background: var(--good);
}

.dot-critical {
  background: var(--critical);
}

.dot-dead {
  background: var(--ink);
}

.dot-unfunded {
  border: 2px solid var(--idle);
  background: transparent;
}

@media (max-width: 480px) {
  .states dl div {
    grid-template-columns: minmax(0, 1fr);
  }
}

.sensor {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.sensor figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 1.25rem 0.5rem;
  color: var(--ink);
  font-weight: 650;
}

.sensor figcaption span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 400;
}

.sensor ul {
  padding: 0 0 0.6rem;
  list-style: none;
}

.sensor li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 1.25rem;
  font-size: 0.9375rem;
}

.sensor li .icon {
  color: var(--muted);
}

.sensor li span:last-child {
  margin-left: auto;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---- guardrails ---------------------------------------------------------------------------- */

.rails {
  display: grid;
  gap: clamp(2rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem);
}

@media (min-width: 640px) {
  .rails {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .rails {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.rail {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-2);
}

.rail .icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--accent);
}

.rail h3 {
  margin-top: 0.9rem;
  font-size: 1.0625rem;
}

.rail p {
  margin-top: 0.5rem;
  color: var(--text-2);
  font-size: 0.96875rem;
}

.never {
  margin-top: clamp(3.5rem, 7vw, 4.5rem);
}

.never h3 {
  margin-bottom: 1.1rem;
  font-size: 1.3rem;
}

.chips-never li::before {
  content: "";
  flex: none;
  width: 0.8em;
  height: 0.8em;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  background: linear-gradient(
    45deg,
    transparent calc(50% - 0.75px),
    var(--accent) calc(50% - 0.75px) calc(50% + 0.75px),
    transparent calc(50% + 0.75px)
  );
}

/* ---- products ------------------------------------------------------------------------------ */

.products {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 740px) {
  .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.product {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.product h3 {
  margin-top: 0.5rem;
}

.product p {
  color: var(--text-2);
}

.formats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding: 0.75rem 0 0;
  list-style: none;
}

.formats li {
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--chip);
  color: var(--text-2);
  font: 400 0.75rem/1.5 var(--font-mono);
}

.made {
  display: grid;
  gap: 2rem 3rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

@media (min-width: 900px) {
  .made {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    align-items: start;
  }
}

.made h3 {
  font-size: 1.3rem;
}

.made p {
  margin-top: 0.6rem;
  color: var(--text-2);
}

.shop-card {
  padding: 1.5rem;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--chip);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
}

.status::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--heat-3);
}

.shop-card h3 {
  margin-top: 0.9rem;
  font-size: 1.125rem;
}

.shop-card p {
  margin-top: 0.4rem;
  color: var(--text-2);
  font-size: 0.9375rem;
}

/* ---- built in the open --------------------------------------------------------------------- */

.open-grid {
  display: grid;
  gap: clamp(3rem, 6vw, 4.5rem);
}

@media (min-width: 960px) {
  .open-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
  }
}

.open-grid .section-head {
  margin-bottom: 0;
}

.open-grid .btn {
  margin-top: 2rem;
}

.release {
  margin-top: 1.25rem;
  color: var(--muted);
  font: 400 0.8125rem/1.6 var(--font-mono);
}

.versions {
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--line-2);
}

.versions li {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.65rem 0 0.65rem 1.5rem;
}

.versions li::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  left: -7px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--line-2);
  border-radius: 50%;
  background: var(--page);
}

.versions li:last-child::before {
  border-color: var(--flame);
  background: var(--flame);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--flame) 22%, transparent),
    0 0 14px color-mix(in srgb, var(--amber) 70%, transparent);
}

.versions .v {
  padding-top: 0.1rem;
  color: var(--accent);
  font: 600 0.9375rem/1.55 var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.versions p {
  color: var(--text-2);
  font-size: 0.96875rem;
}

/* ---- FAQ ----------------------------------------------------------------------------------- */

.faq {
  display: grid;
  gap: 2.25rem 3.5rem;
}

@media (min-width: 900px) {
  .faq {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.faq dt {
  color: var(--ink);
  font: 700 1.125rem/1.35 var(--font-display);
  letter-spacing: -0.012em;
}

.faq dd {
  margin-top: 0.55rem;
  color: var(--text-2);
}

/* ---- contact and footer -------------------------------------------------------------------- */

.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--section) clamp(3.5rem, 7vw, 5rem);
  background: var(--night);
  color: var(--night-text);
}

.contact::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -10%;
  bottom: -70%;
  left: 20%;
  height: 130%;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--flame) 26%, transparent),
    color-mix(in srgb, var(--amber) 6%, transparent) 60%,
    transparent 80%
  );
  pointer-events: none;
}

.contact .eyebrow {
  color: var(--amber);
}

.contact h2 {
  max-width: 18ch;
  margin-top: 1.1rem;
  color: var(--night-text);
}

.contact p {
  max-width: 40rem;
  margin-top: 1.1rem;
  color: var(--night-muted);
}

.mail-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 100%;
  margin-top: 2.25rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--flame);
  color: var(--night-text);
  font: 700 clamp(1.1rem, 0.8rem + 1.5vw, 1.85rem)/1.25 var(--font-display);
  letter-spacing: -0.02em;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.mail-link:hover {
  border-bottom-color: var(--amber);
}

.mail-link .icon {
  width: 1.2em;
  height: 1.2em;
  color: var(--flame);
}

.site-footer {
  padding-block: 2.5rem calc(2.5rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--night-line);
  background: var(--night);
  color: var(--night-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--night-text);
}

.footer-brand .brand-mark {
  width: 1rem;
  height: 1.55rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--night-text);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-notes {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--night-line);
}

.footer-notes p {
  max-width: 60rem;
}

/* ---- legal pages --------------------------------------------------------------------------- */

.legal {
  padding-block: clamp(3rem, 7vw, 5rem) var(--section);
}

.legal .wrap {
  max-width: calc(46rem + 2 * var(--gutter));
}

.legal h1 {
  margin-top: 1.1rem;
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.2rem);
  -webkit-hyphens: manual;
  hyphens: manual;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.legal .intro {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.legal h2 {
  margin-top: 2.5rem;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.012em;
}

.legal p {
  margin-top: 0.75rem;
}

.back-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin-top: 3rem;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.back .icon {
  transform: scaleX(-1);
}

/* ---- motion -------------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .sparks {
    display: none;
  }
}

@media print {
  .site-header,
  .sparks,
  .hero-glow,
  .skip {
    display: none;
  }
}
