@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-latin-600-normal.woff2") format("woff2");
}

/* Direction 6, "Show the product" (decision 0005). Values: docs/website/DESIGN_HANDOFF.md#brand */
:root {
  color-scheme: light dark;
  --bg: #fff;
  --bg-2: #fafafa;
  --text: #171717;
  --text-2: #404040;
  --text-3: #525252;
  --border: #e5e5e5;
  --brand: #c2410c;
  --on-brand: #fff7ed;
  --brand-text: #c2410c;
  --tint: #fff7ed;
  --focus: #ea580c;
  --pending-bg: #fefce8;
  --pending: #a16207;
  --success-bg: #f0fdf4;
  --success: #15803d;
  --card: #fff;
  --shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 12px 32px -8px rgb(16 24 40 / 14%);
  --radius: 24px;
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --bg-2: #141414;
    --text: #fafafa;
    --text-2: #d4d4d4;
    --text-3: #a3a3a3;
    --border: #2e2e2e;
    --brand: #fdba74;
    --on-brand: #431407;
    --brand-text: #fdba74;
    --tint: #1f1410;
    --focus: #fdba74;
    --pending-bg: #2a2410;
    --pending: #fde047;
    --success-bg: #0f2417;
    --success: #86efac;
    --card: #171717;
    --shadow: 0 0 0 1px #2e2e2e;
  }
}

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

body {
  margin: 0;
  background: var(--bg);
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h1::before {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-bottom: 1.25rem;
  background: var(--brand);
  border-radius: 2px;
}

h1.display {
  font-size: clamp(2.625rem, 6.4vw, 5.5rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.875rem, 3.6vw, 3rem);
  line-height: 1.1;
}

h3,
.h3 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--brand-text);
  text-underline-offset: 3px;
}

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

[aria-current="page"] {
  font-weight: 600;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 1rem;
  background: var(--card);
  border-radius: 8px;
  z-index: 10;
}

.skip:focus {
  top: 1rem;
}

main,
.site-header,
.site-footer {
  max-width: 80rem;
  margin: 0 auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
}

main:focus {
  outline: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
}

.wordmark {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 1.5em;
  color: var(--text);
  font-size: 1.25rem;
  text-decoration: none;
}

/* The logo as one drawing, sized so its lettering has the x-height of 1.25rem Inter. */
.wordmark-logo {
  flex: none;
  width: 3.1em;
  height: 0.77em;
  fill: currentColor;
}

.wordmark-w {
  fill: var(--brand);
}

.wordmark-name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.muted,
.small {
  color: var(--text-3);
}

.small {
  font-size: 0.8125rem;
  line-height: 1.45;
}

.lead {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  color: var(--text-2);
  max-width: 40rem;
}

.eyebrow {
  color: var(--brand-text);
  font-weight: 600;
  font-size: 0.875rem;
}

.mono {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* Buttons */
.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
button:hover {
  filter: brightness(0.92);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
}

.button-secondary {
  background: var(--card);
  color: var(--text);
  border-color: var(--border);
}

.button-small {
  min-height: 40px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.text-link {
  font-weight: 600;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
  border-radius: 999px;
  color: var(--brand-text);
  background: var(--tint);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.badge.pending {
  color: var(--pending);
  background: var(--pending-bg);
  border-color: color-mix(in srgb, var(--pending) 35%, transparent);
}

.badge.success {
  color: var(--success);
  background: var(--success-bg);
  border-color: color-mix(in srgb, var(--success) 35%, transparent);
}

/* Layout */
.hero {
  display: grid;
  gap: 3rem;
  align-items: center;
  padding-block: clamp(2rem, 7vw, 6rem);
}

@media (min-width: 64rem) {
  .hero {
    grid-template-columns: 1.35fr 1fr;
  }
}

.tint {
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border-radius: var(--radius);
  background: var(--tint);
}

.band {
  margin-inline: calc(-1 * clamp(1rem, 4vw, 3rem));
  padding: clamp(3rem, 8vw, 7.5rem) clamp(1rem, 4vw, 3rem);
  background: var(--tint);
  border-radius: var(--radius) var(--radius) 0 0;
}

.band:focus {
  outline: none;
}

.intro {
  max-width: 44rem;
  margin-bottom: 3rem;
}

.intro .badge {
  margin-bottom: 1rem;
}

.section {
  padding-block: clamp(3rem, 8vw, 7.5rem);
  border-top: 1px solid var(--border);
}

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.compare {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 48rem) {
  .compare {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.card-brand {
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
}

.card ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-2);
}

.card .badge {
  margin-bottom: 0.75rem;
}

/* Docket */
.docket {
  max-width: 26rem;
  margin-inline: auto;
  padding: 1.5rem;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-variant-numeric: tabular-nums;
}

.docket-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.docket-head p {
  margin: 0;
}

.docket dl {
  margin: 0;
}

.docket dl div {
  display: flex;
  justify-content: space-between;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.docket dd {
  margin: 0;
}

.docket .total {
  font-weight: 600;
  font-size: 1.125rem;
}

.docket .total dd {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.pending {
  display: flex;
  justify-content: space-between;
  margin-block: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: var(--pending-bg);
  color: var(--pending);
}

.pending p {
  margin: 0;
}

.pending .amount {
  font-weight: 600;
  font-size: 1.125rem;
}

.docket-caption {
  font-weight: 600;
}

/* Product previews */
.bento {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(3rem, 8vw, 6rem);
}

@media (min-width: 56rem) {
  .bento {
    grid-template-columns: 1fr 2fr;
    grid-template-areas:
      "scan review"
      "pay review"
      "receipt receipt";
  }

  .tile-scan {
    grid-area: scan;
  }

  .tile-review {
    grid-area: review;
  }

  .tile-pay {
    grid-area: pay;
  }

  .tile-receipt {
    grid-area: receipt;
  }
}

.tile {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
}

.tile-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.tile-head h3 {
  margin: 0;
}

.tile-pay .badge.pending {
  margin-bottom: 0.75rem;
}

.qr {
  width: 7rem;
  height: 7rem;
  color: var(--text);
}

.screen {
  max-width: 20rem;
  margin-inline: auto;
  padding: 1.25rem;
  border-radius: 20px;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.screen p {
  margin-bottom: 0.75rem;
}

.screen-title {
  font-weight: 600;
  font-size: 0.875rem;
}

.payee {
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background: var(--tint);
  margin-bottom: 0.75rem;
}

.payee p {
  margin: 0;
}

.big-amount {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.big-amount span {
  font-size: 0.875rem;
  color: var(--text-3);
  letter-spacing: 0;
}

.fake-button {
  display: block;
  padding: 0.625rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  text-align: center;
  font-weight: 600;
  font-size: 0.875rem;
}

.receipt {
  display: grid;
  justify-items: start;
}

.receipt .badge {
  margin-bottom: 0.5rem;
}

.receipt p {
  margin: 0;
}

/* Steps */
.steps-scene {
  display: grid;
  gap: 3rem;
  align-items: center;
  margin-bottom: clamp(3rem, 8vw, 6rem);
}

@media (min-width: 56rem) {
  .steps-scene {
    grid-template-columns: 1fr 1fr;
  }
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 2rem 3.25rem;
  border-left: 2px solid color-mix(in srgb, var(--brand) 30%, transparent);
  margin-left: 1rem;
}

.steps li:last-child {
  border-left-color: transparent;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: -1.0625rem;
  top: 0;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
  font-size: 0.875rem;
}

.steps h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 0.25rem;
}

.steps p {
  color: var(--text-2);
}

.steps-row {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}

@media (min-width: 48rem) {
  .steps-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps.steps-row li {
  margin: 0;
  padding: 3.5rem 1.5rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.steps.steps-row li:last-child {
  border-left-color: var(--border);
}

.steps.steps-row li::before {
  left: 1.5rem;
  top: 1.25rem;
}

.phone {
  justify-self: center;
  width: min(100%, 20rem);
  padding: 0.75rem;
  border-radius: 44px;
  background: #171717;
  box-shadow: var(--shadow);
}

.phone .screen {
  border-radius: 34px;
  box-shadow: none;
  padding: 1.75rem 1.25rem;
}

@media (max-width: 55.99rem) {
  .phone {
    display: none;
  }
}

/* Forms */
.form-card {
  max-width: 34rem;
  margin-inline: auto;
}

.tint-qr {
  display: grid;
  justify-items: center;
  text-align: center;
}

.tint-qr .qr {
  width: 10rem;
  height: 10rem;
  padding: 0.75rem;
  background: #fff;
  color: #171717;
  border-radius: 16px;
}

.tint-qr p {
  margin: 0.5rem 0 0;
}

.form-card h3 {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 0.375rem;
}

input {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-bottom: 0.75rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

input[aria-invalid="true"] {
  border-color: #d92d20;
}

.field {
  margin-bottom: 0.75rem;
}

.hint {
  margin: -0.125rem 0 0.375rem;
  font-size: 0.8125rem;
  color: var(--text-3);
}

.field-error,
[data-error-summary] {
  color: #d92d20;
  font-size: 0.875rem;
}

@media (prefers-color-scheme: dark) {
  .field-error,
  [data-error-summary] {
    color: #fda29b;
  }
}

.form-card p {
  font-size: 0.875rem;
  color: var(--text-2);
}

.form-card button {
  width: 100%;
}

[data-status] {
  margin-top: 0.75rem;
}

[data-status]:empty {
  display: none;
}

[data-success] {
  margin-top: 1rem;
}

[hidden],
.button[hidden],
.form-card [hidden] {
  display: none;
}

/* Text pages */
.page {
  max-width: 46rem;
  padding-block: clamp(2rem, 7vw, 5rem);
}

.page section {
  margin-top: 2.5rem;
}

.legal h2 {
  font-size: 1.5rem;
}

.page .card {
  margin-top: 2rem;
}

/* Footer */
.site-footer {
  margin-top: 0;
  padding-block: 2.5rem 3rem;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 0.8125rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.9375rem;
}

.site-footer p {
  margin: 0 0 0.375rem;
}
