/*
 * The landing page at comandosoft.com.br (docs/specs/landing-page.md).
 *
 * The brand of ADR 0041 and ADR 0115 with more room: the logo files' green and
 * cream, teal for action, green for received, one gold reading per screen,
 * Plus Jakarta Sans for headlines, IBM Plex Sans for text, IBM Plex Mono with
 * tabular figures for every value. The dark values are web/src/styles/tokens.css's.
 *
 * Motion (L12): transform, opacity and clip-path only, one strong ease-out.
 * Every animated start state hangs off html.js, which site.js sets before the
 * first paint, and a scene plays when site.js adds .is-in; without script, or
 * with reduced motion, each figure shows its final state.
 */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-latin-700-normal.2050755bf4.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-latin-800-normal.5f301a8ef9.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-sans-latin-400-normal.3b646991d3.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-sans-latin-500-normal.0717336fb3.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-sans-latin-600-normal.8960851d69.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-latin-400-normal.08949f728d.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-latin-500-normal.01d2854474.woff2') format('woff2');
}

:root {
  color-scheme: light;

  --font-brand: 'Plus Jakarta Sans', 'IBM Plex Sans', system-ui, sans-serif;
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* The brand's own colours: no theme value (TL13). */
  --brand-green: #11302b;
  --brand-cream: #f4efe4;

  --bg: #f4efe4;
  --bg-rule: rgba(17, 48, 43, 0.06);
  --surface: #fffdf8;
  --surface-sunken: #f7f3ea;
  --paper: #ffffff;
  --paper-ink: #1d2422;
  --border: #e0d9ca;
  --border-strong: #c9c0ad;
  --divider: #ece6d9;
  --text: #14201e;
  --text-secondary: #55625e;
  --text-muted: #7a8581;

  --accent: #0c6b66;
  --accent-hover: #0a5854;
  --accent-subtle: #e2eeeb;
  --on-accent: #ffffff;

  --success: #207b60;
  --success-text: #145a47;
  --success-subtle: #e5f2ed;

  --gold: #c9a24b;
  --gold-text: #8a6a1f;

  --closing-bg: var(--brand-green);
  --closing-text: var(--brand-cream);
  --closing-muted: #b9c8c2;

  --shadow-card: 0 1px 0 rgba(17, 48, 43, 0.04), 0 18px 40px -24px rgba(17, 48, 43, 0.35);
  --shadow-paper: 0 2px 4px rgba(17, 48, 43, 0.06), 0 24px 48px -20px rgba(17, 48, 43, 0.4);

  --radius-1: 4px;
  --radius-2: 8px;
  --radius-3: 14px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --wrap: 1200px;
  --gutter: 16px;
  --bar-height: 64px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #0b100f;
    --bg-rule: rgba(255, 255, 255, 0.03);
    --surface: #131a19;
    --surface-sunken: #0f1615;
    --paper-ink: #1d2422;
    --border: #2a3633;
    --border-strong: #41504c;
    --divider: #1f2927;
    --text: #e7ebe9;
    --text-secondary: #9daca8;
    --text-muted: #73827e;
    --accent: #2fa79e;
    --accent-hover: #46bdb4;
    --accent-subtle: #0f2a28;
    --on-accent: #04211f;
    --success: #41c07a;
    --success-text: #7fd6a6;
    --success-subtle: #0f2618;
    --gold: #e0b354;
    --gold-text: #e0b354;
    --closing-muted: #7f9792;
    --shadow-card: 0 18px 40px -24px rgba(0, 0, 0, 0.8);
    --shadow-paper: 0 24px 48px -20px rgba(0, 0, 0, 0.8);
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0b100f;
  --bg-rule: rgba(255, 255, 255, 0.03);
  --surface: #131a19;
  --surface-sunken: #0f1615;
  --border: #2a3633;
  --border-strong: #41504c;
  --divider: #1f2927;
  --text: #e7ebe9;
  --text-secondary: #9daca8;
  --text-muted: #73827e;
  --accent: #2fa79e;
  --accent-hover: #46bdb4;
  --accent-subtle: #0f2a28;
  --on-accent: #04211f;
  --success: #41c07a;
  --success-text: #7fd6a6;
  --success-subtle: #0f2618;
  --gold: #e0b354;
  --gold-text: #e0b354;
  --closing-muted: #7f9792;
  --shadow-card: 0 18px 40px -24px rgba(0, 0, 0, 0.8);
  --shadow-paper: 0 24px 48px -20px rgba(0, 0, 0, 0.8);
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--bar-height) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  body {
    font-size: 18px;
  }
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

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

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

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

/* Read by a screen reader, never drawn. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  padding: 8px 14px;
  border-radius: var(--radius-1);
  background: var(--brand-green);
  color: var(--brand-cream);
  font-weight: 500;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 16px/1 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms var(--ease-out);
}
.btn:active {
  transform: scale(0.97);
}
.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-light {
  background: var(--brand-cream);
  color: var(--brand-green);
}
.btn-arrow {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 200ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--accent-hover);
  }
  .btn-ghost:hover {
    border-color: var(--text);
  }
  .btn-ghost:hover .btn-arrow {
    transform: translateX(3px);
  }
  .btn-light:hover {
    background: #ffffff;
  }
}

/* Header */

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
}
.bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--wrap);
  height: var(--bar-height);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.bar-brand {
  display: block;
  flex: none;
}
.bar-brand img {
  width: 118px;
  height: auto;
}
.bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.link-login {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .link-login:hover {
    color: var(--accent);
  }
}
@media (max-width: 420px) {
  .bar-actions .btn {
    display: none;
  }
}
@media (max-width: 767px) {
  .bar-actions .link-anchor {
    display: none;
  }
}
@media (min-width: 768px) {
  .bar-brand img {
    width: 148px;
  }
  .bar-actions {
    gap: 12px;
  }
}

/* Hero */

.hero {
  position: relative;
  padding: 40px 0 72px;
  overflow: clip;
}
.hero::before {
  /* The page is paper: faint ruled lines, the ledger the product keeps. */
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 31px,
    var(--bg-rule) 31px,
    var(--bg-rule) 32px
  );
  mask-image: linear-gradient(to bottom, #000 40%, transparent);
  pointer-events: none;
}
.hero-copy {
  container-type: inline-size;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero {
    padding: 72px 0 112px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 48px;
  }
}

.eyebrow {
  margin-bottom: 20px;
  color: var(--accent);
  font: 500 13px/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-title {
  font-family: var(--font-brand);
  font-weight: 800;
  /* Sized by its column, so "Do caderno de vendas" holds one line (it needs
     about 10.2 times the font size, measured in Chrome on 2026-11-28). */
  font-size: clamp(30px, 9.4cqi, 60px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--text);
}
.hero-line {
  display: block;
}
.hero-lead {
  max-width: 34ch;
  margin-top: 28px;
  color: var(--text-secondary);
  font-size: 19px;
  line-height: 1.55;
}
@media (min-width: 768px) {
  .hero-lead {
    font-size: 21px;
  }
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-figure {
  justify-self: center;
  width: 100%;
  max-width: 500px;
}

/*
 * The deck: three papers of three companies, the hero's one picture of the
 * range. Each sheet is placed by --x, --y and --r on its own transform, which
 * hover moves (a transition, so it retargets mid-way); the scroll-linked fan
 * uses the separate translate property, so the two never fight.
 */

.deck {
  position: relative;
  height: 440px;
}
.sheet {
  --x: 0px;
  --y: 0px;
  --r: 0deg;
  position: absolute;
  top: 0;
  left: 54%;
  width: 210px;
  padding: 18px 18px 20px;
  border-radius: 6px;
  background: var(--paper);
  color: var(--paper-ink);
  font: 400 11px/1.45 var(--font-mono);
  box-shadow: var(--shadow-paper);
  transform: translateX(-50%) translate(var(--x), var(--y)) rotate(var(--r));
  transition: transform 520ms var(--ease-out);
}
.sheet-day {
  --x: -116px;
  --y: 44px;
  --r: -7deg;
}
.sheet-network {
  --x: 116px;
  --y: 70px;
  --r: 6deg;
}
.sheet-receipt {
  --r: 0.8deg;
  z-index: 2;
  padding: 0;
  background: none;
  box-shadow: none;
}
.sheet-title {
  font: 700 14px/1.25 var(--font-brand);
  letter-spacing: -0.01em;
}
.sheet-sub {
  color: #5d6a66;
  font-size: 10.5px;
}
.sheet-lines,
.net-rows {
  margin-top: 12px;
  border-top: 1px dashed #c8cfcc;
}
.sheet-lines li,
.net-rows li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed #e1e5e3;
}
.sheet-lines li span:last-child,
.net-rows li span:last-child {
  color: #39433f;
  white-space: nowrap;
}
.sheet-total {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-weight: 500;
  font-size: 12.5px;
}
.sheet-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eceeed;
  color: #4a5552;
  font: 600 10.5px/1.2 var(--font-sans);
}
.sheet-tag-gold {
  background: #faf1dd;
  color: #7a5a14;
}

/* The receipt sheet */

.receipt-paper {
  position: relative;
  padding: 20px 18px 24px;
  background: var(--paper);
  color: var(--paper-ink);
  font: 400 10.5px/1.45 var(--font-mono);
  box-shadow: var(--shadow-paper);
  /* A torn edge at the foot, as a receipt leaves the printer. */
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 8px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 8px repeat-x;
}
.r-store {
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-align: center;
}
.r-sub {
  text-align: center;
  color: #5d6a66;
}
.r-doc {
  margin: 10px 0 8px;
  padding: 6px 0;
  border-block: 1px dashed #c8cfcc;
  font-size: 9px;
  text-align: center;
  color: #5d6a66;
}
.r-items {
  width: 100%;
  border-collapse: collapse;
}
.r-items td {
  padding: 3px 0;
  vertical-align: top;
}
.r-items td span {
  color: #5d6a66;
}
.r-items .num,
.r-totals dd {
  text-align: right;
}
.r-totals {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #c8cfcc;
}
.r-totals div {
  display: flex;
  justify-content: space-between;
}
.r-total {
  margin: 2px 0;
  font-weight: 500;
  font-size: 12px;
}
.r-key {
  margin: 10px 0 8px;
  padding-top: 8px;
  border-top: 1px dashed #c8cfcc;
  font-size: 9px;
  letter-spacing: 0.02em;
  text-align: center;
}
.r-meta {
  font-size: 9.5px;
  color: #39433f;
}
.r-foot {
  display: flex;
  align-items: center;
  gap: 10px;
}
.r-qr {
  flex: none;
  width: 58px;
  height: 58px;
  fill: #1d2422;
}

.stamp {
  position: absolute;
  /* Over the paper's corner, where it hides none of the note's figures. */
  right: -16px;
  top: -14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 9px;
  border: 2px solid var(--success);
  border-radius: var(--radius-2);
  background: color-mix(in srgb, var(--success-subtle) 92%, transparent);
  color: var(--success-text);
  font: 700 13px/1 var(--font-brand);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: rotate(-6deg);
  box-shadow: 0 6px 18px -8px rgba(17, 48, 43, 0.45);
}
.stamp svg,
.ps-check svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 559px) {
  .deck {
    height: 400px;
  }
  .sheet {
    left: 50%;
    width: 196px;
  }
  .sheet-day {
    --x: -78px;
    --y: 52px;
    --r: -8deg;
  }
  .sheet-network {
    --x: 78px;
    --y: 78px;
    --r: 7deg;
  }
  .stamp {
    right: -8px;
  }
}

/* Hover: the deck spreads, and the sheet under the pointer lifts. */
@media (hover: hover) and (pointer: fine) {
  .deck:hover .sheet-day {
    --x: -140px;
    --r: -10deg;
  }
  .deck:hover .sheet-network {
    --x: 140px;
    --r: 9deg;
  }
  .deck:hover .sheet-receipt {
    --y: -8px;
  }
  .deck .sheet:hover {
    --y: -14px;
  }
}

.fig-note {
  margin-top: 18px;
  color: var(--text-muted);
  font: 400 12px/1.3 var(--font-mono);
  text-align: center;
}

/* Scenes */

.scene {
  padding: 80px 0;
  border-top: 1px solid var(--divider);
}
@media (min-width: 960px) {
  .scene {
    padding: 128px 0;
  }
}
.scene-grid {
  display: grid;
  /* minmax(0, 1fr): the ledger's table scrolls inside its card instead of widening the page. */
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) {
  .scene-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 72px;
  }
}
.kicker {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--text-secondary);
  font: 500 13px/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.kicker .num {
  color: var(--accent);
}
.scene h2,
.start h2,
.index-title,
.closing h2 {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: clamp(32px, 3.4vw + 14px, 52px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.scene-copy p:not(.kicker) {
  max-width: 44ch;
  margin-top: 20px;
  color: var(--text-secondary);
}
.scene-copy .scene-note {
  padding-left: 14px;
  border-left: 2px solid var(--gold);
  color: var(--text-muted);
  font-size: 15px;
}
.scene-copy h2 + p {
  margin-top: 28px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-3);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.card-title {
  font-weight: 600;
  font-size: 15px;
}
.card-sub {
  color: var(--text-muted);
  font-size: 13px;
}

/* Scene 1: the phone and the stock */

.sale-figure {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 24px;
}
@media (min-width: 640px) {
  .sale-figure {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-items: stretch;
    gap: 32px;
  }
  .sale-figure .fig-note {
    grid-column: 1 / -1;
  }
}

.phone {
  width: 250px;
  padding: 10px;
  border-radius: 38px;
  background: #101716;
  box-shadow: var(--shadow-paper), inset 0 0 0 1px #3a4643;
}
.phone-screen {
  display: grid;
  min-height: 440px;
  overflow: hidden;
  border-radius: 29px;
  background: #fbfaf6;
  color: #14201e;
}
.ps {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  padding: 34px 18px 18px;
  font-size: 13px;
  line-height: 1.4;
}
.ps-title {
  font: 700 19px/1.2 var(--font-brand);
  letter-spacing: -0.01em;
}
.ps-lines {
  margin-top: 18px;
}
.ps-lines li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid #ebe8df;
}
.ps-lines li .num {
  color: #5d6a66;
  font-size: 12px;
}
.ps-total,
.ps-pay {
  display: flex;
  justify-content: space-between;
}
.ps-total {
  margin-top: 16px;
  font-weight: 600;
  font-size: 15px;
}
.ps-pay {
  margin-top: 4px;
  color: #5d6a66;
}
.ps-cta {
  margin-top: auto;
  padding: 14px;
  border-radius: 14px;
  background: #0c6b66;
  color: #fff;
  font-weight: 600;
  text-align: center;
}
.ps-done {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}
.ps-check {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: #e5f2ed;
  color: #207b60;
}
.ps-check svg {
  width: 26px;
  height: 26px;
  stroke-dasharray: 16;
  stroke-dashoffset: 0;
}
.ps-sub {
  color: #5d6a66;
  font-size: 12px;
}
.ps-send {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border-radius: 14px;
  background: #0c6b66;
  color: #fff;
  font-weight: 600;
}
.ps-send:first-of-type {
  margin-top: 22px;
}
.ps-send-ghost {
  margin-top: 0;
  background: transparent;
  color: #0c6b66;
  box-shadow: inset 0 0 0 1px #c9d6d2;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.badge-success {
  background: #e5f2ed;
  color: #145a47;
}
.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #207b60;
}

.stock-card {
  width: 100%;
  max-width: 420px;
  padding: 18px 20px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-3);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.stock-rows {
  margin-top: 10px;
}
.stock-rows li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 3ch;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--divider);
  font-size: 15px;
}
.stock-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stock-delta {
  color: var(--text-muted);
  font-size: 13px;
}
.roll {
  position: relative;
  display: inline-grid;
  overflow: hidden;
  justify-items: end;
  font-weight: 500;
}
.roll > span {
  grid-area: 1 / 1;
}
.roll-old {
  visibility: hidden;
}

/* Scene 2: the ledger */

.ledger-head {
  padding: 18px 20px 14px;
}
.table-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
.ledger-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
}
.ledger-table th {
  padding: 8px 20px;
  border-block: 1px solid var(--divider);
  background: var(--surface-sunken);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  text-align: left;
}
.ledger-table td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--divider);
  vertical-align: top;
}
.ledger-table .num {
  text-align: right;
  white-space: nowrap;
}
.ledger-table td:first-child {
  text-align: left;
  color: var(--text-muted);
}
.ledger-table .in {
  color: var(--success-text);
}
.mv-origin {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
}
.ledger-new td {
  background: transparent;
}
.ledger-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 20px 18px;
  font-size: 14px;
}
.ledger-foot > span:first-child {
  color: var(--text-secondary);
}
.ledger-foot .num {
  font-weight: 500;
}

/* Scene 3: the statement */

.dre {
  padding: 6px 20px 20px;
}
.dre-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--divider);
  font-size: 15px;
}
.dre-line dd {
  white-space: nowrap;
}
.dre-minus dt {
  padding-left: 14px;
  color: var(--text-secondary);
}
.dre-minus dd {
  color: var(--text-secondary);
}
.dre-sum {
  font-weight: 600;
}
.dre-result {
  position: relative;
  margin-top: 4px;
  padding: 16px 0 14px;
  border-top: 2px solid var(--text);
  font-weight: 600;
  font-size: 17px;
}
.dre-result dd {
  position: relative;
  color: var(--gold-text);
}
.dre-result dd::after {
  /* The one gold reading on this screen. */
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
  transform-origin: left center;
}

/* Index */

.index {
  padding: 80px 0;
  border-top: 1px solid var(--divider);
}
@media (min-width: 960px) {
  .index {
    padding: 112px 0;
  }
}
.index-list {
  display: grid;
  margin-top: 40px;
  column-gap: 64px;
}
@media (min-width: 880px) {
  .index-list {
    grid-template-columns: 1fr 1fr;
  }
}
.index-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--divider);
}
.index-list li > span:first-child {
  flex: 0 1 auto;
}
.index-list li::after {
  /* The dot leaders of a table of contents, between the item and its area. */
  content: '';
  order: 1;
  flex: 1 1 24px;
  min-width: 24px;
  height: 1px;
  transform: translateY(-5px);
  background-image: radial-gradient(circle, var(--border-strong) 1px, transparent 1.2px);
  background-size: 6px 2px;
  background-repeat: repeat-x;
}
.index-area {
  order: 2;
  flex: none;
  color: var(--text-muted);
  font: 400 13px/1.3 var(--font-mono);
}

/* How to start */

.start {
  padding: 80px 0;
  border-top: 1px solid var(--divider);
}
@media (min-width: 960px) {
  .start {
    padding: 112px 0;
  }
}
.steps {
  display: grid;
  gap: 32px;
  margin-top: 48px;
  counter-reset: none;
}
@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
}
.steps li {
  padding-top: 20px;
}
.step-n {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
}
.steps h3 {
  margin-top: 10px;
  font: 700 22px/1.2 var(--font-brand);
  letter-spacing: -0.015em;
}
.steps li p:last-child {
  margin-top: 10px;
  color: var(--text-secondary);
}

/* Closing */

.closing {
  padding: 96px 0;
  background: var(--closing-bg);
  color: var(--closing-text);
}
@media (min-width: 960px) {
  .closing {
    padding: 136px 0;
  }
}
.closing-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.closing h2 {
  font-size: clamp(40px, 6vw + 8px, 80px);
  letter-spacing: -0.035em;
}
.closing p {
  margin-top: 20px;
  color: var(--closing-muted);
  font-size: 19px;
}
.closing-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 40px;
}
.closing-mail {
  color: var(--brand-cream);
  font: 500 16px/1.3 var(--font-mono);
  text-underline-offset: 4px;
  text-decoration-color: rgba(244, 239, 228, 0.4);
  transition: text-decoration-color 160ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .closing-mail:hover {
    text-decoration-color: var(--gold);
  }
}

/* Footer */

.foot {
  padding: 32px 0 40px;
  background: var(--closing-bg);
  color: var(--closing-muted);
  font-size: 14px;
  border-top: 1px solid rgba(244, 239, 228, 0.1);
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.foot-logo {
  width: 120px;
  height: auto;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.foot-links a {
  color: var(--brand-cream);
  text-underline-offset: 4px;
}

/* Header state: a hairline once the page has scrolled, and the reading progress. */

.bar {
  transition: border-color 200ms ease;
}
.bar.is-scrolled {
  border-bottom-color: var(--divider);
}
.bar-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

/* Sizes: one panel, three companies, moved by the step in view. */

.sizes {
  padding: 88px 0 40px;
  border-top: 1px solid var(--divider);
}
@media (min-width: 960px) {
  .sizes {
    padding: 128px 0 64px;
  }
}
.sizes-head h2 {
  max-width: 20ch;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: clamp(32px, 3.4vw + 14px, 52px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.sizes-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 40px;
}
@media (min-width: 960px) {
  .sizes-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 72px;
    margin-top: 24px;
  }
}
.sizes-stage {
  position: sticky;
  top: calc(var(--bar-height) + 8px);
  z-index: 2;
  align-self: start;
  padding-bottom: 16px;
  background: linear-gradient(var(--bg) 85%, transparent);
}
@media (min-width: 960px) {
  .sizes-stage {
    /* Its middle on the screen's middle, where the active step's text sits. */
    top: max(calc(var(--bar-height) + 16px), calc(50vh - 130px));
    padding: 0;
    background: none;
  }
}

.app {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-3);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.app-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--brand-green);
  color: var(--brand-cream);
}
.app-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--gold);
}
.app-co,
.app-doc,
.store-doc {
  display: inline-grid;
}
.app-co > *,
.app-doc > *,
.store-doc > * {
  grid-area: 1 / 1;
}
.app-co {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
  font-size: 15px;
}
.app-doc {
  justify-items: end;
  color: #b9c8c2;
  font-size: 12px;
}
.app-body {
  display: grid;
  gap: 16px;
  padding: 16px;
}
@media (min-width: 640px) {
  .app-body {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 24px;
    padding: 20px;
  }
}
.app-mods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
}
.mod {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 13px;
  white-space: nowrap;
  transition:
    opacity 280ms ease,
    background-color 280ms ease,
    transform 360ms var(--ease-out);
}
@media (min-width: 640px) {
  .mod {
    padding: 7px 10px;
    font-size: 14px;
  }
}
.mod-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  background: var(--accent);
  transition:
    background-color 280ms ease,
    border-color 280ms ease;
}
.app-label {
  margin-bottom: 6px;
  color: var(--text-muted);
  font: 500 11px/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.app-stores ul {
  display: grid;
  gap: 6px;
}
.store {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  transition: border-color 280ms ease;
}
.store > * {
  transition:
    opacity 280ms ease,
    transform 360ms var(--ease-out);
}
.store-doc {
  color: var(--text-muted);
  font-size: 11.5px;
  white-space: nowrap;
}

/* On a phone the panel stays above the steps it follows, so it stays short. */
@media (max-width: 639px) {
  .app-body {
    gap: 10px;
    padding: 12px;
  }
  .mod {
    gap: 7px;
    padding: 3px 6px;
    font-size: 12.5px;
  }
  .store {
    padding: 6px 10px;
    font-size: 12px;
  }
  .app-stores ul {
    gap: 4px;
  }
}

/* Off: the step has not reached it. The slot stays, so nothing shifts. */
.app [data-for] {
  opacity: 0;
  transition: opacity 260ms ease;
}
.app[data-step='1'] [data-for~='1'],
.app[data-step='2'] [data-for~='2'],
.app[data-step='3'] [data-for~='3'] {
  opacity: 1;
}
.app[data-step='1'] .mod:is([data-from='2'], [data-from='3']),
.app[data-step='2'] .mod[data-from='3'] {
  opacity: 0.38;
  transform: translateX(-3px);
}
.app[data-step='1'] .mod:is([data-from='2'], [data-from='3']) .mod-dot,
.app[data-step='2'] .mod[data-from='3'] .mod-dot {
  border-color: var(--border-strong);
  background: transparent;
}
.app[data-step='1'] .store[data-from='3'],
.app[data-step='2'] .store[data-from='3'] {
  border-style: dashed;
}
.app[data-step='1'] .store[data-from='3'] > *,
.app[data-step='2'] .store[data-from='3'] > * {
  opacity: 0;
  transform: translateY(4px);
}
/* What switches on arrives in reading order, a few tens of milliseconds apart. */
.mod[data-from='2']:nth-child(6),
.mod[data-from='3']:nth-child(10),
.store[data-from='3']:nth-child(3) > * {
  transition-delay: 50ms;
}
.mod[data-from='2']:nth-child(7) {
  transition-delay: 90ms;
}
.mod[data-from='2']:nth-child(8) {
  transition-delay: 120ms;
}

.sizes-steps {
  position: relative;
  z-index: 1;
}
.size-step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 62vh;
  padding: 32px 0;
  transition: opacity 300ms ease;
}
@media (min-width: 960px) {
  .size-step {
    min-height: 58vh;
  }
  .size-step:first-child {
    margin-top: -12vh;
  }
}
.js .size-step:not(.is-active) {
  opacity: 0.32;
}
.size-tag {
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.size-step h3 {
  margin-top: 12px;
  font: 800 clamp(26px, 2vw + 14px, 34px) / 1.1 var(--font-brand);
  letter-spacing: -0.025em;
}
.size-step p:last-child {
  max-width: 40ch;
  margin-top: 14px;
  color: var(--text-secondary);
}

/* The accountant */

.facts {
  display: grid;
  gap: 12px;
  max-width: 44ch;
  margin-top: 28px;
}
.facts li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
}
.facts li::before {
  /* A tick drawn with two borders. */
  content: '';
  position: absolute;
  left: 4px;
  top: 0.35em;
  width: 7px;
  height: 13px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.acct-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--divider);
}
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-green);
  color: var(--brand-cream);
  font: 600 12px/1 var(--font-sans);
}
.acct-who {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  line-height: 1.25;
}
.acct-name {
  font-weight: 600;
  font-size: 14px;
}
.acct-role {
  color: var(--text-muted);
  font-size: 12px;
}
.acct-mode {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-subtle);
  color: var(--accent);
  font: 600 12px/1.2 var(--font-sans);
  white-space: nowrap;
}
.acct-grid {
  display: grid;
}
@media (min-width: 640px) {
  .acct-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}
.acct-cos {
  padding: 16px 12px;
  border-bottom: 1px solid var(--divider);
  background: var(--surface-sunken);
}
@media (min-width: 640px) {
  .acct-cos {
    border-right: 1px solid var(--divider);
    border-bottom: 0;
  }
}
.acct-cos .app-label {
  padding-left: 8px;
}
.acct-cos li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  transition: background-color 160ms ease;
}
.acct-cos li .num {
  color: var(--text-muted);
  font-size: 11.5px;
  white-space: nowrap;
}
.acct-cos li.is-current {
  background: var(--accent-subtle);
  color: var(--accent);
  font-weight: 600;
}
.acct-body {
  padding: 18px 20px 20px;
}
.acct-rows {
  margin-top: 12px;
}
.acct-rows li,
.acct-books li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--divider);
  font-size: 14px;
}
.acct-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 16px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 14px;
}
.acct-download svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 200ms var(--ease-out);
}
.acct .badge-success {
  background: var(--success-subtle);
  color: var(--success-text);
}
.acct .badge-success .dot {
  background: var(--success);
}
.badge-neutral {
  background: var(--surface-sunken);
  color: var(--text-secondary);
}
.badge-neutral .dot {
  background: var(--text-muted);
}

/* Hover, where a pointer can hover: rows answer the pointer, nothing jumps. */
@media (hover: hover) and (pointer: fine) {
  .acct-cos li:not(.is-current):hover,
  .ledger-table tbody tr:hover td,
  .stock-rows li:hover {
    background-color: var(--surface-sunken);
  }
  .acct-download:hover svg {
    transform: translateY(2px);
  }
  .mod:hover {
    background-color: var(--surface-sunken);
  }
  .index-list li > span:first-child {
    transition: transform 220ms var(--ease-out);
  }
  .index-list li:hover > span:first-child {
    transform: translateX(6px);
  }
  .index-area {
    transition: color 160ms ease;
  }
  .index-list li:hover .index-area {
    color: var(--accent);
  }
  .steps li .step-n {
    transition: transform 220ms var(--ease-out);
  }
  .steps li:hover .step-n {
    transform: translateX(4px);
  }
}
.ledger-table td,
.stock-rows li {
  transition: background-color 160ms ease;
}

/* How to start: the rule above each step is a line that can draw. */
.steps li {
  position: relative;
}
.steps li::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--text);
  transform-origin: left center;
}

/* Placeholders (L3): drawn so nobody takes them for the real contact. */

[data-placeholder] {
  outline: 2px dashed #d97706;
  outline-offset: 3px;
}
body:has([data-placeholder])::after {
  content: 'Prévia: razão social e CNPJ ainda são provisórios';
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 30;
  max-width: calc(100% - 24px);
  padding: 8px 12px;
  border-radius: 8px;
  background: #d97706;
  color: #1f1300;
  font: 600 12px/1.3 var(--font-sans);
  pointer-events: none;
}

/*
 * Motion. Nothing below runs without html.js; every start state is the
 * figure's final state until a scene's .is-in arrives.
 */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(var(--rise, 14px));
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes print {
  from {
    clip-path: inset(0 0 100% 0);
    transform: translateY(-18px);
  }
  to {
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }
}
@keyframes stamp {
  0% {
    opacity: 0;
    transform: rotate(-11deg) scale(1.18);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: rotate(-6deg) scale(1);
  }
}
@keyframes press {
  50% {
    transform: scale(0.96);
  }
}
@keyframes leave-blur {
  to {
    opacity: 0;
    filter: blur(3px);
    transform: scale(0.98);
  }
}
@keyframes arrive-blur {
  from {
    opacity: 0;
    filter: blur(3px);
    transform: translateY(8px);
  }
}
@keyframes draw {
  from {
    stroke-dashoffset: 16;
  }
}
@keyframes roll-out {
  to {
    transform: translateY(-110%);
  }
}
@keyframes roll-in {
  from {
    transform: translateY(110%);
  }
}
@keyframes nudge-in {
  from {
    opacity: 0;
    transform: translateX(6px);
  }
}
@keyframes post {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}
@keyframes highlight {
  from {
    background-color: var(--accent-subtle);
  }
  to {
    background-color: transparent;
  }
}
@keyframes underline {
  from {
    transform: scaleX(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* Hero: the headline leads, its support follows, the receipt prints, the stamp lands. */
  .js .eyebrow {
    animation: fade 500ms ease both;
  }
  .js .hero-line {
    animation: rise 760ms var(--ease-out) both;
    --rise: 0.32em;
  }
  .js .hero-line:nth-child(1) {
    animation-delay: 60ms;
  }
  .js .hero-line:nth-child(2) {
    animation-delay: 170ms;
  }
  .js .hero-lead {
    animation: rise 640ms var(--ease-out) 300ms both;
    --rise: 10px;
  }
  .js .hero-ctas {
    animation: rise 600ms var(--ease-out) 390ms both;
    --rise: 8px;
  }
  .js .receipt-paper {
    animation: print 1150ms var(--ease-drawer) 340ms both;
  }
  .js .hero-figure .fig-note {
    animation: fade 400ms ease 1300ms both;
  }
  .js .stamp {
    animation: stamp 300ms var(--ease-out) 1380ms both;
  }

  /* Scene 1: the charge is pressed, the screen turns into the note, the stock moves. */
  .js .scene-sale:not(.is-in) .ps-done,
  .js .scene-sale:not(.is-in) .stock-delta,
  .js .scene-sale:not(.is-in) .roll-new {
    opacity: 0;
  }
  .js .scene-sale:not(.is-in) .roll-old {
    visibility: visible;
  }
  .js .scene-sale.is-in .ps-cta {
    animation: press 220ms var(--ease-out) 380ms;
  }
  .js .scene-sale.is-in .ps-cart {
    animation: leave-blur 220ms var(--ease-out) 640ms both;
  }
  .js .scene-sale.is-in .ps-done {
    animation: arrive-blur 380ms var(--ease-out) 700ms both;
  }
  .js .scene-sale.is-in .ps-check svg {
    animation: draw 420ms var(--ease-out) 820ms both;
  }
  .js .scene-sale.is-in .roll-old {
    visibility: visible;
    animation: roll-out 420ms var(--ease-out) 1080ms both;
  }
  .js .scene-sale.is-in .roll-new {
    animation: roll-in 420ms var(--ease-out) 1080ms both;
  }
  .js .scene-sale.is-in .stock-delta {
    animation: nudge-in 360ms var(--ease-out) 1020ms both;
  }
  .js .scene-sale.is-in li:nth-child(2) .roll-old,
  .js .scene-sale.is-in li:nth-child(2) .roll-new {
    animation-delay: 1150ms;
  }
  .js .scene-sale.is-in li:nth-child(2) .stock-delta {
    animation-delay: 1090ms;
  }

  /* Scene 2: the sale's line posts to the ledger and the balance follows. */
  .js .scene-ledger:not(.is-in) .ledger-new td {
    opacity: 0;
  }
  .js .scene-ledger:not(.is-in) .roll-new {
    opacity: 0;
  }
  .js .scene-ledger:not(.is-in) .roll-old {
    visibility: visible;
  }
  .js .scene-ledger.is-in .ledger-new td {
    animation:
      post 480ms var(--ease-out) 260ms both,
      highlight 1600ms ease 900ms both;
  }
  .js .scene-ledger.is-in .ledger-foot .roll-old {
    visibility: visible;
    animation: roll-out 420ms var(--ease-out) 640ms both;
  }
  .js .scene-ledger.is-in .ledger-foot .roll-new {
    animation: roll-in 420ms var(--ease-out) 640ms both;
  }

  /* Scene 3: the statement reads top to bottom and lands on the result. */
  .js .scene-result:not(.is-in) .dre-line {
    opacity: 0;
  }
  .js .scene-result:not(.is-in) .dre-result dd::after {
    transform: scaleX(0);
  }
  .js .scene-result.is-in .dre-line {
    animation: rise 520ms var(--ease-out) both;
    --rise: 8px;
  }
  .js .scene-result.is-in .dre-line:nth-child(2) {
    animation-delay: 90ms;
  }
  .js .scene-result.is-in .dre-line:nth-child(3) {
    animation-delay: 170ms;
  }
  .js .scene-result.is-in .dre-line:nth-child(4) {
    animation-delay: 240ms;
  }
  .js .scene-result.is-in .dre-line:nth-child(5) {
    animation-delay: 300ms;
  }
  .js .scene-result.is-in .dre-line:nth-child(6) {
    animation-delay: 350ms;
  }
  .js .scene-result.is-in .dre-line:nth-child(7) {
    animation-delay: 470ms;
  }
  .js .scene-result.is-in .dre-result dd::after {
    animation: underline 640ms var(--ease-out) 820ms both;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* Fewer and gentler: the figures appear in their final state, by opacity alone. */
  .js .hero-figure,
  .js .scene.is-in .scene-figure {
    animation: fade 300ms ease both;
  }
  .js .scene:not(.is-in) .scene-figure {
    opacity: 0;
  }
  .ps-cart {
    visibility: hidden;
  }
  .btn:active {
    transform: none;
  }
}

@keyframes deal {
  from {
    opacity: 0;
    transform: translateX(-50%) translate(0, 18px) rotate(0deg);
  }
}
@keyframes fan-left {
  to {
    translate: -26px -14px;
  }
}
@keyframes fan-right {
  to {
    translate: 26px -6px;
  }
}
@keyframes lift {
  to {
    translate: 0 -30px;
  }
}
@keyframes progress {
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: no-preference) {
  /*
   * Hero deck: the receipt prints first (it leads), and the two other papers
   * are dealt from behind it. backwards, not both: once dealt, a sheet's
   * transform belongs to its hover transition again.
   */
  .js .sheet-day {
    animation: deal 720ms var(--ease-out) 520ms backwards;
  }
  .js .sheet-network {
    animation: deal 720ms var(--ease-out) 610ms backwards;
  }

  /* Scroll-linked, where the browser can tie an animation to scrolling. */
  @supports (animation-timeline: view()) {
    /* As the hero leaves, the deck opens a little: decoration, so linear and small. */
    .js .sheet-day {
      animation:
        deal 720ms var(--ease-out) 520ms backwards,
        fan-left linear both;
      animation-timeline: auto, view();
      animation-range: normal, exit 0% exit 90%;
    }
    .js .sheet-network {
      animation:
        deal 720ms var(--ease-out) 610ms backwards,
        fan-right linear both;
      animation-timeline: auto, view();
      animation-range: normal, exit 0% exit 90%;
    }
    .js .sheet-receipt {
      animation: lift linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 90%;
    }
    /* The reading progress under the header. */
    .bar-progress {
      animation: progress linear both;
      animation-timeline: scroll(root block);
    }
  }

  /* The accountant: the companies first (one login, several companies), then the month as one block. */
  .js .scene-accountant:not(.is-in) .acct-cos li,
  .js .scene-accountant:not(.is-in) .acct-body {
    opacity: 0;
  }
  .js .scene-accountant.is-in .acct-cos li {
    animation: rise 460ms var(--ease-out) both;
    --rise: 8px;
  }
  .js .scene-accountant.is-in .acct-cos li:nth-child(2) {
    animation-delay: 60ms;
  }
  .js .scene-accountant.is-in .acct-cos li:nth-child(3) {
    animation-delay: 105ms;
  }
  .js .scene-accountant.is-in .acct-cos li:nth-child(4) {
    animation-delay: 140ms;
  }
  .js .scene-accountant.is-in .acct-body {
    animation: rise 560ms var(--ease-out) 240ms both;
    --rise: 10px;
  }

  /* The index: the list enters once, the first rows a little apart, the rest together. */
  .js .index:not(.is-in) .index-list li {
    opacity: 0;
  }
  .js .index.is-in .index-list li {
    animation: rise 520ms var(--ease-out) 170ms both;
    --rise: 10px;
  }
  .js .index.is-in .index-list li:nth-child(1) {
    animation-delay: 0ms;
  }
  .js .index.is-in .index-list li:nth-child(2) {
    animation-delay: 40ms;
  }
  .js .index.is-in .index-list li:nth-child(3) {
    animation-delay: 75ms;
  }
  .js .index.is-in .index-list li:nth-child(4) {
    animation-delay: 105ms;
  }
  .js .index.is-in .index-list li:nth-child(5) {
    animation-delay: 130ms;
  }
  .js .index.is-in .index-list li:nth-child(6) {
    animation-delay: 150ms;
  }

  /* How to start: each step's rule draws, left to right, in order. */
  .js .start:not(.is-in) .steps li::before {
    transform: scaleX(0);
  }
  .js .start.is-in .steps li::before {
    animation: underline 760ms var(--ease-out) both;
  }
  .js .start.is-in .steps li:nth-child(2)::before {
    animation-delay: 130ms;
  }
  .js .start.is-in .steps li:nth-child(3)::before {
    animation-delay: 230ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mod,
  .store > *,
  .sheet {
    transition-property: opacity, background-color, border-color;
  }
  .app .mod,
  .app .store > * {
    transform: none !important;
  }
}

/* Without script, or with reduced motion, the phone shows the sale's result. */
html:not(.js) .ps-cart {
  visibility: hidden;
}
.js .scene-sale.is-in .ps-cart {
  pointer-events: none;
}
