/* ARCA landing · every stylesheet, in cascade order. Order matters: rules of equal weight in a later
   file win (the pricing button's .end-btn in pricing.css over .hero-cta in cta.css, say), so a new
   file goes where its rules belong in this list, never just at the end. *//* ARCA landing · design tokens
   Colours from the brand palette, type from the 1440px desktop design.
   Raw scales first, then roles. Use roles in components; raw steps only when
   a role does not exist yet. */

/* ---------- fonts ---------- */
@font-face {
  font-family: 'Clash Grotesk';
  src: url('/assets/ClashGrotesk-Medium-BGtPyJ0c.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Clash Grotesk';
  src: url('/assets/ClashGrotesk-Semibold-B2Z1YXWT.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
/* Hosted here, not loaded from Google: visitors' addresses stay off Google's servers. */
@font-face {
  font-family: 'Instrument Sans';
  src: url('/assets/InstrumentSans-Variable-BbzFLZTg.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/IBMPlexMono-200-Cj_OANUP.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/IBMPlexMono-400-DMJ8VG8y.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/IBMPlexMono-500-DSY6xOcd.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/IBMPlexMono-700-7sUh57Bg.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---------- colour · raw ---------- */
  --neutral-50: #f4f4f4;
  --neutral-100: #eeeeee;
  --neutral-200: #d0d0d0;
  --neutral-300: #b1b1b1;
  --neutral-400: #8f8f8f;
  --neutral-500: #6b6b6b;
  --neutral-600: #424242;
  --neutral-700: #333333;
  --neutral-800: #262626;
  --neutral-900: #1c1c1c;
  --neutral-950: #141414;

  --blue-50: #eff6fe;
  --blue-100: #dcebfd;
  --blue-200: #c0dcfe;
  --blue-300: #a0cbff;
  --blue-400: #7cb8ff;
  --blue-500: #57a3f9;
  --blue-600: #3d87d8;
  --blue-700: #226bb8;
  --blue-800: #0e5193;
  --blue-900: #012e5a;

  --orange-50: #fff0ea;
  --orange-100: #fee1d5;
  --orange-200: #fec5b0;
  --orange-300: #ffa385;
  --orange-400: #ff7e5b;
  --orange-500: #fd4c23;
  --orange-600: #d63b00;
  --orange-700: #af2f02;
  --orange-800: #862100;
  --orange-900: #561200;

  /* brand names */
  --paper: var(--neutral-100);
  --concrete: var(--neutral-300);
  --stone: var(--neutral-600);
  --ink: var(--neutral-950);
  --blue: var(--blue-500);
  --orange: var(--orange-500);

  /* ---------- colour · roles (dark page) ---------- */
  --bg: var(--neutral-950); /* page */
  --bg-panel: var(--neutral-900); /* cards, panels */
  --bg-raised: var(--neutral-800); /* raised surfaces */
  --bg-mock: var(--neutral-50); /* lightest surface inside UI mocks */
  --line: var(--neutral-800); /* hairlines */
  --line-strong: var(--neutral-700); /* borders on dark */
  --line-ghost: var(--neutral-600); /* ghost buttons, strong borders */
  --text: var(--neutral-100); /* headlines */
  --text-body: var(--neutral-300); /* body on dark */
  --text-label: var(--neutral-400); /* labels, secondary */
  --text-subtle: var(--neutral-500); /* inactive numbers */
  --accent: var(--blue-500);
  --accent-2: var(--orange-500);
  --on-accent: var(--neutral-950);
  --btn-bg: var(--neutral-100); /* primary button on dark: paper */
  --btn-fg: var(--neutral-950);

  /* ---------- type · families ---------- */
  --f-head: 'Clash Grotesk', 'Instrument Sans', system-ui, sans-serif;
  --f-body: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  /* ---------- type · line heights (unitless) ---------- */
  --lh-tight: 1;
  --lh-head: 1.15;
  --lh-small: 1.45;
  --lh-body: 1.5;

  /* ---------- type · scale (px at 1440) ---------- */
  --t-hero: 64px; /* Clash 600 */
  --t-section: 48px; /* Clash 600 */
  --t-cta: 40px; /* Clash 600 */
  --t-feature: 24px; /* Clash 500, nav labels, numbered nav (mono 200) */
  --t-body: 16px; /* Instrument 400 · buttons 600 · terminal mono 400/700 */
  --t-small: 14px; /* Instrument 400 footer · mono 400 caption */
  --t-micro: 12px; /* inside illustrations */

  /* ---------- layout ---------- */
  --page-w: 1440px;
  --pad: 40px;
  --gap: 24px;
  --w-hero-copy: 507px;
  --w-text-col: 416px;
  --w-card-copy: 298.5px;
}

/* ---------- layout · container ---------- */
:root {
  --margin: 112px; /* side margin at 1440 */
  --content-w: calc(var(--page-w) - 2 * var(--margin)); /* 1216px */

  /* page grid: 12 columns, 40px gutters. At 1216 a column is 64.67px.
     4 columns = 378.67 (feature card), 7 columns = 692.67 (hero box). */
  --cols: 12;
  --gutter: 40px;

  --section-gap: 112px; /* space between page sections */
}

/* ---------- relief (footer.js) ---------- */
:root {
  --relief-bg: var(--neutral-950);
  --relief-module: #5a5a5a; /* between neutral 500 and 600: the modules' resting grey */
  --relief-hot: var(--neutral-200); /* where the light hits a module hardest */
  --relief-lit: var(--neutral-100); /* the lockup under the light */
  --relief-rest: var(--neutral-300); /* the lockup's 50% dither at rest */
}

/* ---------- edge dither ---------- */
:root {
  --edge-dither: var(--neutral-900); /* pixel colour on the page */
  --edge-dither-side: 112px; /* width of the left and right zones */
  --edge-dither-bottom: 128px; /* height of the bottom zone */
}

/* ---------- responsive ----------
   Desktop is the 1440 design. Tablet and mobile values are proposals:
   the spec defines no smaller scale yet. */
@media (min-width: 1280px) and (max-width: 1439px) {
  /* desktop, below the design width */
  :root {
    --margin: clamp(64px, calc(64px + (100vw - 1280px) * 0.3), 112px); /* 64 → 112 */
    --t-hero: 60px; /* widest line is 473px, fits the narrowest copy column (~485) */
  }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  /* small desktop */
  :root {
    --margin: 64px;
    --t-hero: 52px; /* widest line is 410px; box takes 8 columns here */
    --hero-pad: 64px;
  }
}
@media (max-width: 1023px) {
  /* tablet */
  :root {
    --margin: 40px;
    --cols: 8;
    --gutter: 24px;
    --t-hero: 52px;
    --hero-pad: 40px;
    --hero-band: 400px;
    --section-gap: 88px;
    --t-section: 40px;
  }
}
@media (max-width: 639px) {
  /* mobile */
  :root {
    --margin: 16px;
    --cols: 4;
    --gutter: 16px;
    --t-hero: 40px;
    --hero-pad: 24px;
    --hero-band: 260px;
    --section-gap: 72px;
    --t-section: 32px;
    --t-feature: 20px;
  }
}
/* ARCA landing · base reset and page defaults */
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--t-body)/var(--lh-body) var(--f-body);
  font-variation-settings: 'wdth' 100;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
p,
h1,
h2,
h3,
h4,
ul,
ol,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
img,
svg,
canvas {
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  width: min(100% - 2 * var(--margin), var(--content-w));
  margin-inline: auto;
}
.grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gutter);
}

/* edge dither canvas sits behind everything, covering the whole page */
body {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}
.edge-dither {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden; /* its canvas holds whole 8px squares; the last ones may reach past the page */
}

/* visually hidden, still read by screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* sections sit --section-gap apart, and the last one keeps the same space below it */
main > section + section {
  margin-top: var(--section-gap);
}
main {
  padding-bottom: var(--section-gap);
}

/* text selection in the brand colours: Build blue with ink text */
::selection {
  background: var(--blue-500);
  color: var(--neutral-950);
}
.nowrap {
  white-space: nowrap;
}
/* ARCA landing · type styles
   One class per role from the type spec. Sizes are the 1440px desktop values;
   no mobile scale is defined yet. */

/* Clash Grotesk ------------------------------------------------ */
.t-hero {
  font: 600 var(--t-hero)/var(--lh-head) var(--f-head);
  letter-spacing: 0;
}
.t-section {
  font: 600 var(--t-section)/var(--lh-head) var(--f-head);
  letter-spacing: 0;
}
.t-cta {
  font: 600 var(--t-cta)/var(--lh-head) var(--f-head);
  letter-spacing: 0;
}
.t-feature {
  font: 500 var(--t-feature)/var(--lh-head) var(--f-head);
  letter-spacing: 0;
}
.t-nav {
  font: 500 var(--t-feature)/var(--lh-head) var(--f-head);
  letter-spacing: 0;
}

/* Instrument Sans ---------------------------------------------- */
.t-body {
  font: 400 var(--t-body)/var(--lh-body) var(--f-body);
  letter-spacing: 0;
}
.t-button {
  font: 600 var(--t-body)/var(--lh-tight) var(--f-body);
  letter-spacing: 0.01em;
}
.t-footer {
  font: 400 var(--t-small)/var(--lh-small) var(--f-body);
  letter-spacing: 0;
}

/* IBM Plex Mono ------------------------------------------------ */
.t-caption {
  font: 400 var(--t-small)/var(--lh-small) var(--f-mono);
  letter-spacing: 0;
}
.t-number {
  font: 200 var(--t-feature)/var(--lh-head) var(--f-mono);
  letter-spacing: 0;
}
.t-terminal {
  font: 400 var(--t-body)/var(--lh-head) var(--f-mono);
  letter-spacing: 0;
}
.t-prompt {
  font: 700 var(--t-body)/var(--lh-head) var(--f-mono);
  letter-spacing: 0;
}

/* Inside the feature illustrations (line-height: normal) --------- */
.i-price {
  font: 600 24px/normal var(--f-body);
}
.i-action {
  font: 500 16px/normal var(--f-body);
}
.i-label {
  font: 500 14px/normal var(--f-body);
}
.i-support {
  font: 400 14px/normal var(--f-body);
}
.i-title {
  font: 600 14px/normal var(--f-body);
  letter-spacing: 0.01em;
}
.i-prop {
  font: 400 12px/normal var(--f-body);
  letter-spacing: 0.01em;
}
.i-meta {
  font: 400 12px/normal var(--f-body);
}
.i-branch {
  font: 500 12px/normal var(--f-mono);
}
.i-value {
  font: 400 12px/normal var(--f-mono);
}
.i-sep {
  font: 700 11px/normal var(--f-mono);
}
/* ARCA landing · nav */
.nav {
  padding-block: 24px;
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* 32px frame with 8px inset, logo 16px tall centred inside it.
   The frame's left edge sits on the content edge. */
.nav .lockup {
  display: flex;
  align-items: center;
  height: 32px;
  padding-inline: 8px;
  color: var(--neutral-50);
}
.nav .lockup svg {
  height: 16px;
  width: auto;
}

/* small outlined download button on the right; fills on hover, instantly */
.nav-dl {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding-inline: 12px;
  font: 600 14px/1 var(--f-body);
  letter-spacing: 0.01em;
  color: var(--neutral-50);
  box-shadow: inset 0 0 0 1px var(--neutral-50);
}
.nav-dl:hover {
  background: var(--neutral-50);
  color: var(--neutral-950);
}

/* sticky: the nav stays at the top. Once you scroll (nav.js adds .is-stuck) it slims down,
   gets the page colour behind it and its Download fills in. No backdrop blur: it re-blurred on
   every scroll frame. */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  transition:
    padding 0.25s ease,
    margin 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}
/* it slims by 24px, and gives that space back below itself, so nothing under it moves */
.nav.is-stuck {
  padding-block: 12px;
  margin-bottom: 24px;
  background: color-mix(in srgb, var(--neutral-950) 97%, transparent);
  box-shadow: 0 1px 0 var(--neutral-800);
}
.nav.is-stuck .nav-dl {
  background: var(--neutral-50);
  color: var(--neutral-950);
}
.nav.is-stuck .nav-dl:hover {
  background: transparent;
  color: var(--neutral-50);
}
/* phones: a 44px touch area around the small button */
@media (max-width: 767px) {
  .nav-dl {
    position: relative;
  }
  .nav-dl::after {
    content: '';
    position: absolute;
    inset: -6px -4px;
  }
}
/* ARCA landing · hero
   Left: a neutral 900 box on columns 1–7 with 80px padding.
   Right: the dithered symbol on columns 8–12. The field also takes the
   gutter between them, so the dither starts right at the box edge. */

.hero .grid {
  align-items: stretch;
}

.hero-box {
  grid-column: 1 / 8;
  background: var(--neutral-900);
  padding: var(--hero-pad, 80px);
  color: var(--neutral-50);
}
.hero-copy {
  max-width: var(--w-hero-copy);
}

.hero-box h1 {
  margin: 0;
}
.hero-box .t-body {
  margin-top: 24px;
}
/* desktop: the hero lede steps up to 18px so it balances the 64px headline */
@media (min-width: 1024px) {
  .hero-box .t-body {
    font-size: 18px;
  }
}

.hero-agents {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.hero-agents .logos {
  display: flex;
  align-items: center;
  gap: 4px;
}
.hero-agents svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.hero-field {
  grid-column: 8 / -1;
  margin-left: calc(-1 * var(--gutter));
  position: relative;
  min-height: 0;
}
.hero-field canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-field {
  color: var(--neutral-50);
} /* the canvas reads its pixel colour from here */

/* the headline A/B test (lib/headlineTest.ts): only the visitor's headline shows; a when none was picked */
html:not([data-headline='b']) .headline-b,
html[data-headline='b'] .headline-a {
  display: none;
}

/* ---------- motion ---------- */
/* copy snaps in on beats; hidden only while motion is on */
.motion .hero [data-beat]:not(.is-in) {
  visibility: hidden;
}

/* "idea" arrives pixelated and sharpens into real type. While it is
   pixelated the text is transparent (still selectable and read aloud) and a
   canvas draws the pixels on top. */
.px-word {
  position: relative;
  display: inline-block;
}
.px-word .px-base {
  display: inline-block;
  width: 0;
  height: 0;
  vertical-align: baseline;
}
.px-word .px-canvas {
  position: absolute;
  pointer-events: none;
  display: none;
}
.px-word.is-px {
  color: transparent;
}
.px-word.is-px .px-canvas {
  display: block;
}

/* small desktop: the box takes 8 columns so the headline keeps 3 lines */
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero-box {
    grid-column: 1 / 9;
  }
  .hero-field {
    grid-column: 9 / -1;
  }
}

/* tablet and mobile: copy first, then the symbol in a band below it.
   The band keeps the whole symbol and shrinks it, never crops it. */
@media (max-width: 1023px) {
  .hero-box {
    grid-column: 1 / -1;
  }
  .hero-field {
    grid-column: 1 / -1;
    margin-left: 0;
    height: var(--hero-band);
  }
}

/* the title breaks evenly at every width (no word alone on a line) */
.hero-copy h1 {
  text-wrap: balance;
}
/* ARCA landing · the calls to action: the download button and the download-link email form (components/cta),
   in the hero and again on the pricing stripe (pricing.css adds its own sizes) */
.hero-cta {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding-inline: 24px;
  background: var(--neutral-50);
  color: var(--neutral-950);
  white-space: nowrap;
}
/* states switch instantly, no transitions */
.hero-cta:hover {
  background: transparent;
  color: var(--neutral-50);
  box-shadow: inset 0 0 0 1px var(--neutral-50);
}

/* the action row: download button on desktop, email form on touch devices
   and narrow windows, since the app only installs on a computer */
.hero-action {
  margin-top: 48px;
}
.hero-email {
  display: none;
  gap: 12px;
}
@media (max-width: 639px), (pointer: coarse) {
  .hero-download {
    display: none;
  }
  .hero-email {
    display: flex;
  }
}
@media (max-width: 639px) {
  .hero-action {
    margin-top: 24px;
  } /* same as headline to body on mobile */
  .hero-email {
    flex-direction: column;
  }
  .hero-email .hero-cta {
    width: 100%;
  }
}
.hero-input {
  flex: 1;
  min-width: 0;
  max-width: 320px;
  height: 48px;
  padding: 0 16px;
  background: var(--neutral-950);
  color: var(--neutral-50);
  border: 0;
  border-radius: 0;
  appearance: none; /* square, like every other control */
  box-shadow: inset 0 0 0 1px var(--neutral-700);
  font: 400 var(--t-body)/1 var(--f-body); /* 16px, so iOS doesn't zoom in */
}
@media (max-width: 639px) {
  .hero-input {
    max-width: none;
    flex: none;
    width: 100%;
  }
}
.hero-input::placeholder {
  color: var(--neutral-500);
}
.hero-input:hover {
  box-shadow: inset 0 0 0 1px var(--neutral-500);
}
.hero-input:focus {
  box-shadow: inset 0 0 0 1px var(--neutral-50);
  outline: none;
}
.hero-input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* a Mac whose chip the browser won't tell (Safari): the button, and under it a small line with both Mac files */
.cta-choice {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.cta-chips {
  margin: 0;
  color: var(--text-label);
  white-space: nowrap;
}
.cta-chips a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cta-chips a:hover {
  color: var(--accent);
}

/* click: the label becomes "On its way" next to the brand's inline progress
   pictogram (three blocks hopping in turn, last one blue). When the download
   starts the blocks stop and the last one turns orange. Width stays fixed. */
.hero-cta {
  justify-content: center;
}
.cta-progress {
  display: none;
  align-items: center;
  gap: 2px;
  height: 6px;
  margin-right: 12px;
} /* one block tall, so resting blocks sit on the centre line; the hop rises above it */
/* while working and done the button keeps its hover look: no fill, white outline, label and blocks */
.hero-cta[data-state],
.hero-cta[data-state]:hover {
  background: transparent;
  color: var(--neutral-50);
  box-shadow: inset 0 0 0 1px var(--neutral-50);
}
.hero-cta[data-state] .cta-progress {
  display: inline-flex;
}
.cta-progress i {
  width: 6px;
  height: 6px;
  background: currentColor;
}
.cta-progress i:nth-child(3) {
  background: var(--blue-500);
}
.hero-cta[data-state='done'] .cta-progress i:nth-child(3) {
  background: var(--orange-500);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-cta[data-state='working'] .cta-progress i {
    animation: 1.2s steps(1, end) infinite;
  }
  .hero-cta[data-state='working'] .cta-progress i:nth-child(1) {
    animation-name: cta-hop1;
  }
  .hero-cta[data-state='working'] .cta-progress i:nth-child(2) {
    animation-name: cta-hop2;
  }
  .hero-cta[data-state='working'] .cta-progress i:nth-child(3) {
    animation-name: cta-hop3;
  }
}
@keyframes cta-hop1 {
  0% {
    transform: translateY(-4px);
  }
  33% {
    transform: translateY(0);
  }
}
@keyframes cta-hop2 {
  0% {
    transform: translateY(0);
  }
  33% {
    transform: translateY(-4px);
  }
  66% {
    transform: translateY(0);
  }
}
@keyframes cta-hop3 {
  0% {
    transform: translateY(0);
  }
  66% {
    transform: translateY(-4px);
  }
}
/* ARCA landing · the story: four sections between the hero and pricing
   Each section: a title, three columns, then its interactive visual (story.js).
   Section 2 sits on a full-width light band; the others on the page.
   Desktop: the content starts where the hero's text does (inside the hero box's padding). */

.st {
  --st-text: var(--neutral-50);
  --st-body: var(--neutral-300);
  --st-panel: var(--neutral-900);
  --st-fig-gap: 64px;
  --st-cols-gap: 48px;
  color: var(--st-text);
}
.st-light {
  --band-pixel: var(--neutral-200);
  position: relative;
  --st-text: var(--neutral-950);
  --st-body: var(--neutral-600);
  --st-panel: var(--neutral-50);
  padding-block: var(--section-gap);
  background: var(--neutral-100);
}

@media (min-width: 1024px) {
  .st-in {
    padding-inline: var(--hero-pad, 80px);
  }
}

.st-title {
  text-wrap: balance;
}

.st-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 56px;
  margin-top: var(--st-cols-gap);
}
.st-col h3 {
  margin-bottom: 10px;
  font: 500 24px/1.2 var(--f-head);
  text-wrap: balance;
}
.st-col p {
  font: 400 18px/1.5 var(--f-body);
  color: var(--st-body);
  text-wrap: pretty;
}

.st-fig {
  position: relative;
  margin-top: var(--st-fig-gap);
}
/* the visuals' frames until story.js fills them */
.st-fig-start {
  aspect-ratio: 1041 / 458;
  background: var(--neutral-900);
}
.st-fig-controls {
  aspect-ratio: 1041 / 520;
}
.st-fig-change,
.st-fig-review {
  aspect-ratio: 1041 / 377;
}

@media (max-width: 1023px) {
  .st {
    --st-fig-gap: 48px;
    --st-cols-gap: 40px;
  }
  .st-cols {
    column-gap: 32px;
  }
  .st-col h3 {
    margin-bottom: 8px;
    font-size: 20px;
  }
  .st-col p {
    font-size: 16px;
  }
}

/* phones and small tablets: one column; each point's lead sits just above its body, not at heading size */
@media (max-width: 767px) {
  .st {
    --st-fig-gap: 32px;
    --st-cols-gap: 24px;
  }
  .st-cols {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 22px;
  }
  .st-col h3 {
    margin-bottom: 4px;
    font: 600 17px/1.35 var(--f-body);
    letter-spacing: -0.005em;
  }
  .st-fig-start,
  .st-fig-controls,
  .st-fig-change,
  .st-fig-review {
    aspect-ratio: auto;
    min-height: 320px;
  }
}

/* inside the visuals your cursor is an orange arrow (arca's own pointer is blue); typing keeps the text cursor */
.st-fig,
.st-fig *:not(textarea, input, [contenteditable]) {
  cursor:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24'%3E%3Cpath d='M4.5 3.5 L19 10.2 L12.4 12.4 L10.2 19 Z' fill='%23fd4c23' stroke='%23f4f4f4' stroke-width='2.2' stroke-linejoin='round'/%3E%3C/svg%3E")
      5 4,
    default;
}
/* endless animations pause while their visual is off screen (story.js) */
.st-fig.is-off * {
  animation-play-state: paused !important;
}
/* ---------- the demo card (story.js) ----------
   Drawn on a 200 x 260 grid: --u is one unit, a 200th of the card's slot (container units),
   so the same card fits the wall's tiles and each section's dock. */
.st-tile,
.st-dock {
  container-type: inline-size;
}
.pc {
  --u: 0.5cqw;
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 10);
  width: 100%;
  min-height: calc(var(--u) * 260);
  padding: calc(var(--u) * 20);
  text-align: left;
}
.pc-name {
  font-size: calc(var(--u) * 14);
  font-weight: 600;
  opacity: 0.7;
}
.pc-date {
  display: flex;
  align-items: baseline;
  gap: calc(var(--u) * 6);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.pc-date small {
  font-size: calc(var(--u) * 13);
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.7;
}
.pc-sub {
  font-size: calc(var(--u) * 12);
  opacity: 0.6;
}
.pc-l {
  display: block;
  flex-shrink: 0;
  height: calc(var(--u) * 8);
  border-radius: calc(var(--u) * 2);
  background: currentColor;
  opacity: 0.14;
}
.pc-l.s {
  width: 60%;
}
.pc-flag {
  align-self: flex-start;
  margin-top: calc(var(--u) * 8);
  padding: calc(var(--u) * 5) calc(var(--u) * 9);
  border-radius: calc(var(--u) * 5);
  font: 600 calc(var(--u) * 11) / 1 var(--f-body);
  white-space: nowrap;
}
.pc-btn {
  margin-top: auto;
  padding: calc(var(--u) * 12) 0;
  font-size: calc(var(--u) * 14);
  font-weight: 600;
  text-align: center;
}
.pc-flag + .pc-btn {
  margin-top: calc(var(--u) * 8);
}
/* a light card on a light surface keeps its edge */
.st-dock > .pc-light {
  outline: 1px solid var(--neutral-200);
  outline-offset: -1px;
}

/* the card's own motion (section 2's Motion control) */
.pc-m-float {
  animation: pc-float 2.6s ease-in-out infinite;
}
.pc-m-shine .pc-btn {
  position: relative;
  overflow: hidden;
}
.pc-m-shine .pc-btn::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(
    100deg,
    color-mix(in srgb, var(--neutral-50) 0%, transparent),
    color-mix(in srgb, var(--neutral-50) 55%, transparent),
    color-mix(in srgb, var(--neutral-50) 0%, transparent)
  );
  animation: pc-shine 2.6s ease-in-out infinite;
}
.pc-m-pop .pc-date {
  transform-origin: 0 100%;
  animation: pc-pop 2.4s cubic-bezier(0.3, 0.7, 0.3, 1) 3;
}
/* never while you're typing into the date */
.pc-m-pop .pc-date:has([data-edit]:focus) {
  animation: none;
}
@keyframes pc-float {
  0%,
  100% {
    translate: 0 0;
  }
  45% {
    translate: 0 calc(var(--u) * -9);
  }
}
@keyframes pc-shine {
  0% {
    translate: 0 0;
  }
  40%,
  100% {
    translate: calc(var(--u) * 360) 0;
  }
}
@keyframes pc-pop {
  0%,
  40%,
  100% {
    scale: 1;
  }
  14% {
    scale: 1.14;
  }
  27% {
    scale: 0.97;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pc-m-float,
  .pc-m-shine .pc-btn::after,
  .pc-m-pop .pc-date {
    animation: none;
  }
}
/* ---------- section 1: the wall of takes ---------- */
.st-fig-start {
  aspect-ratio: auto;
}
.st-fig-start {
  container-type: inline-size;
}
.st-wall {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  padding: 28px;
  background: var(--neutral-900);
}
.st-tile {
  display: block;
  position: relative;
  border-radius: 4px;
  text-align: left;
  transition: transform 0.15s;
}
.st-tile > .pc {
  transition: opacity 0.5s ease;
}
.st-tile:hover:not(.is-picked) {
  outline: 2px solid var(--neutral-500);
  outline-offset: 3px;
}
.st-tile:focus-visible {
  outline: 2px solid var(--neutral-50);
  outline-offset: 3px;
}
.st-tile.is-picked {
  outline: 2.5px solid var(--blue-500);
  outline-offset: 3.5px;
}
/* once the browse lands, only the picked take stays at full brightness; the others are still options */
.st-wall.is-settled .st-tile:not(.is-picked):not(:hover) > .pc {
  opacity: 0.6;
}
/* the cue: the picked take bumps until the wall is touched */
.st-wall.is-settled:not(.is-touched) .st-tile.is-picked {
  animation: st-bump 2.4s cubic-bezier(0.3, 0.7, 0.3, 1) infinite;
}
@keyframes st-bump {
  0%,
  62%,
  100% {
    transform: scale(1);
  }
  74% {
    transform: scale(1.06);
  }
  86% {
    transform: scale(0.985);
  }
}

/* the intro: the sources, the card that comes out of one, the pointer's browse */
.st-wall.is-covered .st-tile {
  opacity: 0;
}
/* the pick shows only once the pointer lands on it */
.st-wall.is-intro .st-tile.is-picked {
  outline-color: transparent;
}
.st-tile.is-peek {
  outline: 2.5px solid var(--blue-500);
  outline-offset: 3.5px;
  transform: translateY(-7px);
  transition:
    transform 0.28s cubic-bezier(0.3, 0.7, 0.3, 1),
    outline-color 0.1s;
}
.st-tile.is-pressed {
  transform: scale(0.93) !important;
  transition: transform 0.11s ease-out;
}
.st-srcs {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 2.5cqw;
  translate: -50% -50%;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.st-srcs.is-gone {
  opacity: 0;
}
/* each source: a tilted tile (b) with its name under it, the name kept level and centred */
.st-srcs i {
  --r: 0deg;
  --y: 0px;
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  font-style: normal;
  transform: translateY(var(--y));
  transition:
    transform 0.35s cubic-bezier(0.3, 0.7, 0.3, 1.3),
    opacity 0.3s ease;
}
.st-srcs b {
  display: grid;
  place-items: center;
  width: max(48px, 7.9cqw);
  height: max(48px, 7.9cqw);
  border-radius: 24%;
  background: linear-gradient(180deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
  box-shadow:
    0 14px 28px color-mix(in srgb, var(--neutral-950) 70%, transparent),
    inset 0 -3px 0 color-mix(in srgb, var(--neutral-950) 7%, transparent);
  transform: rotate(var(--r));
  transition:
    transform 0.35s cubic-bezier(0.3, 0.7, 0.3, 1.3),
    box-shadow 0.3s ease;
}
/* the sources pop in one after another (scale and opacity, apart from the tilt and the lift) */
.st-srcs i {
  opacity: 0;
  scale: 0.7;
}
.st-srcs.is-in i {
  opacity: 1;
  scale: 1;
  transition:
    transform 0.35s cubic-bezier(0.3, 0.7, 0.3, 1.3),
    opacity 0.3s ease,
    scale 0.45s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.st-srcs.is-in:not(.is-one) i:nth-child(2) {
  transition-delay: 0s, 0.14s, 0.14s;
}
.st-srcs.is-in:not(.is-one) i:nth-child(3) {
  transition-delay: 0s, 0.28s, 0.28s;
}
.st-srcs i:nth-child(1) {
  --r: -10deg;
  --y: 7px;
}
.st-srcs i:nth-child(2) {
  --r: 5deg;
  --y: -5px;
}
.st-srcs i:nth-child(3) {
  --r: -4deg;
  --y: 9px;
}
.st-srcs span {
  color: var(--neutral-300);
  font: 500 12px/1 var(--f-body);
  white-space: nowrap;
  transition: color 0.3s ease;
}
.st-srcs i.is-lit span {
  color: var(--neutral-50);
}
.st-srcs b svg {
  display: block;
  width: 52%;
  height: 52%;
}
.st-srcs.is-one i:not(.is-lit) {
  opacity: 0.45;
}
.st-srcs i.is-lit {
  transform: translateY(-10px);
}
.st-srcs i.is-lit b {
  transform: rotate(0deg) scale(1.12);
  box-shadow:
    0 0 0 3.5px var(--blue-500),
    0 18px 36px color-mix(in srgb, var(--neutral-950) 75%, transparent);
}
.st-seed {
  position: absolute;
  z-index: 5;
  container-type: inline-size;
  transform-origin: 50% 50%;
  pointer-events: none;
}
.st-ptr {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 6;
  width: 28px;
  height: 28px;
  opacity: 0;
  filter: drop-shadow(0 2px 3px color-mix(in srgb, var(--neutral-950) 50%, transparent));
  transition:
    transform 0.5s cubic-bezier(0.3, 0.7, 0.3, 1),
    opacity 0.25s ease;
  pointer-events: none;
}
.st-ptr svg {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: 18% 14%;
  transition: transform 0.12s ease;
}
.st-ptr.is-on {
  opacity: 1;
}
.st-ptr.is-press svg {
  transform: scale(0.82);
}
@media (prefers-reduced-motion: reduce) {
  .st-tile {
    transition: none;
    animation: none !important;
  }
}
@media (max-width: 767px) {
  .st-srcs {
    gap: 30px;
  }
  .st-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 20px 16px;
  }
  .st-tile:nth-child(n + 7 of .st-tile) {
    display: none;
  }
  .st-tile.is-picked,
  .st-tile.is-peek {
    outline-width: 1px;
    outline-offset: 2px;
  }
  .st-ptr {
    width: 22px;
    height: 22px;
  }
}
/* ---------- section 4: review it with your team ----------
   Desktop: placed on the visual's own 1041-wide grid in container units, like section 3. */
.st-fig-review {
  overflow: hidden;
  container-type: inline-size;
  background: var(--neutral-900);
}
.st-win {
  position: absolute;
  left: 12.2cqw;
  top: 3cqw;
  width: 51cqw;
  height: 39.5cqw;
  border-radius: 10px;
  background: var(--neutral-50);
  box-shadow: 0 0 0 1px var(--neutral-200);
}
.st-wbar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 12px;
}
.st-wbar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neutral-200);
}
/* the wireframe page: in the window's own units (the window is 531 wide on the 1041 grid) */
.st-w {
  position: absolute;
  background: var(--neutral-100);
}
.st-wlogo,
.st-wh1,
.st-wh2 {
  background: var(--neutral-200);
}
.st-wlogo {
  left: 3cqw;
  top: 4.2cqw;
  width: 2.1cqw;
  height: 2.1cqw;
  border-radius: 6px;
}
.st-wnav {
  left: 41.8cqw;
  top: 4.3cqw;
  width: 6.2cqw;
  height: 2cqw;
  border-radius: 10px;
}
.st-wh1,
.st-wh2 {
  left: 3cqw;
  height: 2.3cqw;
  border-radius: 5px;
}
.st-wh1 {
  top: 8.2cqw;
  width: 23cqw;
}
.st-wh2 {
  top: 11.3cqw;
  width: 16cqw;
}
.st-wp1 {
  left: 3cqw;
  top: 15.5cqw;
  width: 21.5cqw;
  height: 0.9cqw;
  border-radius: 4px;
}
.st-wimg {
  left: 3cqw;
  top: 18.3cqw;
  width: 25.6cqw;
  height: 11.3cqw;
  border-radius: 10px;
}
.st-cbox {
  position: absolute;
  left: 31.5cqw;
  top: 8.2cqw;
  width: 16.4cqw;
}
.st-cbox .st-dock {
  position: relative;
}
/* the pins, centred on their spot on the card's own 200-unit grid (the pins box is as wide as the card) */
.st-pins {
  position: absolute;
  inset: 0;
  container-type: inline-size;
  pointer-events: none;
}
.st-pin {
  position: absolute;
  left: calc((var(--x) - 15) * 0.5cqw);
  top: calc((var(--y) - 15) * 0.5cqw);
  display: grid;
  place-items: center;
  width: 15cqw;
  height: 15cqw;
  border-radius: 50%;
  background: var(--pc);
  box-shadow: 0 0 0 1.7px var(--neutral-50);
  color: var(--pt);
  font: 600 11px/1 var(--f-body);
  transition: transform 0.15s ease;
  pointer-events: auto;
}
.st-pin svg {
  width: 52%;
  height: 52%;
}
.st-pin:hover {
  transform: scale(1.08);
}
.st-pin.is-open {
  z-index: 1;
  transform: scale(1.14);
  box-shadow:
    0 0 0 1.7px var(--neutral-50),
    0 0 0 3.9px var(--neutral-950);
}
.st-pin.is-done {
  background: var(--neutral-50);
  color: var(--neutral-950);
}
.st-pin.is-done.is-open {
  box-shadow:
    0 0 0 1.7px var(--neutral-50),
    0 0 0 3.9px var(--blue-500);
}
.st-fig-review:not(.is-pop) .st-pin {
  opacity: 0;
  transform: scale(0.3);
}
.st-fig-review.is-pop:not(.is-popped) .st-pin {
  animation: st-pinpop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: calc(var(--i) * 0.28s + 0.1s);
}
@keyframes st-pinpop {
  from {
    opacity: 0;
    transform: scale(0.3);
  }
}

/* the comment, then arca's note and Push PR, beside the window, level with the card's middle */
.st-note {
  position: absolute;
  left: 66.5cqw;
  top: 21.9cqw;
  width: max(21.4cqw, 223px);
  translate: 0 -50%;
}
.st-comment {
  padding: 10px 10px 10px 12px;
  border-radius: 14px;
  background: var(--neutral-50);
  box-shadow: inset 0 0 0 1px var(--neutral-200);
  color: var(--neutral-950);
}
.st-chd {
  display: flex;
  align-items: center;
  gap: 7px;
}
.st-av {
  display: grid;
  flex: none;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--pc);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--neutral-950) 14%, transparent);
  color: var(--pt);
  font: 600 10px/1 var(--f-body);
  font-style: normal;
}
.st-chd b {
  font: 600 13px/1 var(--f-body);
}
.st-chd span {
  color: var(--neutral-500);
  font: 500 11px/1 var(--f-body);
}
.st-comment p {
  margin-top: 8px;
  font: 400 13px/1.35 var(--f-body);
}
.st-fix {
  display: inline-flex;
  align-items: center;
  height: 29px;
  margin-top: 10px;
  padding: 0 12px;
  border-radius: 7px;
  background: var(--blue-500);
  color: var(--neutral-950);
  font: 600 12px/1 var(--f-body);
}
.st-fix:hover {
  background: var(--blue-400);
}
.st-working {
  margin-top: 10px;
  color: var(--neutral-500);
  font: 400 13px/29px var(--f-body);
}
.st-arca {
  display: flex;
  flex-direction: column;
  gap: 8.5px;
}
.st-abub {
  padding: 9.5px 12px 10px;
  border-radius: 12px 12px 12px 3.5px;
  background: var(--blue-500);
  color: var(--neutral-950);
  font: 400 13px/1.4 var(--f-body);
}
.st-push {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  border-radius: 10px;
  background: var(--neutral-50);
  color: var(--neutral-950);
  font: 600 13px/1 var(--f-body);
}
.st-push svg {
  width: 15px;
  height: 15px;
}
.st-push:not(:disabled):hover {
  background: var(--neutral-100);
}
.st-push.is-busy {
  background: var(--neutral-300);
  cursor: default;
}
.st-push.is-done {
  background: transparent;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--neutral-50) 28%, transparent);
  color: var(--neutral-50);
  cursor: default;
}
.st-push.is-done svg {
  color: var(--blue-500);
}
.st-comment.is-in,
.st-arca.is-in {
  animation: st-notein 0.3s ease both;
}
.st-arca.is-in .st-push {
  animation: st-notein 0.3s ease 0.35s both;
}
@keyframes st-notein {
  from {
    opacity: 0;
    translate: 0 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .st-fig-review .st-pin,
  .st-comment.is-in,
  .st-arca.is-in,
  .st-arca.is-in .st-push {
    animation: none !important;
  }
}

/* phones and small tablets: the window on top, cropped and fading into the panel, the note under it */
@media (max-width: 767px) {
  .st-fig-review {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px 16px;
  }
  .st-win {
    position: relative;
    inset: auto;
    width: auto;
    height: 284px;
    overflow: hidden;
    border-radius: 9px 9px 0 0;
    /* the outline sits inside the window, so the fade below covers it too (outside, it framed the fade) */
    box-shadow: inset 0 0 0 1px var(--neutral-200);
  }
  .st-win::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 72px;
    background: linear-gradient(transparent, var(--neutral-900));
    pointer-events: none;
  }
  .st-wbar {
    height: 21px;
    gap: 5px;
    padding: 0 10px;
  }
  .st-wbar i {
    width: 7px;
    height: 7px;
  }
  .st-wlogo {
    left: 5.5%;
    top: 38px;
    width: 19px;
    height: 19px;
  }
  .st-wnav {
    left: auto;
    right: 5.5%;
    top: 39px;
    width: 56px;
    height: 18px;
  }
  .st-wh1,
  .st-wh2,
  .st-wp1,
  .st-wimg {
    left: 5.5%;
  }
  .st-wh1 {
    top: 74px;
    width: 34%;
    height: 21px;
  }
  .st-wh2 {
    top: 102px;
    width: 24%;
    height: 21px;
  }
  .st-wp1 {
    top: 139px;
    width: 32%;
    height: 7px;
  }
  .st-wimg {
    top: 164px;
    width: 38%;
    height: 102px;
  }
  .st-cbox {
    left: auto;
    right: 5.5%;
    top: 74px;
    width: min(45%, 170px);
  }
  .st-note {
    position: static;
    width: auto;
    translate: none;
  }
  .st-chd {
    gap: 8px;
  }
  .st-av {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  .st-chd b,
  .st-comment p,
  .st-working,
  .st-abub,
  .st-push,
  .st-fix {
    font-size: 15px;
  }
  .st-chd span {
    font-size: 12px;
  }
  .st-fix {
    position: relative;
    height: 32px;
    padding: 0 14px;
  }
  .st-fix::before {
    content: '';
    position: absolute;
    inset: -6px;
  }
  .st-push {
    height: 44px;
    border-radius: 12px;
  }
  /* bigger tap areas on the pins, no visual change */
  .st-pin::before {
    content: '';
    position: absolute;
    inset: calc(50% - 20px);
  }
}
/* ---------- section 3: ask for a change, or make it by hand ----------
   Desktop: placed on the visual's own 1041-wide grid in container units (1cqw = 10.41 units). */
.st-fig-change {
  container-type: inline-size;
  background: var(--neutral-900);
}
.st-fig-change .st-dock {
  position: absolute;
  left: 26.6cqw;
  top: 7.6cqw;
  width: 16.4cqw;
}
/* the selection: a blue outline around the card, its component chip above it */
.st-fig-change .st-dock > .pc {
  outline: 2px solid var(--blue-500);
  outline-offset: 5px;
  transition: outline-color 0.2s ease;
}
.st-fig-change.is-unsel .st-dock > .pc {
  outline-color: transparent;
}
.st-fig-change.is-unsel .st-dock:hover > .pc {
  outline-color: color-mix(in srgb, var(--blue-500) 70%, transparent);
}
.st-sellabel,
.st-el {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  background: var(--blue-500);
  color: var(--neutral-950);
  font: 600 11px/1 var(--f-body);
  white-space: nowrap;
}
.st-sellabel {
  position: absolute;
  left: 26cqw;
  top: 4.4cqw;
  padding: 4px 7px 4px 6px;
}
.st-sellabel svg,
.st-el svg {
  flex: none;
  width: 10px;
  height: 10px;
}
.st-meta {
  position: absolute;
  left: 26cqw;
  top: 30.5cqw; /* story.js keeps it under the card's real bottom */
  color: var(--neutral-300);
  font: 500 12px/1 var(--f-body);
  white-space: nowrap;
  opacity: 0;
  translate: 0 -4px;
  transition:
    opacity 0.3s ease,
    translate 0.3s ease;
}
.st-meta.is-on {
  opacity: 1;
  translate: 0 0;
}
.st-sellabel,
.st-meta,
.st-el {
  transition:
    opacity 0.2s ease,
    visibility 0s linear 0s;
}
.st-fig-change.is-unsel :is(.st-sellabel, .st-meta, .st-el) {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0s linear 0.2s;
}

/* the card's text you can type into: a soft blue pulse until you touch it, a blue ring on hover */
.st-fig-change [data-edit] {
  border-radius: 2px;
  outline: none;
}
.st-fig-change [data-edit]:hover,
.st-fig-change [data-edit]:focus,
.st-fig-change [data-edit].is-hint-edit {
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--blue-500) 35%, transparent),
    0 0 0 1.5px var(--blue-500);
}
.st-fig-change:not(.is-typed, .is-unsel) [data-edit]:not(:hover, :focus) {
  animation: st-editpulse 2.6s ease-in-out infinite;
}
.st-fig-change:not(.is-typed, .is-unsel) [data-edit='date']:not(:hover, :focus) {
  animation-delay: 0.35s;
}
@keyframes st-editpulse {
  0%,
  100% {
    box-shadow:
      0 0 0 3px transparent,
      0 0 0 1.5px transparent;
  }
  45%,
  55% {
    box-shadow:
      0 0 0 3px color-mix(in srgb, var(--blue-500) 22%, transparent),
      0 0 0 1.5px color-mix(in srgb, var(--blue-500) 75%, transparent);
  }
}

/* the prompt: the chip on its own row, then "@arca", the request and send; arca's reply above it */
.st-tweak {
  position: absolute;
  left: 46.3cqw;
  top: 18.3cqw;
  width: max(27.2cqw, 283px);
  translate: 0 -50%;
}
.st-prompt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 6px;
  row-gap: 10px;
  padding: 10px 10px 10px 12px;
  border-radius: 14px;
  background: var(--neutral-50);
  box-shadow: inset 0 0 0 1px var(--neutral-200);
}
.st-fig-change.is-unsel .st-prompt {
  row-gap: 10px;
}
.st-el {
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: start;
  padding: 5px 4px 5px 8px;
  font-weight: 500;
}
.st-unsel {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-left: 2px;
  border-radius: 4px;
  color: color-mix(in srgb, var(--neutral-950) 75%, transparent);
}
.st-unsel:hover {
  background: color-mix(in srgb, var(--neutral-950) 12%, transparent);
  color: var(--neutral-950);
}
.st-unsel svg {
  width: 9px;
  height: 9px;
}
.st-at {
  grid-column: 1;
  grid-row: 2;
  color: var(--blue-700);
  font: 600 14px/1.35 var(--f-body);
}
.st-prompt textarea {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  height: auto;
  min-height: 1.35em;
  padding: 0;
  margin: 0;
  border: 0;
  outline: none;
  resize: none;
  overflow: hidden;
  background: none;
  color: var(--neutral-950);
  font: 400 14px/1.35 var(--f-body);
  field-sizing: content;
}
.st-prompt textarea::placeholder {
  color: var(--neutral-500);
}
.st-prompt.is-busy :is(.st-at, textarea),
.st-prompt.is-done :is(.st-at, textarea) {
  color: var(--neutral-500);
}
.st-send {
  position: relative;
  grid-column: 3;
  grid-row: 2;
  align-self: end;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--neutral-950);
  color: var(--neutral-50);
  transition:
    transform 0.15s ease,
    background-color 0.15s ease;
}
.st-send svg {
  width: 14px;
  height: 14px;
}
.st-send:not(:disabled):hover {
  background: var(--blue-500);
  color: var(--neutral-950);
  transform: scale(1.08);
}
.st-send:disabled {
  background: var(--neutral-300);
  cursor: default;
}
.st-reply {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 10px);
  padding: 9px 12px 10px;
  border-radius: 12px 12px 12px 3.5px;
  background: var(--blue-500);
  color: var(--neutral-950);
  font: 400 13px/1.4 var(--f-body);
  opacity: 0;
  translate: 0 6px;
  transition:
    opacity 0.3s ease,
    translate 0.3s ease;
  pointer-events: none;
}
.st-reply.is-on {
  opacity: 1;
  translate: 0 0;
}
.st-reply.is-working span {
  color: color-mix(in srgb, var(--neutral-950) 72%, transparent);
}
/* the tag arca adds, sliding in */
.pc-flag {
  animation: pc-flag-in 0.35s cubic-bezier(0.3, 0.7, 0.3, 1) both;
}
@keyframes pc-flag-in {
  from {
    opacity: 0;
    transform: translateY(calc(var(--u) * -4)) scale(0.9);
  }
}
@media (prefers-reduced-motion: reduce) {
  .st-fig-change [data-edit],
  .pc-flag {
    animation: none !important;
  }
}

/* phones and small tablets: the chip, the card and the meta in a centred column, the prompt under them */
@media (max-width: 767px) {
  .st-fig-change {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, min(62%, 240px)) minmax(0, 1fr);
    padding: 20px 16px;
  }
  .st-fig-change > :not(.st-pxcv) {
    position: relative !important;
    inset: auto !important;
    translate: none;
  }
  .st-fig-change .st-sellabel {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    margin: 0 0 10px -4px;
    padding: 5px 8px 5px 7px;
    font-size: 12px;
  }
  .st-fig-change .st-dock {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
  }
  .st-fig-change .st-meta {
    grid-column: 2;
    grid-row: 3;
    margin-top: 14px;
  }
  .st-fig-change .st-tweak {
    grid-column: 1 / -1;
    grid-row: 4;
    width: auto;
    margin-top: 22px;
  }
  .st-el {
    padding: 5px 4px 5px 7px;
    font-size: 12px;
  }
  .st-at,
  .st-prompt textarea {
    font-size: 16px;
  }
  .st-send {
    width: 30px;
    height: 30px;
  }
  /* the reply opens in place above the field */
  .st-reply {
    position: static;
    max-height: 0;
    margin-bottom: 0;
    padding-block: 0;
    overflow: hidden;
    font-size: 15px;
    translate: none;
    transition:
      max-height 0.3s ease,
      padding 0.3s ease,
      margin 0.3s ease,
      opacity 0.3s ease;
  }
  .st-reply.is-on {
    max-height: 90px;
    margin-bottom: 8px;
    padding-block: 9px 10px;
  }
  /* bigger tap areas, no visual change */
  .st-unsel,
  .st-send {
    position: relative;
    z-index: 2;
  }
  .st-unsel::before,
  .st-send::before {
    content: '';
    position: absolute;
    inset: calc(50% - 21px);
  }
}
/* ---------- section 2: the controls arca builds ---------- */
.st-fig-controls {
  aspect-ratio: auto;
}
.st-ctl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 274px;
  gap: 20px;
  padding: 20px;
  border-radius: 14px;
  background: var(--neutral-950);
}
.st-stage {
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--neutral-50);
}
.st-stage .st-dock {
  width: min(29%, 230px);
}
.st-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 27px 24px;
  border-radius: 10px;
  background: var(--neutral-900);
  color: var(--neutral-300);
  font: 400 12px/1.3 var(--f-body);
}
.st-side-title {
  font: 600 14px/1.2 var(--f-body);
  color: var(--neutral-50);
  transition: opacity 0.16s ease;
}
.st-side-title.is-swap {
  opacity: 0;
}
.st-grp {
  padding-top: 14px;
  border-top: 1px solid var(--neutral-800);
  font-weight: 500;
  color: var(--neutral-400);
}
.st-side-title + .st-grp {
  margin-top: 6px;
}
.st-seg + .st-grp {
  margin-top: 17px;
}
.st-row {
  display: flex;
  justify-content: space-between;
}
.st-grp + .st-row {
  margin-top: 2px;
}
input + .st-row,
.st-sw + .st-row {
  margin-top: 14px;
}
.st-rv {
  font-style: normal;
  font-weight: 600;
  color: var(--neutral-50);
}
.st-seg {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  padding: 2.5px;
  border: 1px solid var(--neutral-700);
  border-radius: 7px;
}
.st-seg button {
  padding: 8.5px 0;
  border-radius: 4.5px;
  font-size: 12px;
  line-height: 1;
  color: var(--neutral-300);
}
.st-seg button[aria-pressed='true'] {
  background: var(--neutral-700);
  color: var(--neutral-50);
}
.st-seg button:not([aria-pressed='true']):hover {
  background: color-mix(in srgb, var(--neutral-50) 8%, transparent);
  color: var(--neutral-50);
}
.st-sw {
  display: flex;
  gap: 10px;
}
.st-sw button {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}
.st-sw button[aria-pressed='true'] {
  outline: 2px solid var(--neutral-50);
  outline-offset: 2px;
}
.st-sw button:not([aria-pressed='true']):hover {
  outline: 2px solid color-mix(in srgb, var(--neutral-50) 40%, transparent);
  outline-offset: 2px;
}
/* the slider in brand greys, its filled part kept in step by story.js (--fill) */
#st-radius {
  width: 100%;
  height: 16px;
  margin: 0;
  appearance: none;
  background: transparent;
}
#st-radius::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--neutral-50) var(--fill, 50%), var(--neutral-600) var(--fill, 50%));
}
#st-radius::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: var(--neutral-600);
}
#st-radius::-moz-range-progress {
  height: 4px;
  border-radius: 2px;
  background: var(--neutral-50);
}
#st-radius::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border: 0;
  border-radius: 50%;
  appearance: none;
  background: var(--neutral-50);
}
#st-radius::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: var(--neutral-50);
}
#st-radius:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 4px;
}
.st-apply {
  margin-top: 24px;
  padding: 12px 0;
  border-radius: 9px;
  background: var(--neutral-100);
  color: var(--neutral-950);
  font: 600 13px/1 var(--f-body);
  text-align: center;
}
.st-apply:hover {
  background: var(--neutral-50);
  box-shadow: inset 0 0 0 1px var(--neutral-300);
}
.st-tools {
  display: none;
}

/* the building moment: the panel waits empty, then each group pops in, the options and Apply with a blue ring */
.st-ctl.is-building .st-side > :not(.st-side-title) {
  opacity: 0;
}
.st-ctl.is-building .st-side.is-go > :not(.st-side-title) {
  animation: st-pop 0.5s cubic-bezier(0.3, 1.45, 0.5, 1) both;
  animation-delay: calc(var(--bi, 0) * 200ms);
  transform-origin: 0 50%;
}
.st-ctl.is-building .st-side.is-go > :is(.st-seg, .st-apply) {
  animation:
    st-pop 0.5s cubic-bezier(0.3, 1.45, 0.5, 1) both,
    st-ring 0.9s ease-out both;
  animation-delay: calc(var(--bi, 0) * 200ms), calc(var(--bi, 0) * 200ms + 120ms);
}
.st-bcur {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  background: var(--blue-500);
  animation: st-blink 0.8s steps(1) infinite;
}
@keyframes st-pop {
  from {
    opacity: 0;
    scale: 0.86;
    translate: 0 12px;
  }
  40% {
    opacity: 1;
  }
  to {
    opacity: 1;
    scale: 1;
    translate: 0 0;
  }
}
@keyframes st-ring {
  from {
    box-shadow: 0 0 0 2px var(--blue-500);
  }
  to {
    box-shadow: 0 0 0 2px transparent;
  }
}
@keyframes st-blink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 1023px) {
  .st-ctl {
    grid-template-columns: minmax(0, 1fr) 240px;
  }
}
/* phones and small tablets: the stage on top, then one control at a time under a row of tool buttons */
@media (max-width: 767px) {
  .st-ctl {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 16px;
  }
  .st-stage {
    padding: 16px 0;
    border-radius: 10px 10px 0 0;
  }
  .st-stage .st-dock {
    width: 59%;
  }
  .st-side {
    gap: 0;
    padding: 12px 10px 14px;
    border-radius: 0 0 12px 12px;
    font-size: 14px;
  }
  .st-side-title,
  .st-grp,
  .st-row,
  .st-side [data-tool] {
    display: none;
  }
  .st-side [data-tool].is-on {
    display: grid;
    min-height: 44px;
  }
  .st-side .st-sw.is-on {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-inline: 6px;
  }
  .st-side .st-sw button {
    width: 24px;
    height: 24px;
  }
  .st-side #st-radius.is-on {
    display: block;
    height: 44px;
  }
  .st-seg {
    padding: 3px;
    border-radius: 8px;
  }
  .st-seg button {
    padding: 13px 0;
    border-radius: 5px;
    font-size: 14px;
  }
  .st-apply {
    min-height: 44px;
    margin-top: 22px;
    border-radius: 10px;
    font-size: 15px;
  }
  .st-tools {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
  }
  .st-tools button {
    display: flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    min-height: 44px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px var(--neutral-700);
    color: var(--neutral-300);
  }
  .st-tools button[data-tool-tab='Variant'] {
    flex: 1 1 auto;
    padding-inline: 6px;
  }
  .st-tools button svg {
    flex: none;
    width: 13px;
    height: 13px;
  }
  .st-tools button svg.big {
    width: 18px;
    height: 18px;
  }
  .st-tools button b {
    overflow: hidden;
    min-width: 0;
    font: 600 12px/1 var(--f-body);
    color: var(--neutral-100);
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .st-tools button b i {
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--neutral-50) 25%, transparent);
  }
  .st-tools button[aria-selected='true'] {
    background: var(--neutral-50);
    box-shadow: none;
    color: var(--neutral-600);
  }
  .st-tools button[aria-selected='true'] b {
    color: var(--neutral-950);
  }
  .st-tools button:not([aria-selected='true']):hover {
    background: color-mix(in srgb, var(--neutral-50) 8%, transparent);
  }
}
/* ---------- the card in flight between sections (story.js) ----------
   A 200px-wide card moved and scaled with a transform: no layout work on a scroll frame. The
   spots it isn't in keep their space and hide their card; the wall shows a dashed outline. */
.st-trav {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 40;
  width: 200px;
  container-type: inline-size;
  transform-origin: 0 0;
  will-change: transform;
  pointer-events: none;
  filter: drop-shadow(0 22px 26px color-mix(in srgb, var(--neutral-950) 45%, transparent));
}
.st-trav[hidden] {
  display: none;
}
.st-trav > .pc-light {
  outline: 1px solid var(--neutral-200);
  outline-offset: -1px;
}
.st-dock.is-away > .pc {
  visibility: hidden;
}
.st-tile.is-lifted > .pc {
  visibility: hidden;
}
.st-tile.is-lifted.is-picked {
  outline-style: dashed;
  animation: none;
}
/* ---------- guidance (story.js) ----------
   arca's blue pointer, and one bump on each section's next step: three times, and none once you've used the
   visual (data-tried, set by useGuidance.tsx on your first click, key or focus in it) */
.st-gptr {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 8;
  width: 32px;
  height: 32px;
  opacity: 0;
  filter: drop-shadow(0 2px 4px color-mix(in srgb, var(--neutral-950) 55%, transparent));
  transition:
    transform 0.38s cubic-bezier(0.3, 0.7, 0.3, 1),
    opacity 0.25s ease;
  pointer-events: none;
}
.st-gptr svg {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: 18% 14%;
}
.st-gptr.is-on {
  opacity: 1;
}
.st-gptr.is-tap svg {
  animation: st-ptr-tap 2.4s cubic-bezier(0.3, 0.7, 0.3, 1) 3;
}
@keyframes st-ptr-tap {
  0%,
  62%,
  100% {
    transform: none;
  }
  70% {
    transform: scale(0.8) translate(1px, 1px);
  }
  80% {
    transform: none;
  }
}
/* small things grow 18%, wide ones 6% */
@keyframes st-bump-l {
  0%,
  62%,
  100% {
    transform: scale(1);
  }
  74% {
    transform: scale(1.18);
  }
  86% {
    transform: scale(0.96);
  }
}
.st-apply:not(.is-used, :hover) {
  animation: st-bump 2.4s cubic-bezier(0.3, 0.7, 0.3, 1) 3;
}
.st-prompt:not(.is-touched, .is-busy, .is-done) .st-send:not(:hover),
.st-fix.is-hint:not(:hover) {
  animation: st-bump-l 2.4s cubic-bezier(0.3, 0.7, 0.3, 1) 3;
}
.st-push:not(.is-busy, .is-done, :hover) {
  animation: st-bump 2.4s cubic-bezier(0.3, 0.7, 0.3, 1) 1.2s 3;
}
.st-arca.is-in .st-push:not(.is-busy, .is-done, :hover) {
  animation:
    st-notein 0.3s ease 0.35s both,
    st-bump 2.4s cubic-bezier(0.3, 0.7, 0.3, 1) 1.4s 3;
}
/* once you've used a visual, its next steps keep still */
[data-tried] :is(.st-apply, .st-send, .st-fix, .st-push) {
  animation: none !important;
}
@media (max-width: 767px) {
  .st-gptr {
    width: 26px;
    height: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .st-gptr {
    display: none;
  }
  .st-apply,
  .st-send,
  .st-fix,
  .st-push {
    animation: none !important;
  }
}
/* ---------- the light band's edges and side pixels ----------
   StorySection.tsx draws the dark pixels dissolving at its top and bottom, and carries the page's
   side pixels across it (lib/edgeDither.ts). The content sits above both. */
.st-light > .wrap {
  position: relative;
  z-index: 2;
}
/* above the band's side pixels, so a dark square is never covered by a light one */
.st-edge {
  position: absolute;
  z-index: 1;
  left: 0;
  width: 100%;
  height: 72px;
  pointer-events: none;
}
.st-edge.is-top {
  top: 0;
}
.st-edge.is-bot {
  bottom: 0;
}
.band-dither {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  overflow: hidden;
}
/* one canvas per side zone (lib/edgeDither.ts places them) */
.band-dither canvas {
  position: absolute;
  top: 0;
}
@media (max-width: 767px) {
  .band-dither {
    display: none;
  }
}
/* ---------- the visuals arrive in pixels (story.js) ---------- */
.st-ctl {
  position: relative;
}
.is-px-wait {
  background: transparent !important;
  box-shadow: none !important;
}
.is-px-wait > :not(.st-pxcv) {
  opacity: 0 !important;
}
.is-px-in {
  transition:
    background-color 0.35s ease,
    box-shadow 0.35s ease;
}
.is-px-in > :not(.st-pxcv) {
  transition: opacity 0.35s ease !important;
}
.st-pxcv {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
/* phones: the card lands in each visual instead of flying between them */
.st-dock.is-land-wait {
  opacity: 0;
}
.st-dock.is-land {
  animation: st-land 0.55s cubic-bezier(0.3, 0.7, 0.3, 1) both;
}
@keyframes st-land {
  0% {
    opacity: 0;
    transform: translateY(-40px) scale(1.06);
  }
  55% {
    opacity: 1;
    transform: translateY(5px) scale(1);
  }
  80% {
    transform: translateY(-2px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
/* ARCA landing · pricing
   The pricing stripe: the brand blue once, with the title and its line on the
   left and the download button on the right, level with the line's bottom; the
   page's dark pixels dissolve in from the top-right corner (EndPixels) and fill
   the space above the button. The relief wall follows straight under it
   (relief.css), then the footer row (footer.css). */

/* this is the last section: the relief runs into the footer, not into page padding */
main {
  padding-bottom: 0;
}

.end-cta {
  --pad: var(--hero-pad, 80px); /* the sides: in line with the hero's and the story's text */
  --pad-y: 56px; /* top and bottom: tighter, so the short copy doesn't float in blue */
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: var(--gutter);
  align-items: start;
  margin-bottom: 24px; /* close to the relief wall, one closing moment, still apart */
  padding: var(--pad-y) var(--pad);
  background: var(--blue-500);
  color: var(--neutral-950);
}
.end-cta h2 {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  line-height: 1.1;
  text-wrap: balance;
}
.end-sub {
  position: relative;
  grid-column: 1;
  grid-row: 2;
  max-width: 56ch;
  margin-top: 12px;
  color: color-mix(in srgb, var(--neutral-950) 78%, transparent);
}
@media (min-width: 1024px) {
  .end-sub {
    font-size: 18px;
  }
}
/* the corner pixels end 16px above the button */
.end-px {
  position: absolute;
  top: 0;
  right: -1px;
  width: 241px;
  height: calc(100% - var(--pad-y) - 48px - 16px);
  height: round(down, calc(100% - var(--pad-y) - 48px - 16px), 8px); /* whole 8px squares, no slivers */
  fill: var(--neutral-950);
  pointer-events: none;
}
.end-btn,
.end-form {
  position: relative;
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: end;
  justify-self: end;
}
.end-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding-inline: 24px;
  background: var(--neutral-950);
  color: var(--neutral-50);
}
/* states switch instantly, like the hero button */
.end-btn:hover {
  background: transparent;
  color: var(--neutral-950);
  box-shadow: inset 0 0 0 1px var(--neutral-950);
}
/* the button with the chip line (DownloadButton): placed like the button, the line hangs below it in the stripe's
   bottom padding, so the button stays level with the line's bottom */
.end-choice {
  position: relative;
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: end;
  justify-self: end;
  align-items: flex-end;
}
.end-choice .end-btn {
  align-self: auto;
}
.end-choice .cta-chips {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  color: color-mix(in srgb, var(--neutral-950) 78%, transparent);
}
.end-choice .cta-chips a {
  color: var(--neutral-950);
}
.end-choice .cta-chips a:hover {
  color: var(--neutral-50);
}
.end-form .hero-input {
  border-color: transparent;
  background: var(--neutral-50);
  color: var(--neutral-950);
  box-shadow: none;
}
.end-form .hero-cta {
  background: var(--neutral-950);
  color: var(--neutral-50);
}
@media (max-width: 1279px) {
  .end-cta {
    --pad-y: 48px;
  }
}
@media (max-width: 1023px) {
  .end-cta {
    --pad-y: 40px;
  }
  .end-cta h2 {
    font-size: clamp(26px, 3.4vw, 40px);
  }
  .end-px {
    width: 161px;
  }
}
/* phones and small tablets: stacked, the corner above the title */
@media (max-width: 767px) {
  .end-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 48px var(--pad) var(--pad);
  }
  .end-px {
    width: 241px;
    height: 40px;
  }
  .end-sub {
    max-width: none;
  }
  .end-btn,
  .end-form,
  .end-choice {
    margin-top: 28px;
  }
  .end-choice {
    align-items: flex-start;
  }
  .end-choice .end-btn {
    margin-top: 0;
  }
  .end-choice .cta-chips {
    right: auto;
    left: 0;
  }
  .end-cta h2 {
    font-size: 32px;
  }
  .end-form {
    width: 100%;
  }
}
/* touch screens and narrow windows get the email form instead (shown by hero.css) */
@media (max-width: 639px), (pointer: coarse) {
  .end-download {
    display: none;
  }
}
/* ARCA landing · the relief wall (lib/relief.ts draws it) */

.relief {
  position: relative;
  aspect-ratio: 4 / 1;
  cursor: pointer;
  touch-action: pan-y;
  overflow: hidden; /* the canvas holds whole page pixels; the last ones may reach past the wall */
} /* 3 rows of 12 modules */
.relief canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* corner hint: shows in one step while the wall is hovered (on touch, after the
   entrance), and goes away for good after the first shuffle */
.relief-hint {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--neutral-950);
  color: var(--neutral-50);
  visibility: hidden;
  pointer-events: none;
}
.relief-hint i {
  width: 8px;
  height: 8px;
  background: var(--blue-500);
}
.relief.is-hover .relief-hint,
.relief.show-hint .relief-hint {
  visibility: visible;
}
.relief.has-shuffled .relief-hint {
  visibility: hidden;
}
.hint-touch {
  display: none;
}
@media (pointer: coarse) {
  .hint-desk {
    display: none;
  }
  .hint-touch {
    display: inline;
  }
}
/* phones */
@media (max-width: 639px) {
  .relief {
    aspect-ratio: 2 / 1;
  } /* 3 rows of 6 modules */
  .relief-hint {
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    gap: 6px;
    font-size: 12px;
  }
  .relief-hint i {
    width: 6px;
    height: 6px;
  }
}
/* ARCA landing · footer */
/* footer row */
.site-foot {
  padding-block: 48px var(--edge-dither-bottom);
  color: var(--neutral-400);
}
.foot-row {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: start;
  border-top: 1px solid var(--neutral-800);
  padding-top: 48px; /* divider: 48px above (footer padding) and below */
}
.foot-lockup {
  grid-column: 1 / 5;
  display: block;
  width: max-content;
  color: var(--neutral-50);
}
.foot-lockup svg {
  height: 24px;
  width: auto;
}
.foot-links {
  grid-column: span 2;
  display: grid;
  gap: 16px;
}
.foot-links:first-of-type {
  grid-column: 8 / span 2;
}
.foot-links a:hover {
  color: var(--neutral-50);
}
.foot-c {
  grid-column: 12 / -1;
  text-align: right;
  color: var(--neutral-400);
}

/* smaller screens */
@media (max-width: 1023px) {
  .foot-row {
    row-gap: 32px;
  }
  .foot-lockup {
    grid-column: 1 / -1;
  }
  .foot-links,
  .foot-links:first-of-type {
    grid-column: span 3;
  }
  .foot-c {
    grid-column: span 2;
    text-align: left;
  }
}
@media (max-width: 639px) {
  .site-foot {
    padding-top: 32px;
  }
  /* phone: three columns: logo with the copyright under it, then the two link pairs */
  .foot-row {
    grid-template-columns: auto auto auto;
    justify-content: space-between;
    column-gap: 16px;
    row-gap: 16px;
  }
  .foot-lockup {
    grid-column: 1;
    grid-row: 1;
  }
  .foot-lockup svg {
    height: 20px;
  } /* so three columns fit in 343px */
  .foot-c {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
  }
  .foot-links:first-of-type {
    grid-column: 2;
    grid-row: 1 / 3;
  }
  .foot-links:nth-of-type(2) {
    grid-column: 3;
    grid-row: 1 / 3;
  }
}
/* ARCA landing · terms and privacy pages: one readable column of text */
.legal {
  padding-block: 64px var(--section-gap);
}
.legal article {
  max-width: 720px;
}
.legal h1 {
  margin-bottom: 8px;
}
.legal .updated {
  color: var(--text-label);
  margin-bottom: 48px;
}
.legal h2 {
  font: 500 var(--t-feature)/var(--lh-head) var(--f-head);
  margin: 48px 0 16px;
}
.legal p,
.legal ul {
  color: var(--text-body);
  margin-bottom: 16px;
}
.legal ul {
  padding-left: 20px;
  list-style: square;
}
.legal li + li {
  margin-top: 8px;
}
.legal strong {
  color: var(--text);
  font-weight: 600;
}
.legal a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal a:hover {
  color: var(--accent);
}
/* ARCA landing · the download page (pages/DownloadPage.tsx): the pricing stripe's blue as its hero (pricing.css
   .end-cta, the dark pixels in its corner), a card a computer, and the relief wall to close,
   as the home page closes. */
.download {
  padding-top: 40px;
}

/* the stripe: the version over the title on the left, the buttons on the right, level with the line's bottom */
.download-stripe {
  --pad-y: 72px;
  grid-template-rows: auto auto auto auto;
  align-content: center;
}
.download-version {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  margin: 0 0 16px;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--neutral-950) 70%, transparent);
}
.download-stripe h1 {
  position: relative;
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  line-height: 1.1;
  text-wrap: balance;
}
.download-stripe .end-sub {
  grid-row: 3;
}
.download-open-note {
  position: relative;
  grid-column: 1;
  grid-row: 4;
  margin: 12px 0 0;
  color: color-mix(in srgb, var(--neutral-950) 70%, transparent);
}
.download-actions {
  position: relative;
  grid-column: 2;
  grid-row: 1 / 5;
  align-self: end;
  justify-self: end;
  display: flex;
  gap: 12px;
}
.download-actions .end-btn {
  gap: 10px;
}
.download-note {
  font-weight: 400;
  opacity: 0.7;
}

/* every download: a card a computer, the visitor's own outlined in blue */
.download-platforms {
  margin: 96px 0 var(--section-gap);
}
.download-platforms h2 {
  margin: 0 0 24px;
}
.download-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}
.download-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--bg-panel);
}
.download-card[data-current] {
  box-shadow: inset 0 0 0 1px var(--blue-500);
}
.platform-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 32px;
  fill: var(--neutral-50);
}
.platform-icon .px-blue {
  fill: var(--blue-500);
}
.download-card h3 {
  margin: 0;
}
.download-yours {
  position: absolute;
  top: 32px;
  right: 32px;
  margin: 0;
  text-transform: uppercase;
  color: var(--blue-500);
}
.download-card ul {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--neutral-700);
}
.download-card li a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--neutral-700);
  color: var(--text);
  text-decoration: none;
}
.download-card li a .t-caption {
  grid-column: 1;
  color: var(--text-label);
}
.download-arrow {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  box-shadow: inset 0 0 0 1px var(--neutral-600);
}
/* states switch instantly, like the page's buttons */
.download-arrow svg {
  width: 14px;
  height: 16px;
  fill: currentColor;
}
.download-card li a:hover .download-arrow {
  background: var(--neutral-50);
  color: var(--neutral-950);
  box-shadow: none;
}
.download-card li a:hover .t-body {
  color: var(--blue-500);
}

@media (max-width: 1023px) {
  .download-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .download-actions {
    grid-column: 1;
    grid-row: 5;
    justify-self: start;
    margin-top: 32px;
  }
}

/* React's root: no box of its own, so the page lays out exactly as if its parts sat in <body> */
#root {
  display: contents;
}
/*$vite$:1*/