/* smetaledger.com — the marketing site, in the "Night Shift" direction.
   Hand-written, no build step. Dark ground with a faint blueprint grid, money
   in a monospace face, one yellow for the thing to press.

   Two limits shape this file. The CloudFront policy allows fonts and scripts
   from this origin only, so the faces are self-hosted from /fonts and every
   animation is CSS — there is no script on the front page. And motion is an
   extra: under prefers-reduced-motion, or in a browser without scroll-driven
   animations, everything is simply there. */

@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  --ground: #0b0e12;
  --panel: #11151b;
  --panel-2: #171c24;
  --line: #232a34;
  --line-2: #2c3440;
  --ink: #e8ecf1;
  /* Both hold 6:1 or better on --ground and --panel. */
  --ink-2: #a3adba;
  --muted: #8f99a6;
  --signal: #f4b811;
  --signal-hover: #ffc933;
  --on-signal: #111418;
  --good: #3ecf8e;
  --owed: #ff6b5a;
  --info: #7fb0ea;
  --grid: rgba(127, 176, 234, 0.05);

  --ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", var(--ui);
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1120px;

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--ground);
  background-image:
    radial-gradient(900px 480px at 75% -120px, rgba(244, 184, 17, 0.13), transparent 70%),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

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

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

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  padding: 0 max(16px, calc((100% - var(--wrap)) / 2));
  background: rgba(11, 14, 18, 0.72);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
}

/* The hairline appears once the page has moved, where supported. */
@supports (animation-timeline: scroll()) {
  .top {
    animation: header-line linear both;
    animation-timeline: scroll();
    animation-range: 0 80px;
  }
}

@keyframes header-line {
  to {
    border-bottom-color: var(--line);
    background: rgba(11, 14, 18, 0.88);
  }
}

.word {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.word img {
  border-radius: 7px;
}

.top nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}

.top nav a:not(.cta) {
  text-decoration: none;
  color: var(--ink-2);
  transition: color 0.15s;
}

.top nav a:not(.cta):hover,
.top nav a[aria-current="page"] {
  color: var(--ink);
}

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

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  min-height: 40px;
  border-radius: 10px;
  background: var(--signal);
  color: var(--on-signal);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 0 0 0 rgba(244, 184, 17, 0);
  transition:
    background 0.15s,
    box-shadow 0.3s var(--ease-out),
    transform 0.12s var(--ease-out);
}

.cta:hover {
  background: var(--signal-hover);
  box-shadow: 0 8px 32px -6px rgba(244, 184, 17, 0.45);
}

.cta:active {
  transform: scale(0.97);
}

.cta--big {
  padding: 0 22px;
  min-height: 50px;
  font-size: 15px;
}

.plain {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
  transition:
    border-color 0.15s,
    background 0.15s;
}

.plain:hover {
  border-color: var(--muted);
  background: var(--panel);
}

/* ---------- layout ---------- */

main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px 40px;
}

.eyebrow {
  margin: 0 0 16px;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
}

h1 {
  margin: 0 0 20px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

h1 .hl {
  color: var(--signal);
}

.lede {
  max-width: 36em;
  margin: 0 0 28px;
  color: var(--ink-2);
  font-size: 18px;
}

.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
}

.hero {
  padding: 88px 0 48px;
}

.hero--tight {
  padding: 72px 0 32px;
  text-align: center;
}

.hero--tight .lede {
  margin-left: auto;
  margin-right: auto;
}

.hero--tight .actions {
  justify-content: center;
}

/* Headline words rise in one after another. */
.rise {
  display: inline-block;
  animation: rise 0.8s var(--ease-out) both;
}

.rise:nth-child(2) {
  animation-delay: 0.1s;
}
.rise:nth-child(3) {
  animation-delay: 0.2s;
}
.rise:nth-child(4) {
  animation-delay: 0.3s;
}
.fade-in {
  animation: rise 0.8s var(--ease-out) 0.4s both;
}
.fade-in--late {
  animation-delay: 0.55s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.4em);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* Sections reveal as they scroll into view, where the browser can say so. */
@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- the console (front page product shot) ---------- */

.console {
  position: relative;
  margin: 56px 0 0;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--panel);
  overflow: hidden;
  box-shadow:
    0 40px 120px -40px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 500 12px/1 var(--mono);
}

.console-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-2);
}

.console-bar span {
  margin-left: 12px;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.kpis div {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}

.kpis div:last-child {
  border-right: 0;
}

.kpis small {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kpis b {
  font: 500 26px/1 var(--mono);
  letter-spacing: -0.02em;
}

.console-body {
  display: grid;
  grid-template-columns: 1fr 300px;
}

.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ledger th {
  text-align: left;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 500 11px/16px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ledger td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  color: #c5ccd5;
  white-space: nowrap;
}

.ledger .r {
  text-align: right;
  font-family: var(--mono);
}

.ledger tr:last-child td {
  border-bottom: 0;
}

.ledger tbody tr {
  animation: row-in 0.6s var(--ease-out) both;
}
.ledger tbody tr:nth-child(1) {
  animation-delay: 0.7s;
  background: rgba(244, 184, 17, 0.06);
  box-shadow: inset 2px 0 0 var(--signal);
}
.ledger tbody tr:nth-child(2) {
  animation-delay: 0.78s;
}
.ledger tbody tr:nth-child(3) {
  animation-delay: 0.86s;
}
.ledger tbody tr:nth-child(4) {
  animation-delay: 0.94s;
}
.ledger tbody tr:nth-child(5) {
  animation-delay: 1.02s;
}

@keyframes row-in {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.led {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.led::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: currentColor;
}

.is-good {
  color: var(--good);
}
.is-owed {
  color: var(--owed);
}
.is-signal {
  color: var(--signal);
}
.is-info {
  color: var(--info);
}

.side {
  border-left: 1px solid var(--line);
  padding: 16px;
}

.side-label {
  display: flex;
  justify-content: space-between;
  margin: 0 0 10px;
  color: var(--muted);
  font: 500 11px/16px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spark {
  display: block;
  width: 100%;
  height: 96px;
  margin-bottom: 18px;
}

.spark .line {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: draw 1.8s var(--ease-out) 0.9s forwards;
}

.spark .area {
  opacity: 0;
  animation: fade 0.8s ease 1.8s forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

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

.feed {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12.5px;
}

.feed li {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  animation: row-in 0.6s var(--ease-out) both;
}

.feed li:nth-child(1) {
  animation-delay: 2.2s;
}
.feed li:nth-child(2) {
  animation-delay: 1.2s;
}
.feed li:nth-child(3) {
  animation-delay: 1.3s;
}

.feed em {
  font: normal 500 11px/18px var(--mono);
  color: var(--muted);
}

.feed b {
  font: 500 12px/18px var(--mono);
}

/* The ⌘K palette opens over the ledger, types its query, and closes. */
.palette {
  position: absolute;
  left: 50%;
  top: 104px;
  width: min(480px, calc(100% - 32px));
  transform: translateX(-50%);
  background: #141920;
  border: 1px solid #333c49;
  border-radius: 14px;
  box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.85);
  opacity: 0;
  animation: palette 9s var(--ease-out) 2.6s infinite;
  pointer-events: none;
}

.palette-q {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.palette-q .typed {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  border-right: 2px solid var(--signal);
  animation: type 9s steps(12, end) 2.6s infinite;
}

.palette ul {
  list-style: none;
  margin: 0;
  padding: 6px;
  font-size: 13px;
}

.palette li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 8px;
  color: #c5ccd5;
}

.palette li:first-child {
  background: var(--panel-2);
  color: var(--ink);
}

.palette small {
  font: 500 11px/18px var(--mono);
  color: var(--muted);
}

@keyframes palette {
  0%,
  4% {
    opacity: 0;
    transform: translateX(-50%) translateY(-8px) scale(0.98);
  }
  8%,
  48% {
    opacity: 1;
    transform: translateX(-50%);
  }
  54%,
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-8px) scale(0.98);
  }
}

@keyframes type {
  0%,
  8% {
    width: 0;
  }
  22%,
  100% {
    width: 12ch;
  }
}

/* ---------- trades marquee ---------- */

.marquee {
  margin: 72px -16px 0;
  padding: 18px 0;
  border-block: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  font: 500 13px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee div {
  display: inline-block;
  animation: marquee 32s linear infinite;
}

.marquee span {
  margin: 0 20px;
}

.marquee span:nth-child(3n + 1) {
  color: var(--ink);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

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

.section {
  padding-top: 112px;
}

.section h2 {
  max-width: 18ch;
  margin: 0 0 40px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 48px);
  line-height: 1;
  letter-spacing: -0.035em;
}

/* Three steps, because that is how many a service call has. */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.steps li {
  counter-increment: step;
  position: relative;
  background: var(--panel);
  padding: 28px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  transition: background 0.25s;
}

.steps li:hover {
  background: var(--panel-2);
}

.steps li::before {
  content: "0" counter(step);
  font: 500 12px/1 var(--mono);
  color: var(--signal);
  letter-spacing: 0.08em;
}

.steps li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}

.steps li:hover::after {
  transform: none;
}

.steps h3,
.split h3 {
  margin: auto 0 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.steps p,
.split p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}

.split {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}

.split > div {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.25s,
    transform 0.3s var(--ease-out);
}

.split > div:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
}

.split .tag {
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.split > div:last-child .tag {
  border-color: rgba(244, 184, 17, 0.4);
  color: var(--signal);
}

.closer {
  position: relative;
  margin-top: 112px;
  padding: 72px 32px;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(600px 260px at 50% 0, rgba(244, 184, 17, 0.16), transparent 70%),
    var(--panel);
}

.closer h2 {
  max-width: 20ch;
  margin: 0 auto 14px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.closer p {
  max-width: 34em;
  margin: 0 auto 28px;
  color: var(--ink-2);
}

.closer .actions {
  justify-content: center;
}

/* ---------- pricing ---------- */

.period {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.period button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition:
    background 0.25s var(--ease-out),
    color 0.25s;
}

.period button.is-on {
  background: var(--panel-2);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.period small {
  font: 500 11px/1 var(--mono);
  color: var(--signal);
}

.plans {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 880px;
  margin: 0 auto;
}

.plan {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.25s,
    transform 0.3s var(--ease-out);
}

.plan:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
}

.plan:last-child {
  border-color: rgba(244, 184, 17, 0.45);
  background:
    radial-gradient(420px 200px at 100% 0, rgba(244, 184, 17, 0.1), transparent 70%),
    var(--panel);
}

.plan h2 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.plan-for {
  margin: 0 0 22px;
  color: var(--ink-2);
  font-size: 14px;
  min-height: 44px;
}

.plan-price {
  margin: 0 0 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan-price strong {
  font: 500 44px/1 var(--mono);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.plan-price span {
  color: var(--muted);
  font: 400 13px/1 var(--mono);
}

.plan ul {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 10px;
  flex: 1;
}

.plan li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  color: #c5ccd5;
}

.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--good);
  font-weight: 600;
}

.plan:last-child li::before {
  color: var(--signal);
}

.plan .cta {
  width: 100%;
}

.plan:first-child .cta {
  background: var(--panel-2);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.plan:first-child .cta:hover {
  background: #1f2530;
}

/* Said in the flow of the page, not as small print: nobody should think they
   have paid when they have not. */
.note {
  max-width: 44em;
  margin: 24px auto 0;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(244, 184, 17, 0.4);
  background: rgba(244, 184, 17, 0.08);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.faq {
  max-width: 880px;
  margin: 96px auto 0;
}

.faq h2 {
  margin: 0 0 20px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.faq dl {
  margin: 0;
  border-top: 1px solid var(--line);
}

.faq dt {
  padding-top: 20px;
  font-weight: 600;
}

.faq dd {
  margin: 6px 0 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

/* ---------- checkout: the card form, on this site ---------- */

/* The whole point of this page living here: what somebody sees while paying
   is the same dark ground, the same yellow button and the same monospace
   money as the page that sold it to them. */

.checkout {
  max-width: 520px;
  padding-top: 40px;
}

.checkout-back {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--ink-2);
  text-decoration: none;
  font: 400 13px/1 var(--mono);
}

.checkout-back:hover {
  color: var(--ink);
}

.checkout-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
}

.checkout-card h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 36px);
}

.checkout-amount {
  margin: 0 0 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.checkout-amount strong {
  font: 500 40px/1 var(--mono);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.checkout-amount span {
  color: var(--muted);
  font: 400 13px/1 var(--mono);
}

/* Said on the form where a card number is typed, because that is where it
   changes what somebody is about to do. */
.checkout-test {
  margin: 0 0 18px;
  padding: 10px 12px;
  border: 1px solid rgba(244, 184, 17, 0.4);
  border-radius: 10px;
  background: rgba(244, 184, 17, 0.08);
  color: var(--signal);
  font: 400 13px/1.4 var(--mono);
}

.checkout-error {
  margin: 0 0 18px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 107, 90, 0.4);
  border-radius: 10px;
  background: rgba(255, 107, 90, 0.08);
  color: var(--owed);
  font-size: 14px;
}

.checkout-empty {
  margin: 0;
  color: var(--ink-2);
}

.checkout label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-2);
  font-size: 13px;
}

.checkout input {
  width: 100%;
  /* A grid item will not shrink below its min-content width, and an input's
     min-content width comes from its `size` attribute — roughly 200px. Without
     this the three-column row below demands ~620px and the fields run out past
     the edge of the card. jsdom computes no layout, so no rendering test can
     see that: checkoutLayout.test.ts reads these two rules instead. */
  min-width: 0;
  margin-bottom: 16px;
  padding: 11px 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--ink);
  font: 400 15px/1.2 var(--mono);
}

.checkout input:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 1px;
  border-color: transparent;
}

/* Autofill paints its own near-white background straight over the field, and
   on a dark card that reads as a broken page rather than a filled-in one. It
   is the one background a stylesheet cannot simply set: the inset shadow is
   the only way to repaint it, and -webkit-text-fill-color the only way to
   reach the text. A payment form is where autofill is most used, so this is
   not an edge case here. */
.checkout input:-webkit-autofill,
.checkout input:-webkit-autofill:hover,
.checkout input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 100px var(--panel-2) inset;
  caret-color: var(--ink);
  font-family: var(--mono);
}

.checkout-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.checkout-row > div {
  min-width: 0;
}

.checkout [data-pay] {
  width: 100%;
  margin-top: 6px;
  justify-content: center;
}

.checkout [data-pay]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.checkout-next {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 420px) {
  .checkout-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* A state this page swaps in and out of is hidden, not merely transparent:
   several rules below set display, and [hidden] has to win. */
[hidden] {
  display: none !important;
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--line);
  margin-top: 96px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px max(16px, calc((100% - var(--wrap)) / 2));
  color: var(--muted);
  font: 400 13px/1.5 var(--mono);
}

footer p {
  margin: 0;
}

footer nav {
  display: flex;
  gap: 20px;
}

footer a {
  color: var(--ink-2);
  text-decoration: none;
}

footer a:hover {
  color: var(--ink);
}

/* ---------- a page of mostly words: privacy ---------- */

.prose {
  max-width: 46em;
  padding-top: 72px;
}

.prose h2 {
  margin: 40px 0 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.prose p,
.prose li {
  color: var(--ink-2);
}

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

.prose code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--ink);
}

.prose ul {
  padding-left: 20px;
}

.prose li {
  margin-bottom: 8px;
}

/* ---------- narrow screens ---------- */

@media (max-width: 900px) {
  .console-body {
    grid-template-columns: 1fr;
  }

  .side {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .steps,
  .split {
    grid-template-columns: 1fr;
  }

  .steps li,
  .split > div {
    min-height: 0;
  }

  .steps h3,
  .split h3 {
    margin-top: 28px;
  }
}

@media (max-width: 640px) {
  .top nav {
    gap: 14px;
  }

  /* "Pricing" is one tap away in the hero; the header keeps Sign in and the
     one button a stranger needs. */
  .top nav .hide-narrow {
    display: none;
  }

  .word {
    font-size: 16px;
  }

  .hero {
    padding: 48px 0 32px;
  }

  .hero--tight {
    padding: 48px 0 24px;
  }

  .lede {
    font-size: 16px;
  }

  .actions .cta--big,
  .actions .plain {
    width: 100%;
    justify-content: center;
  }

  .kpis {
    grid-template-columns: repeat(2, 1fr);
  }

  .kpis div:nth-child(2) {
    border-right: 0;
  }

  .kpis div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .kpis b {
    font-size: 20px;
  }

  /* The ledger keeps its job, status and owed columns on a phone. */
  .ledger .wide {
    display: none;
  }

  .ledger th,
  .ledger td {
    padding: 10px 12px;
  }

  /* On a phone the palette would cover the whole ledger it is searching. */
  .palette {
    display: none;
  }

  .section {
    padding-top: 80px;
  }

  .closer {
    margin-top: 80px;
    padding: 48px 20px;
  }

  .plan {
    padding: 24px;
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .palette {
    display: none;
  }

  .palette-q .typed {
    width: auto;
  }

  .spark .line {
    stroke-dashoffset: 0;
  }

  .spark .area {
    opacity: 1;
  }
}
