/* lowki labs. — light, quiet, graphite. */
:root {
  --bg: #f3f4f8;
  --glow: rgba(110, 122, 148, 0.12);
  --panel: #ffffff;
  --panel-edge: rgba(24, 28, 38, 0.12);
  --text: #1c2028;
  --muted: #5a6172;
  --silver: #6b7484;
  --silver-bright: #232832;
  --accent-edge: rgba(70, 78, 94, 0.4);
  --hairline: rgba(24, 28, 38, 0.08);
  --btn-bg: linear-gradient(180deg, #2e3440, #171b23);
  --btn-text: #f2f4f8;
  --danger: #9a2f2f;
  --ok: #2f7d55;
  --danger-edge: rgba(154, 47, 47, 0.55);
  --focus: rgba(70, 78, 94, 0.28);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { color-scheme: light; scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1100px 500px at 50% -10%, var(--glow), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: "Segoe UI Variable Text", "Segoe UI", -apple-system,
    BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.dot { color: var(--silver); }
[hidden] { display: none !important; }

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

/* ── Top bar ─────────────────────────────────────────── */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  min-height: 60px;
}
.topbar .wordmark {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
}
/* Every page but the landing page: an arrow back to it, beside the wordmark. */
.topbar .brand { display: flex; align-items: center; gap: 12px; }
.topbar .back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--muted);
  border: 1px solid var(--panel-edge);
  border-radius: 999px;
  transition: color 0.15s, border-color 0.15s, transform 0.15s;
}
.topbar .back:hover { color: var(--silver-bright); border-color: var(--accent-edge); transform: translateX(-2px); }
.topbar .back svg { display: block; }
.topbar nav { display: flex; align-items: center; gap: 10px; }
.topbar nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 14px;
  border: 1px solid var(--panel-edge);
  border-radius: 999px;
  transition: color 0.15s, border-color 0.15s;
}
.topbar nav a:hover { color: var(--silver-bright); border-color: var(--accent-edge); }
.topbar nav a.nav-cta {
  background: var(--btn-bg);
  color: var(--btn-text);
  border-color: transparent;
  font-weight: 600;
}
.topbar nav a.nav-cta:hover { color: var(--btn-text); filter: brightness(1.12); }

/* The wallet button, at the far right. wallet.js unhides it. */
.wallet-btn {
  font: inherit;
  font-size: 14px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--panel-edge);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.wallet-btn:hover { color: var(--silver-bright); border-color: var(--accent-edge); }
.wallet-btn.is-connected {
  font-family: Consolas, "Cascadia Code", Menlo, monospace;
  font-size: 13px;
  color: var(--silver-bright);
}
.wallet-btn.is-connected::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--ok);
  vertical-align: 1px;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--btn-bg);
  color: var(--btn-text);
  font: inherit;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  padding: 10px 22px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; cursor: progress; filter: none; }
.btn-lg { font-size: 17px; padding: 15px 40px; border-radius: 12px; }
.btn-quiet {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--panel-edge);
  font-weight: 500;
}
.btn-quiet:hover { filter: none; color: var(--silver-bright); border-color: var(--accent-edge); }

/* ── Layout ──────────────────────────────────────────── */
main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
main.narrow { max-width: 800px; padding-bottom: 44px; }

/* ── Landing ─────────────────────────────────────────── */
/* Landing. Three arrangements, narrowest first:
     phones        hero, then Services, then Applications, one column;
     mid screens   hero across the top, the two lists side by side below;
     wide screens  Services down the left edge, Applications down the right,
                   and the hero at the true centre of the page between them.
   This block is the phone arrangement; the media queries at the end of the
   file widen it. */
.home {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "hero" "services" "apps";
  row-gap: 20px;
  max-width: none;
  padding: 8px 24px 34px;
}
.hero {
  grid-area: hero;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 34px 0 30px;
}
.hero canvas { width: 128px; height: 128px; display: block; margin: 0 auto 2px; }
.hero h1 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 600;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, var(--silver-bright), var(--muted));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h1 .dot { -webkit-text-fill-color: var(--silver); }
.hero .tagline {
  max-width: 660px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: clamp(15px, 1.7vw, 17.5px);
  line-height: 1.5;
  letter-spacing: 0.01em;
}
.hero .btn-lg { margin-top: 34px; }

.services { grid-area: services; }
.apps { grid-area: apps; }
.services h2, .apps h2 {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 12px;
}
.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  height: 100%;
  /* Light silver: a cool brushed gradient with a hairline highlight along the
     top edge, so the cards read as metal against the page, not as paper. */
  background: linear-gradient(160deg, #eff1f5 0%, #e6e9ef 55%, #dde1e8 100%);
  border: 1px solid rgba(24, 28, 38, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  border-radius: 14px;
  padding: 16px 18px 14px;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}
.service-card:hover {
  border-color: var(--accent-edge);
  transform: translateY(-2px);
  background: linear-gradient(160deg, #f4f5f8 0%, #eaedf2 55%, #e2e6ed 100%);
}
.service-num { color: var(--muted); font-size: 12px; letter-spacing: 0.12em; }
/* An application card is a service card with its icon where the number is. */
.app-top { display: flex; align-items: center; gap: 9px; }
.app-top img { width: 28px; height: 28px; border-radius: 7px; display: block; }
.app-top .service-num { text-transform: uppercase; font-size: 11px; }
.service-name {
  color: var(--silver-bright);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}
.service-desc { color: var(--muted); font-size: 13.5px; line-height: 1.5; flex: 1; }
.service-go { color: var(--silver); font-size: 12.5px; letter-spacing: 0.03em; margin-top: 2px; }
.service-card:hover .service-go { color: var(--silver-bright); }

/* ── Inner pages: heading, panels ────────────────────── */
.page-head { text-align: center; padding: 22px 0 22px; }
.page-head .eyebrow {
  color: var(--silver);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.page-head h1 {
  font-size: clamp(24px, 3.6vw, 32px);
  font-weight: 600;
  line-height: 1.22;
  color: var(--silver-bright);
}
.page-head .lead {
  max-width: 640px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 14px;
  padding: 22px 26px;
  margin-bottom: 16px;
}
.panel h2 { font-size: 17px; color: var(--silver-bright); margin-bottom: 12px; }
.panel p, .panel li { color: var(--muted); font-size: 14.5px; line-height: 1.62; }
.panel p + p { margin-top: 10px; }
.panel ul, .panel ol { padding-left: 20px; }
.panel li { margin-bottom: 7px; }
.panel li:last-child { margin-bottom: 0; }
.panel li > ul { margin-top: 7px; }
.panel li strong { color: var(--text); font-weight: 600; }
.panel a:not(.btn) { color: var(--silver-bright); }

.cta-row { text-align: center; padding: 14px 0 6px; }
.cta-row .cta-note { color: var(--muted); font-size: 13px; margin-top: 12px; }

.other-services { margin-top: 26px; text-align: center; }
.other-services h2 {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.other-services a {
  display: block;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  padding: 5px 0;
}
.other-services a:hover { color: var(--silver-bright); }

/* ── Application pages ───────────────────────────────── */
.app-head .app-icon {
  width: 72px;
  height: 72px;
  border-radius: 17px;
  display: block;
  margin: 0 auto 14px;
}
.app-head .app-meta { margin-top: 12px; color: var(--silver); font-size: 13.5px; letter-spacing: 0.02em; }

.panel code {
  font-family: Consolas, "Cascadia Code", Menlo, monospace;
  font-size: 12.5px;
  color: var(--silver-bright);
  background: rgba(24, 28, 38, 0.06);
  border-radius: 5px;
  padding: 1.5px 6px;
  overflow-wrap: anywhere;
}

.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dl-system {
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 14px 14px 12px;
  min-width: 0;
}
.dl-system.is-yours { border-color: var(--accent-edge); background: rgba(24, 28, 38, 0.02); }
.dl-system h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: var(--silver-bright);
  margin-bottom: 10px;
}
.dl-yours {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver);
  border: 1px solid var(--panel-edge);
  border-radius: 999px;
  padding: 1px 8px;
}
.panel .dl-files { list-style: none; padding: 0; }
.panel .dl-file { margin-bottom: 14px; }
.dl-file .btn { display: block; width: 100%; text-align: center; padding: 9px 12px; font-size: 14px; }
.panel .dl-name { font-size: 12px; color: var(--text); margin-top: 7px; overflow-wrap: anywhere; line-height: 1.4; }
.panel .dl-req { font-size: 12.5px; line-height: 1.45; margin-top: 3px; }
.panel .dl-sha { font-size: 11px; line-height: 1.5; margin-top: 5px; }
.dl-sha span { letter-spacing: 0.06em; text-transform: uppercase; font-size: 10px; display: block; }
.panel .dl-sha code { font-size: 10.5px; padding: 0; background: none; color: var(--muted); user-select: all; }
.panel .dl-foot { font-size: 13.5px; margin-top: 14px; }
.panel .dl-unavailable {
  border: 1px dashed var(--accent-edge);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}

/* Beneath the downloads: where a payment stands, and the way back in. */
.panel .dl-restore { font-size: 13.5px; margin-top: 14px; }
.dl-restore .link-btn { margin: 0; padding: 0; font-size: inherit; }
.panel .pay-status {
  margin-top: 14px;
  border: 1px solid var(--accent-edge);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--text);
  font-size: 14px;
}

/* The wallet and checkout dialog (site/js/wallet.js builds its contents). */
.pay-dialog {
  margin: auto;
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  /* Tall content scrolls; sideways it wraps, so no sideways scrollbar (a
     fractional zoom would otherwise conjure one). */
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(24, 28, 38, 0.28);
}
.pay-dialog::backdrop { background: rgba(24, 28, 38, 0.45); }
.pay-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px 0; }
.pay-head h2 { font-size: 17px; color: var(--silver-bright); }
.pay-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  font: inherit;
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.pay-close:hover { color: var(--silver-bright); background: rgba(24, 28, 38, 0.05); }
.pay-body { padding: 10px 22px 20px; }
.pay-body p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin-top: 8px; }
.pay-body a { color: var(--silver-bright); }
.pay-body .pay-note { font-size: 12.5px; line-height: 1.5; }
.pay-body .pay-error { color: var(--danger); font-size: 13.5px; line-height: 1.5; }
.pay-body .pay-progress { color: var(--text); font-size: 15px; }
.pay-body input[type="text"] {
  margin-top: 10px;
  font-family: Consolas, "Cascadia Code", Menlo, monospace;
  font-size: 12.5px;
}
.pay-rows { display: grid; grid-template-columns: 84px 1fr; gap: 9px 14px; margin: 8px 0 4px; }
.pay-rows dt { color: var(--muted); font-size: 13px; padding-top: 1px; }
.pay-rows dd { color: var(--text); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; min-width: 0; }
.pay-sub { display: block; color: var(--muted); font-size: 12px; }
.pay-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.pay-actions a.btn { color: var(--btn-text); }
.wallet-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.wallet-pick {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  background: transparent;
  border: 1px solid var(--panel-edge);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.wallet-pick:hover { border-color: var(--accent-edge); background: rgba(24, 28, 38, 0.03); }
.wallet-pick img { width: 28px; height: 28px; border-radius: 7px; display: block; }

.licence-text {
  font-family: Consolas, "Cascadia Code", Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ── The report form ─────────────────────────────────── */
.stepper {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}
.stepper li {
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  padding: 5px 14px;
  border: 1px solid var(--panel-edge);
  border-radius: 999px;
}
.stepper li.current {
  color: var(--silver-bright);
  border-color: var(--accent-edge);
  background: var(--panel);
  font-weight: 600;
}

.panel .panel-note { font-size: 13.5px; margin: -4px 0 14px; }

.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field > label, .field > .label {
  display: block;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
}
.field .optional { color: var(--muted); font-weight: 400; }
.panel .hint { color: var(--muted); font-size: 12.5px; line-height: 1.45; margin-top: 5px; }
.panel .error { color: var(--danger); font-size: 12.5px; line-height: 1.45; margin-top: 5px; }

input[type="text"], input[type="email"], input[type="url"], textarea {
  width: 100%;
  font: inherit;
  font-size: 14.5px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--panel-edge);
  border-radius: 9px;
  padding: 10px 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { resize: vertical; line-height: 1.5; min-height: 64px; }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-edge);
  box-shadow: 0 0 0 3px var(--focus);
}
input.invalid, textarea.invalid { border-color: var(--danger-edge); }
::placeholder { color: #9aa1af; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.rows { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; gap: 8px; }
.row input { flex: 1; min-width: 0; }
.icon-btn {
  flex-shrink: 0;
  width: 40px;
  font: inherit;
  font-size: 17px;
  line-height: 1;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--panel-edge);
  border-radius: 9px;
  cursor: pointer;
}
.icon-btn:hover { color: var(--danger); border-color: var(--danger-edge); }
.link-btn {
  font: inherit;
  font-size: 13px;
  color: var(--silver);
  background: none;
  border: 0;
  padding: 4px 0;
  margin-top: 6px;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(24, 28, 38, 0.2);
  text-underline-offset: 3px;
}
.link-btn:hover { color: var(--silver-bright); }
.link-btn[disabled] { opacity: 0.45; cursor: default; }

.dropzone {
  display: block;
  border: 1px dashed var(--accent-edge);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 400;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover, .dropzone.over { background: rgba(24, 28, 38, 0.03); border-color: var(--silver); }
.dropzone strong { color: var(--silver-bright); font-weight: 600; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.dropzone:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }

.file-list { list-style: none; padding: 0 !important; margin-top: 10px; }
.file-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid var(--hairline);
  border-radius: 9px;
  margin-bottom: 6px;
  font-size: 13.5px;
}
.file-list .file-name { flex: 1; min-width: 0; overflow-wrap: anywhere; color: var(--text); }
.file-list .file-size { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.file-list .icon-btn { width: 30px; height: 30px; font-size: 15px; }

/* Off-screen rather than display:none — the field is bait for form-filling
   scripts, which skip hidden inputs but fill in everything else. */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 18px; }
.actions .actions-note { flex: 1; color: var(--muted); font-size: 12.5px; line-height: 1.45; }

.form-alert {
  border: 1px solid var(--danger-edge);
  background: rgba(154, 47, 47, 0.05);
  color: var(--danger);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* Review */
.review dl { display: grid; grid-template-columns: 170px 1fr; gap: 10px 18px; }
.review dt { color: var(--muted); font-size: 13px; padding-top: 1px; }
.review dd {
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-width: 0;
}
.review dd.none { color: var(--muted); }
.review dd ul { list-style: none; padding: 0; }
.review dd li { color: var(--text); margin-bottom: 3px; }

/* Received */
.notice { text-align: center; padding: 38px 30px 34px; }
.notice canvas { width: 84px; height: 84px; display: block; margin: 0 auto 8px; }
.notice h2 { font-size: 21px; margin-bottom: 12px; }
.notice .notice-text {
  max-width: 520px;
  margin: 0 auto;
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}
.notice .notice-ref { margin-top: 16px; color: var(--muted); font-size: 13px; }
.notice .notice-ref code {
  font-family: Consolas, "Cascadia Code", Menlo, monospace;
  font-size: 13px;
  color: var(--silver-bright);
  background: rgba(24, 28, 38, 0.06);
  border-radius: 5px;
  padding: 2px 7px;
}
.notice .btn-quiet { margin-top: 22px; }

/* ── Footer ──────────────────────────────────────────── */
footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 16px;
  color: var(--muted);
  font-size: 12.5px;
  border-top: 1px solid var(--hairline);
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--silver-bright); }

/* ── 404 ─────────────────────────────────────────────── */
.lost { text-align: center; padding: 80px 20px; }
.lost h1 { font-size: 40px; color: var(--silver-bright); margin-bottom: 10px; }
.lost p { color: var(--muted); }
.lost a { color: var(--silver-bright); }

/* ── Responsive ──────────────────────────────────────── */
/* Mid screens: hero across the top, Services and Applications side by side. */
@media (min-width: 861px) {
  .home {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "hero hero" "services apps";
    column-gap: 20px;
    padding: 8px 28px 34px;
  }
  .hero { padding: 26px 0 30px; }
  .services h2, .apps h2 { text-align: left; margin-left: 2px; }
}
/* Wide screens: Services at the left edge (under the wordmark), Applications
   mirrored at the right edge, the hero centred between two equal columns.
   The two lists dissolve into the page grid (display: contents) so that card
   n of each sits in the same row: the columns are the same height and their
   cards line up across the page. */
@media (min-width: 1281px) {
  .home {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-rows: repeat(4, auto);
    grid-template-areas: none;
    align-content: center;
    column-gap: 32px;
    row-gap: 12px;
    padding: 8px 28px 28px;
  }
  .hero { grid-area: 1 / 2 / -1 / 3; align-self: center; padding: 18px 0; }
  .services, .apps, .service-list, .service-list > li { display: contents; }
  .services h2, .apps h2 { grid-row: 1; align-self: end; margin: 0; padding-left: 2px; }
  .services h2, .apps h2, .home .service-card { width: min(360px, 100%); height: auto; }
  .services h2, .services .service-card { grid-column: 1; justify-self: start; }
  .apps h2, .apps .service-card { grid-column: 3; justify-self: end; }
  .service-list > li:nth-child(1) > .service-card { grid-row: 2; }
  .service-list > li:nth-child(2) > .service-card { grid-row: 3; }
  .service-list > li:nth-child(3) > .service-card { grid-row: 4; }
}
@media (max-width: 620px) {
  .topbar { padding: 12px 16px; }
  main { padding: 0 16px; }
  .home { padding: 8px 16px 34px; }
  .topbar { flex-wrap: wrap; row-gap: 8px; }
  .topbar nav { gap: 6px; margin-left: auto; }
  .topbar nav a, .wallet-btn { padding: 6px 10px; font-size: 13px; }
  .wallet-btn.is-connected { font-size: 12px; }
  .pay-head { padding: 16px 16px 0; }
  .pay-body { padding: 10px 16px 18px; }
  .pay-rows { grid-template-columns: 70px 1fr; }
  .hero canvas { width: 104px; height: 104px; }
  .panel { padding: 18px 16px; }
  .two-col { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: 1fr; }
  .review dl { grid-template-columns: 1fr; gap: 2px 0; }
  .review dd { margin-bottom: 10px; }
  .actions { flex-wrap: wrap; }
  .actions .actions-note { flex-basis: 100%; }
  .stepper li { padding: 5px 10px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .service-card, .btn, .topbar .back, .wallet-btn, .wallet-pick { transition: none; }
}
