/* fade.finance: dark ink, a violet band for merchants and a green one for the vault. */
:root {
  --ink: #0b0a10;
  --text: #f1efe8;
  --muted: #b9b4c7;
  --soft: #cfcadb;
  --dim: #8e89a0;
  --line: #1e1b2a;
  --line-2: #2a2540;
  --outline: #3a3550;
  --violet: #7b61ff;
  --violet-2: #9c86ff;
  --link: #b3a3ff;
  --green: #3ddc97;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: 40px;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: var(--link);
}
a:hover {
  color: #e6dfff;
}

h1,
h2,
h3,
p {
  margin: 0;
}

button {
  cursor: pointer;
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  background: var(--text);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
}
.skip:focus {
  top: 16px;
}

.t-green {
  color: var(--green);
}
.t-violet {
  color: var(--violet);
}

.eyebrow {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--violet-2);
}
.eyebrow-dark {
  color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  padding: 16px 24px;
  border-radius: 14px;
  background: var(--text);
  color: var(--ink);
  border: 2px solid transparent;
  line-height: 1.2;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.btn:hover {
  color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.55);
}
.btn-light {
  background: var(--text);
  color: var(--ink);
}
.btn-light:hover {
  background: #fff;
  box-shadow: 0 10px 28px -8px rgba(241, 239, 232, 0.45);
}
.btn-violet {
  background: var(--violet);
  color: var(--ink);
}
.btn-violet:hover {
  background: var(--violet-2);
  box-shadow: 0 10px 28px -6px rgba(123, 97, 255, 0.65);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--outline);
  font-weight: 600;
}
.btn-outline:hover {
  color: var(--text);
  border-color: var(--text);
  background: rgba(241, 239, 232, 0.08);
}
.btn-dark {
  background: var(--ink);
  color: var(--text);
}
.btn-dark:hover {
  color: var(--text);
  background: #241f36;
}
.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-nav {
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 12px;
}
.btn-md {
  padding: 18px 26px;
}
.btn-lg {
  font-size: 18px;
  padding: 18px 28px;
  border-radius: 16px;
}
.btn-xl {
  font-size: 20px;
  padding: 20px 32px;
  border-radius: 16px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 2px;
  color: var(--text);
  text-decoration: none;
}
.brand:hover {
  color: var(--text);
}
.brand-mark {
  display: block;
  flex-shrink: 0;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
  font-size: 16px;
}
.nav a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
}
.nav a:not(.btn):hover {
  color: var(--text);
}

/* Hero */
.hero {
  min-height: 720px;
  display: flex;
  align-items: center;
  background-color: var(--ink);
  background-image: url("/img/hero-printer.jpg");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}
.hero > .wrap {
  width: 100%;
}
.hero-copy {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(56px, 9vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.hero-lede {
  font-size: 22px;
  line-height: 1.5;
  color: var(--soft);
}

/* Offers marquee */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee-group {
  display: flex;
  flex-shrink: 0;
  gap: 56px;
  margin: 0;
  padding: 22px 56px 22px 0;
  list-style: none;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 700;
  font-size: 30px;
}
.marquee .mark {
  display: flex;
  align-items: center;
  color: var(--violet);
}
.marquee .live {
  color: var(--green);
}
.marquee .mark svg {
  display: block;
  fill: currentColor;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Steps */
.steps-section {
  padding-top: 120px;
  padding-bottom: 120px;
}
.h-xl {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 60px);
  letter-spacing: -0.033em;
  line-height: 1;
  margin-bottom: 56px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  border-top: 4px solid var(--violet);
  padding-top: 24px;
}
.step-num {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--violet-2);
}
.step h3 {
  margin: 10px 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.2;
}
.step p:last-child {
  font-size: 18px;
  color: var(--muted);
}
.step-green {
  border-top-color: var(--green);
}
.step-green .step-num {
  color: var(--green);
}

/* Colored bands */
.band {
  color: var(--ink);
}
.band-violet {
  background: var(--violet);
}
.band-green {
  background: var(--green);
}
.band-row {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 110px;
}
.band-green .band-row {
  padding-top: 100px;
  padding-bottom: 100px;
}
.band-copy {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.band-green .band-copy {
  flex-basis: 420px;
  gap: 18px;
}
.band-green .eyebrow {
  letter-spacing: 3px;
  font-size: 16px;
}
.h-lg {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(42px, 5.4vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 19px;
  line-height: 1.45;
}
.band-lede {
  font-size: 20px;
}

/* Dark panels inside the bands */
.panel {
  min-width: 0;
  background: var(--ink);
  color: var(--text);
  border-radius: 32px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.sim {
  flex: 1 1 520px;
}
.calc {
  flex: 1 1 460px;
  gap: 18px;
}
.panel a {
  color: var(--link);
}
.field {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.label {
  padding: 0;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim);
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.calc .pills {
  gap: 8px;
}
.pill {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text);
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}
@media (hover: hover) {
  .pill:hover {
    border-color: var(--violet);
    background: rgba(123, 97, 255, 0.16);
  }
  .offer:hover {
    border-color: var(--green);
    background: rgba(61, 220, 151, 0.08);
  }
}
.pill[aria-pressed="true"] {
  background: var(--violet);
  border-color: var(--violet);
  color: var(--ink);
}
.offers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.offer {
  text-align: left;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text);
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}
.offer[aria-pressed="true"] {
  border-color: var(--green);
  background: rgba(61, 220, 151, 0.12);
}
.offer-odds {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
}
.offer-label {
  font-size: 14px;
}
.quote {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-radius: 20px;
  padding: 18px 20px;
  background: var(--ink);
}
.quote-right {
  text-align: right;
}
.quote-label {
  font-size: 14px;
  color: var(--dim);
}
.quote-value {
  margin-top: 2px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.quote-unit {
  font-size: 16px;
  color: var(--dim);
}
.btn-draw {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  padding: 20px;
  border-radius: 18px;
  border: none;
  background: var(--text);
  color: var(--ink);
  cursor: default;
}
.note {
  font-size: 13px;
  color: var(--dim);
}
.note-lg {
  font-size: 16px;
  color: var(--muted);
}
.apr {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(72px, 9vw, 96px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.apr-unit {
  margin-left: 0.2em;
}

/* Builders */
.builders {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 40px;
}
.builders-copy {
  flex: 1 1 380px;
  align-items: flex-start;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.builders .eyebrow {
  letter-spacing: 3px;
  font-size: 16px;
}
.h-md {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 4.8vw, 56px);
  line-height: 1;
  letter-spacing: -0.035em;
}
.muted-lede {
  font-size: 19px;
  color: var(--muted);
}
.builders .btn {
  margin-top: 12px;
}
.builders-code {
  flex: 1 1 480px;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.code {
  margin: 0;
  padding: 24px 28px;
  overflow-x: auto;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: var(--line);
  color: var(--soft);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.7;
}
.c-kw {
  color: var(--violet-2);
}
.c-fn {
  color: var(--text);
}
.c-num {
  color: var(--green);
}
.c-com {
  color: var(--dim);
}

/* Closing call (also the 404 page) */
.closing {
  padding-top: 140px;
  padding-bottom: 140px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.closing h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 6.6vw, 80px);
  letter-spacing: -0.04em;
  line-height: 1;
}
.closing p {
  font-size: 19px;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 15px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 48px 64px;
  padding-top: 64px;
  padding-bottom: 56px;
}
.footer-brand {
  flex: 1 1 300px;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  color: var(--text);
  text-decoration: none;
  border-radius: 10px;
}
.footer-logo:hover {
  color: var(--text);
}
.footer-mark {
  display: block;
  flex-shrink: 0;
}
.footer-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
}
.footer-tagline {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}
.footer-icons {
  display: flex;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background-color 0.15s ease;
}
.icon-btn:hover {
  color: var(--text);
  border-color: var(--violet);
  background: var(--line-2);
}
.icon-btn svg {
  display: block;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 72px;
}
.footer-col {
  min-width: 120px;
}
.footer-heading {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim);
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-col a {
  display: inline-block;
  padding: 6px 0;
  color: var(--soft);
  text-decoration: none;
  border-radius: 4px;
}
.footer-col a:hover {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--violet);
  text-underline-offset: 4px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 48px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  padding-bottom: 32px;
  font-size: 13px;
  color: var(--dim);
}
.legal {
  max-width: 620px;
  font-size: 12px;
  line-height: 1.6;
  color: #6f6a82;
}

/* Phones */
@media (max-width: 760px) {
  :root {
    --gutter: 16px;
  }
  .nav {
    gap: 16px;
    font-size: 15px;
  }
  .hero {
    min-height: 0;
    align-items: flex-start;
    padding: 40px 0 300px;
    /* The gradient fades the photo's top edge into the page. */
    background-image:
      linear-gradient(
        to bottom,
        var(--ink) calc(100% - 340px),
        rgba(11, 10, 16, 0) calc(100% - 230px)
      ),
      url("/img/hero-printer.jpg");
    background-size:
      100% 100%,
      auto 340px;
    background-position:
      0 0,
      72% bottom;
  }
  .hero-copy {
    gap: 22px;
  }
  .hero-lede {
    font-size: 18px;
  }
  .marquee-group {
    font-size: 22px;
    gap: 36px;
    padding: 16px 36px 16px 0;
  }
  .steps-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }
  .h-xl {
    margin-bottom: 40px;
  }
  .band-row,
  .band-green .band-row {
    gap: 40px;
    padding-top: 72px;
    padding-bottom: 72px;
  }
  .band-copy,
  .band-green .band-copy,
  .sim,
  .calc,
  .builders-copy {
    flex-basis: 100%;
  }
  .points {
    font-size: 17px;
  }
  .band-lede {
    font-size: 18px;
  }
  .panel {
    padding: 20px;
    border-radius: 24px;
    gap: 18px;
  }
  .pill {
    padding: 10px 14px;
    font-size: 15px;
  }
  .offers {
    gap: 8px;
  }
  .offer {
    padding: 10px;
  }
  .offer-odds {
    font-size: 17px;
  }
  .offer-label {
    font-size: 13px;
  }
  .quote {
    padding: 14px 4px;
  }
  .quote-value {
    font-size: 28px;
  }
  .builders {
    padding-top: 80px;
    gap: 28px;
  }
  .builders-code {
    flex-basis: 100%;
  }
  .code {
    padding: 18px 20px;
    font-size: 13px;
  }
  .closing {
    padding-top: 96px;
    padding-bottom: 96px;
  }
  .footer-top {
    gap: 40px;
    padding-top: 48px;
    padding-bottom: 40px;
  }
  .footer-brand {
    flex-basis: 100%;
  }
  .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
    width: 100%;
  }
  .footer-col {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .marquee-track {
    animation: none;
    width: auto;
    justify-content: center;
  }
  .marquee-group {
    flex-shrink: 1;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
    row-gap: 8px;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
  .marquee-group[aria-hidden="true"] {
    display: none;
  }
  /* Static and wrapped, the list needs no markers between offers. */
  .marquee .mark {
    display: none;
  }
  .btn,
  .pill,
  .offer,
  .icon-btn {
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
}
