/* Copperline launch site. Tokens first (the app's, plus a few site-only values), then components. */

:root {
  color-scheme: light dark;

  /* Surfaces and ink */
  --color-bg: #f4efe8;
  --color-surface: #fdfbf8;
  --color-surface-raised: #ffffff;
  --color-surface-sunken: #ece6dd;
  --color-border: #e3dbcf;
  --color-border-strong: #bfb3a3;
  --color-ink: #1f2933;
  --color-ink-muted: #5b6672;
  --color-ink-faint: #8a939d;
  --color-ink-inverse: #fdfbf8;

  /* Copper */
  --color-accent: #b4652b;
  --color-accent-strong: #944f1f;
  --color-accent-soft: #f6e6d8;
  --color-accent-wash: #fbf4ec;
  --color-accent-ink: #ffffff;
  --gradient-copper: linear-gradient(150deg, #c9743a 0%, #a85a24 100%);

  /* Status (always paired with the label) */
  --color-status-quoted-bg: #e3eefb;
  --color-status-quoted-fg: #1d4f91;
  --color-status-quoted-dot: #2f6fd6;
  --color-status-booked-bg: #fbefd5;
  --color-status-booked-fg: #7a4e00;
  --color-status-booked-dot: #d9960a;
  --color-status-done-bg: #def3e4;
  --color-status-done-fg: #1f6b3a;
  --color-status-done-dot: #2f9e5a;
  --color-status-invoiced-bg: #e7eaee;
  --color-status-invoiced-fg: #3c4a58;
  --color-status-invoiced-dot: #6b7a8a;

  /* Focus */
  --color-focus: #2f6fd6;

  /* Site only */
  --color-ink-deep: #141b22;
  --color-pipe: #d9c6b2;
  --color-on-deep: #fdfbf8;
  --color-on-deep-muted: rgb(253 251 248 / 0.7);
  --color-header-bg: rgb(253 251 248 / 0.86);
  --shadow-sm: 0 1px 2px rgb(31 41 51 / 0.06), 0 1px 1px rgb(31 41 51 / 0.04);
  --shadow-md:
    0 6px 16px rgb(31 41 51 / 0.08), 0 2px 4px rgb(31 41 51 / 0.05),
    0 0 0 1px rgb(31 41 51 / 0.03);
  --shadow-lg:
    0 18px 40px rgb(31 41 51 / 0.14), 0 4px 10px rgb(31 41 51 / 0.06),
    0 0 0 1px rgb(31 41 51 / 0.04);
  --shadow-accent: 0 2px 6px rgb(180 101 43 / 0.28);

  /* Type and layout */
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body:
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-height: 4rem;
  --content-width: 72rem;
  --gutter: 1.25rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #15181c;
    --color-surface: #1e2227;
    --color-surface-raised: #262b31;
    --color-surface-sunken: #111417;
    --color-border: #333a42;
    --color-border-strong: #4b545e;
    --color-ink: #ece7df;
    --color-ink-muted: #a4acb5;
    --color-ink-faint: #737c86;
    --color-ink-inverse: #15181c;

    --color-accent: #d58a4f;
    --color-accent-strong: #e8a26b;
    --color-accent-soft: #3a2a1d;
    --color-accent-wash: #272019;
    --color-accent-ink: #1a120b;
    --gradient-copper: linear-gradient(150deg, #e09a62 0%, #c77a3f 100%);

    --color-status-quoted-bg: #1e3350;
    --color-status-quoted-fg: #a9cbf5;
    --color-status-quoted-dot: #6ea3ee;
    --color-status-booked-bg: #3f3010;
    --color-status-booked-fg: #f2c56b;
    --color-status-booked-dot: #e3a52f;
    --color-status-done-bg: #1b3826;
    --color-status-done-fg: #9ad9ad;
    --color-status-done-dot: #4fb673;
    --color-status-invoiced-bg: #2e3640;
    --color-status-invoiced-fg: #c2cbd5;
    --color-status-invoiced-dot: #8d9aa8;

    --color-focus: #8fb6f5;

    --color-ink-deep: #0e1115;
    --color-pipe: #2c333b;
    --color-on-deep: #ece7df;
    --color-on-deep-muted: rgb(236 231 223 / 0.7);
    --color-header-bg: rgb(30 34 39 / 0.86);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4), 0 1px 1px rgb(0 0 0 / 0.3);
    --shadow-md:
      0 6px 18px rgb(0 0 0 / 0.5), 0 2px 4px rgb(0 0 0 / 0.4),
      0 0 0 1px rgb(255 255 255 / 0.04);
    --shadow-lg:
      0 18px 44px rgb(0 0 0 / 0.6), 0 4px 10px rgb(0 0 0 / 0.4),
      0 0 0 1px rgb(255 255 255 / 0.05);
    --shadow-accent: 0 2px 8px rgb(0 0 0 / 0.45);
  }
}

/* ---------- Base ---------- */

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

html {
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--color-ink);
  background: var(--color-bg);
  overflow-x: clip;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 1.6rem + 4.2vw, 4.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

p {
  margin: 0;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  flex: none;
}

.small {
  font-size: 0.875rem;
}

.muted {
  color: var(--color-ink-muted);
}

.centre {
  text-align: center;
}

.num,
.amount,
.chip__count,
.quote-card__ref {
  font-variant-numeric: tabular-nums lining-nums;
}

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

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

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1.25rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 120ms ease;
}

.button--primary {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  box-shadow: var(--shadow-accent);
}

.button--primary:hover {
  background: var(--color-accent-strong);
}

.button--secondary {
  background: var(--color-surface-raised);
  color: var(--color-ink);
  border: 1px solid var(--color-border-strong);
  box-shadow: var(--shadow-sm);
}

.button--secondary:hover {
  background: var(--color-surface-sunken);
}

.button:active {
  transform: translateY(1px) scale(0.985);
}

.button--large {
  min-height: 52px;
  padding: 0 1.75rem;
  font-size: 1.125rem;
}

.button--mock {
  cursor: default;
  pointer-events: none;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header-height);
  background: var(--color-header-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  border-radius: 10px;
}

.logo-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--gradient-copper);
  color: var(--color-accent-ink);
  box-shadow: var(--shadow-accent);
}

.logo-tile--header {
  width: 40px;
  height: 40px;
}

.logo-tile--footer {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.wordmark {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

.wordmark--footer {
  font-weight: 500;
  font-size: 1.0625rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.site-nav__how {
  display: none;
}

@media (min-width: 640px) {
  .site-nav__how {
    display: inline-flex;
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--color-bg);
}

.section--surface {
  background: var(--color-surface);
}

.lead {
  max-width: 56ch;
  font-size: 1.125rem;
  margin-top: 1rem;
}

.lead--centre {
  max-width: 52ch;
  margin-inline: auto;
  text-align: center;
}

/* ---------- 1. Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
  padding-block: clamp(3rem, 7vw, 5rem);
}

.hero__inner {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero__copy {
  max-width: 36rem;
}

.hero__sub {
  max-width: 34ch;
  font-size: 1.125rem;
  color: var(--color-ink-muted);
  margin-top: 1.5rem;
}

.hero__copy .button-row {
  margin-top: 2rem;
}

.hero__note {
  margin-top: 1rem;
}

/* The decorative pipe: a bordered box with one rounded corner, so the quarter bend is
   true at any width. The horizontal run leaves the viewport on the left behind the foot
   of the text column; the vertical leg exits the hero bottom behind the card's right half. */
.pipe {
  display: none;
  position: absolute;
  left: -100vw;
  right: 25%;
  top: 100%;
  bottom: -5rem;
  border-top: 14px solid var(--color-pipe);
  border-right: 14px solid var(--color-pipe);
  border-top-right-radius: 60px;
  pointer-events: none;
  z-index: -1;
}

.hero__visual {
  margin: 0;
  position: relative;
  isolation: isolate;
  width: 100%;
}

.quote-stack {
  width: 100%;
  max-width: 26rem;
}

.quote-card {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
}

.quote-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.quote-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-strong);
}

.quote-card__ref {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.quote-card__customer {
  margin-top: 0.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.quote-lines {
  list-style: none;
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.quote-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.625rem;
}

.quote-line__desc {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  line-height: 1.3;
}

.quote-line__meta {
  font-weight: 400;
  margin-top: 0.125rem;
}

.quote-totals {
  padding-top: 0.75rem;
}

.quote-totals__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.25rem;
  color: var(--color-ink-muted);
}

.quote-totals__row dt {
  font-weight: 500;
}

.quote-totals__row dd {
  color: var(--color-ink);
}

.quote-total {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-ink);
}

.quote-total dt {
  font-weight: 600;
}

.quote-total dd {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 800;
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-accent);
  transition: color 300ms ease;
}

.quote-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (min-width: 900px) {
  .hero {
    min-height: min(calc(100vh - var(--header-height)), 56rem);
    display: flex;
    align-items: center;
  }

  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .hero__visual {
    display: flex;
    justify-content: center;
  }

  .quote-stack {
    transform: rotate(-1.5deg);
  }

  .pipe {
    display: block;
  }
}

/* ---------- 2. How it works ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

.step {
  counter-increment: step;
  display: grid;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

/* The disc and the step number on one row; the number is the ol's own counter. */
.step__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.step__head::after {
  content: counter(step);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-ink-muted);
  font-variant-numeric: tabular-nums lining-nums;
}

.step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
}

.step h3 {
  margin-top: 0.25rem;
}

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

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

/* ---------- 3. The log ---------- */

.log__inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.log__copy p {
  margin-top: 1rem;
  max-width: 52ch;
}

.ticks {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.ticks li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

.ticks svg {
  color: var(--color-accent-strong);
}

.log__visual {
  position: relative;
}

.log-mock {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 1.25rem;
}

/* Five chips come to about 480px, so they sit on one row from 900px and wrap on the phone. */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 36px;
  padding: 0 0.375rem 0 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-ink-muted);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.chip__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.375rem;
  height: 1.375rem;
  padding: 0 0.375rem;
  border-radius: 999px;
  background: var(--color-surface-sunken);
  color: var(--color-ink);
  font-size: 0.8125rem;
}

.chip--on {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: var(--color-ink-inverse);
}

.chip--on .chip__count {
  background: var(--color-accent);
  color: var(--color-accent-ink);
}

.job-rows {
  display: grid;
  gap: 0.625rem;
  margin-top: 1rem;
}

.job-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-raised);
  transition:
    transform 200ms var(--ease-out),
    box-shadow 200ms var(--ease-out);
}

.job-row__who,
.job-row__meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  line-height: 1.3;
}

.job-row__meta {
  align-items: flex-end;
  text-align: right;
  flex: none;
}

.job-row__name,
.job-row__total {
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 28px;
  padding: 0 0.625rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
}

.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.badge--invoiced {
  background: var(--color-status-invoiced-bg);
  color: var(--color-status-invoiced-fg);
}

.badge--invoiced::before {
  background: var(--color-status-invoiced-dot);
}

.log-mock__foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

@media (min-width: 900px) {
  .log__inner {
    grid-template-columns: 1fr 1fr;
  }

  .log__visual {
    order: -1;
  }

  .chips {
    flex-wrap: nowrap;
  }
}

@media (hover: hover) and (min-width: 900px) {
  .job-row:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
  }
}

/* ---------- 4. Features ---------- */

.cards {
  list-style: none;
  display: grid;
  gap: 1.25rem;
  margin-top: 3rem;
}

.card {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition:
    transform 200ms var(--ease-out),
    box-shadow 200ms var(--ease-out);
}

.card__icon {
  color: var(--color-accent-strong);
}

.card h3 {
  margin-top: 1rem;
}

.card p {
  margin-top: 0.5rem;
}

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

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

@media (hover: hover) and (min-width: 900px) {
  .card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
}

/* ---------- 5. Try it, live ---------- */

.window {
  max-width: 64rem;
  margin: 2.5rem auto 0;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: var(--color-bg);
}

.window-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding-inline: 1rem;
  background: var(--color-surface-sunken);
  border-bottom: 1px solid var(--color-border);
}

.window-bar__dots {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 6px;
}

.window-bar__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border-strong);
}

.window-bar__label {
  font-variant-numeric: tabular-nums lining-nums;
}

.window iframe {
  display: block;
  width: 100%;
  height: clamp(520px, 72vh, 760px);
  border: 0;
  background: var(--color-bg);
}

.live__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-top: 2rem;
  text-align: center;
}

@media (max-width: 639.98px) {
  .window-bar {
    height: 32px;
  }

  .window iframe {
    height: 600px;
  }
}

/* ---------- 6. Yours ---------- */

.yours {
  background: var(--color-ink-deep);
  color: var(--color-on-deep);
  padding-block: 3.5rem;
}

.yours__grid {
  display: grid;
  gap: 2rem;
  text-align: center;
}

.yours-item dt {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.yours-item dd {
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  color: var(--color-on-deep-muted);
}

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

/* ---------- 7. Close and footer ---------- */

.close {
  padding-top: clamp(5rem, 10vw, 8rem);
  padding-bottom: 2rem;
}

.close__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.close__title {
  font-size: clamp(2.5rem, 1.6rem + 4.2vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.close__inner p {
  max-width: 44ch;
}

.close__inner .button {
  margin-top: 0.5rem;
}

.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: center;
}

.lockup--footer {
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .site-footer__inner {
    flex-direction: row;
    text-align: left;
  }
}

/* ---------- Layout breakpoints ---------- */

@media (min-width: 900px) {
  :root {
    --gutter: 2.5rem;
  }
}

/* ---------- Motion ---------- */

/* Scroll reveals: hidden only once main.js adds .is-pending, shown once with .is-in. */
.is-pending {
  opacity: 0;
  transform: translateY(12px);
}

.is-pending.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 320ms var(--ease-out),
    transform 320ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.cards .is-pending.is-in {
  transition-delay: calc(var(--i, 0) * 60ms);
}

.window.is-pending {
  transform: translateY(16px);
}

/* The job rows slide up together with the mock, 80ms apart. */
.log__visual .job-row {
  transition:
    transform 200ms var(--ease-out),
    box-shadow 200ms var(--ease-out),
    opacity 320ms var(--ease-out);
}

.log__visual.is-pending .job-row {
  opacity: 0;
  transform: translateY(8px);
}

.log__visual.is-pending.is-in .job-row {
  opacity: 1;
  transform: none;
  transition:
    transform 320ms var(--ease-out),
    opacity 320ms var(--ease-out);
  transition-delay: calc(120ms + var(--i, 0) * 80ms);
}

/* Hero choreography, only when main.js has confirmed motion is allowed. */
@keyframes rise-16 {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise-6 {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.js-motion .quote-card {
  animation: rise-16 400ms var(--ease-out) 150ms both;
}

.js-motion .quote-line {
  animation: rise-6 220ms var(--ease-out) both;
  animation-delay: calc(550ms + var(--i, 0) * 180ms);
}

.js-motion .quote-total dd {
  color: var(--color-ink);
}

.js-motion .quote-total dd.is-settled {
  color: var(--color-accent);
}

.js-motion .quote-actions {
  animation: fade 200ms ease 2000ms both;
}

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

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

  .is-pending,
  .log__visual.is-pending .job-row {
    opacity: 1;
    transform: none;
  }

  .quote-total dd {
    color: var(--color-accent);
  }
}
