@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/zecret/space-grotesk.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  /* Foundation */
  --color-bg: #050505;
  --color-surface: #111112;
  --color-surface-raised: #171718;
  --color-field: #0a0a0b;
  --color-text: #f1efe9;
  --color-text-secondary: #c6c4bd;
  --color-text-muted: #b2b0a9;
  --color-text-dim: #99978f;
  --color-line: rgb(244 241 232 / 10%);
  --color-line-strong: rgb(244 241 232 / 17%);
  --color-line-panel: rgb(244 241 232 / 13%);
  --color-line-interactive: rgb(244 241 232 / 14%);
  --color-line-selected: rgb(244 241 232 / 27%);
  --color-line-focus: rgb(244 241 232 / 28%);
  --color-line-direction: rgb(244 241 232 / 20%);
  --color-overlay-dialog: rgb(0 0 0 / 71%);

  /* Protocol and status signals */
  --color-zcash-yellow: #f3d33b;
  --color-near-blue: #5574ff;
  --color-cipherpunk-purple: #b562ff;
  --color-focus: #59c8e8;
  --color-positive: #4ddd9a;
  --color-provisional: #cf9841;
  --color-danger: #e7a29a;

  /* Component-only shades preserve the existing near-black surface depth. */
  --color-field-active: #0c0c0d;
  --color-control: #1b1b1d;
  --color-control-hover: #252527;
  --color-control-raised: #1c1c1f;
  --color-control-raised-hover: #202023;
  --color-dialog: #121213;
  --color-option: #19191a;
  --color-placeholder: #7d7c77;
  --color-on-primary: #121211;
  --color-primary-border: #fffdfa;
  --color-primary-hover: #fffefa;
  --color-provisional-text: #d9b779;
  --color-provisional-copy: #d2ae70;
  --color-provisional-line: rgb(207 152 65 / 27%);
  --color-provisional-bg: rgb(207 152 65 / 7%);
  --color-surface-preview: rgb(17 17 18 / 78%);
  --color-meta: #77756f;
  --surface-info-panel: linear-gradient(90deg, rgb(85 116 255 / 6.5%), transparent 38%), rgb(18 18 19 / 90%);
  --surface-field: linear-gradient(180deg, rgb(255 255 255 / 1.4%), transparent 38%), var(--color-field);
  --shadow-card: 0 22px 52px rgb(0 0 0 / 29%), inset 0 1px 0 rgb(255 255 255 / 2.5%);
  --shadow-inset-highlight: inset 0 1px 0 rgb(255 255 255 / 2.5%);
  --shadow-field: inset 0 1px 0 rgb(255 255 255 / 2.7%);
  --shadow-field-focus: inset 0 0 0 1px rgb(244 241 232 / 19%), inset 2px 0 0 var(--signal-cyan-quiet), inset 0 1px 0 rgb(255 255 255 / 3%);
  --shadow-control: 0 5px 14px rgb(0 0 0 / 34%);
  --shadow-primary: 0 9px 25px rgb(241 239 233 / 8.5%);
  --shadow-primary-hover: 0 12px 29px rgb(241 239 233 / 16%);
  --shadow-primary-focus: 0 0 0 3px rgb(89 200 232 / 22%), var(--shadow-primary-hover);
  --shadow-dialog: 0 30px 90px rgb(0 0 0 / 66%);
  --shadow-provisional: 0 0 9px rgb(207 152 65 / 35%);
  --shadow-menu: 0 18px 48px rgb(0 0 0 / 48%);
  --shadow-focus: 0 0 0 3px rgb(89 200 232 / 16%);
  --shadow-danger: inset 0 0 0 1px rgb(231 162 154 / 22%);

  /* Type */
  --font-sans: "Space Grotesk", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --type-display-home-min: 1.6875rem;
  --type-display-home-max: 2.125rem;
  --type-display-review-min: 1.875rem;
  --type-display-review-max: 2.9375rem;
  --type-amount: clamp(1.6875rem, 6.5vw, 2.25rem);
  --type-section-min: 1.625rem;
  --type-section-max: 1.875rem;
  --type-card-heading: 1rem;
  --type-body: 0.875rem;
  --type-supporting: 0.8125rem;
  --type-label: 0.75rem;
  --type-micro: 0.6875rem;
  --text-display: clamp(var(--type-display-review-min), 4.4vw, var(--type-display-review-max));
  --text-hero: clamp(var(--type-display-home-min), 4vw, var(--type-display-home-max));
  --text-section: clamp(var(--type-section-min), 3.2vw, var(--type-section-max));
  --text-heading: var(--type-card-heading);
  --text-body: var(--type-body);
  --text-supporting: var(--type-supporting);
  --text-label: var(--type-label);
  --text-micro: var(--type-micro);
  --text-optical: 0.625rem;

  /* Space */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Shape and motion */
  --radius-control: 8px;
  --radius-panel: 10px;
  --radius-card: 13px;
  --radius-pill: 999px;
  --radius-terminal: 0;
  --motion-fast: 150ms;
  --motion-standard: 180ms;
  --motion-ease: ease;
  --duration-fast: var(--motion-fast);
  --duration-standard: var(--motion-standard);
  --ease-standard: var(--motion-ease);

  /* Legacy aliases keep existing component selectors legible while using the semantic system. */
  --ink: var(--color-bg);
  --graphite: var(--color-surface);
  --graphite-raised: var(--color-surface-raised);
  --well: var(--color-field);
  --warm-white: var(--color-text);
  --soft-white: var(--color-text-secondary);
  --muted: var(--color-text-muted);
  --dim: var(--color-text-dim);
  --line: var(--color-line);
  --line-strong: var(--color-line-strong);
  --amber: var(--color-provisional);
  --cobalt: #6287c5;
  --signal-yellow: var(--color-zcash-yellow);
  --signal-blue: var(--color-near-blue);
  --signal-cyan: var(--color-focus);
  --signal-mint: var(--color-positive);
  --signal-magenta: var(--color-cipherpunk-purple);
  --signal-yellow-quiet: rgb(243 211 59 / 62%);
  --signal-blue-quiet: rgb(85 116 255 / 64%);
  --signal-cyan-quiet: rgb(89 200 232 / 64%);
  --signal-magenta-quiet: rgb(181 98 255 / 58%);
  --mono: var(--font-mono);
  --near-teal: var(--color-positive);
  --danger: var(--color-danger);
  font-family: var(--font-sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  background: var(--ink);
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

html:has(dialog[open]) {
  overflow: hidden;
}

body {
  min-width: 0;
  /* The height on show: a phone's address bar takes some of it. 100vh is for a browser without dvh. */
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--warm-white);
  background: var(--ink);
  letter-spacing: -0.018em;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

button:not(:disabled),
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

/* A touch screen: no grey flash on a tap (each control's own press shows instead), no wait for a
   second tap before the first one counts, and a long press on a button picks up none of its words.
   Body text, fields and links stay selectable. A mouse keeps all of it as it was. */
@media not all and (hover: hover) and (pointer: fine) {
  :where(a, button, summary, label, select, input, textarea, [role="button"], [role="option"], [role="tab"]) {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  :where(button, summary, select, [role="button"], [role="option"], [role="tab"], label:has(input[type="checkbox"], input[type="radio"]), input[type="checkbox"], input[type="radio"]) {
    -webkit-user-select: none;
    user-select: none;
  }
}

.icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

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

:where(button, input, summary):disabled {
  cursor: not-allowed;
}

:where(button, a, summary):not(:disabled):active {
  transform: translateY(1px);
}

[hidden] {
  display: none !important;
}

/* A phone's notch, rounded corners and home bar (viewport-fit=cover): the gutters, the top and the
   end of the page keep clear of them. Where a screen has none, each max() gives the old figure. */
.page-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 2 * max(20px, env(safe-area-inset-left), env(safe-area-inset-right)), 920px);
  margin: 0 auto;
  /* 26px, off the grid on purpose: 2px higher, the header's links sit on a brighter part of the gold
     light and "How it works" drops under 4.5:1. */
  padding: max(26px, env(safe-area-inset-top)) 0 max(var(--space-12), env(safe-area-inset-bottom));
}

.site-header {
  display: flex;
  width: min(100%, 680px);
  min-height: 44px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: var(--space-2);
  color: var(--warm-white);
  text-decoration: none;
}

.brand-mark {
  display: block;
  flex: none;
  width: 32px;
  height: 32px;
  line-height: 0;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-name {
  overflow: hidden;
  max-width: 0;
  color: var(--soft-white);
  font-size: var(--text-body);
  font-weight: var(--weight-emphasis);
  line-height: 1;
  white-space: nowrap;
  animation: brand-reveal 850ms 220ms cubic-bezier(0.2, 0.75, 0.25, 1) forwards;
}

@keyframes brand-reveal {
  to {
    max-width: 5.375rem;
    opacity: 1;
  }
}

.how-button {
  display: inline-flex;
  min-height: 44px;
  padding: 0;
  align-items: center;
  gap: var(--space-1);
  border: 0;
  color: var(--soft-white);
  background: transparent;
  cursor: pointer;
  font-size: var(--text-supporting);
  letter-spacing: -0.005em;
}

.how-button[aria-expanded="true"],
.how-button:active {
  color: var(--warm-white);
}

@media (hover: hover) and (pointer: fine) {
  .how-button:hover {
    color: var(--warm-white);
  }
}

.how-icon {
  width: 16px;
  height: 16px;
  transition: transform 180ms ease;
}

.how-button[aria-expanded="true"] .how-icon {
  transform: rotate(180deg);
}

.how-panel {
  display: grid;
  position: relative;
  overflow: hidden;
  width: min(100%, 680px);
  margin: 12px auto 0;
  padding: var(--space-4) var(--space-4) var(--space-4);
  gap: var(--space-6);
  border: 1px solid var(--color-line-panel);
  border-radius: var(--radius-panel);
  color: var(--soft-white);
  background: var(--surface-info-panel);
  box-shadow: var(--shadow-inset-highlight);
  grid-template-columns: minmax(150px, 0.65fr) 1fr;
}

.how-panel::before {
  position: absolute;
  top: 17px;
  left: -1px;
  width: 2px;
  height: 31px;
  content: "";
  background: linear-gradient(var(--color-near-blue), var(--signal-yellow));
}

.how-copy {
  position: relative;
  padding-left: var(--space-3);
}

.how-copy::before {
  position: absolute;
  top: 3px;
  left: 0;
  width: 5px;
  height: 5px;
  content: "";
  background: var(--color-near-blue);
  box-shadow: 0 12px 0 rgba(85, 116, 255, 0.36);
}

.how-panel h2,
.dialog-header h2 {
  margin: var(--space-1) 0 0;
  color: var(--warm-white);
  font-size: var(--text-heading);
  font-weight: var(--weight-emphasis);
  letter-spacing: -0.03em;
}

.how-detail {
  display: grid;
  min-width: 0;
  container-type: inline-size;
  align-content: start;
}

.how-detail > p:first-child {
  max-width: 390px;
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--text-supporting);
  line-height: 1.55;
}

.route-steps {
  --route-node-rail-offset: 22px;
  display: grid;
  min-width: 0;
  margin: 16px 0 12px;
  padding: 0;
  align-items: start;
  grid-template-columns: 88px minmax(26px, 1fr) 80px minmax(26px, 1fr) 88px;
}

.route-step {
  display: grid;
  min-width: 0;
  min-height: 80px;
  gap: var(--space-1);
  align-content: start;
  grid-template-rows: 44px auto auto;
}

.route-step--send {
  justify-items: center;
  text-align: center;
}

.route-step--receive {
  justify-items: center;
  text-align: center;
}

.route-step--private {
  justify-items: center;
  text-align: center;
}

.route-asset-logo {
  display: block;
  width: 32px;
  height: 32px;
  align-self: center;
  object-fit: contain;
}

.route-step-label {
  min-width: 0;
  color: var(--warm-white);
  font-size: var(--text-micro);
  font-weight: var(--weight-emphasis);
  line-height: 1.2;
  letter-spacing: -0.015em;
  overflow-wrap: normal;
  word-break: normal;
}

.route-step-chain {
  max-width: 100%;
  color: var(--color-text-muted);
  font-size: var(--text-micro);
  line-height: 1.25;
  overflow-wrap: normal;
  word-break: normal;
}

.route-terminal-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(244, 241, 232, 0.18);
  background:
    linear-gradient(135deg, rgba(85, 116, 255, 0.14), transparent 44%),
    linear-gradient(315deg, rgba(199, 100, 191, 0.1), transparent 48%),
    #0a0a0b;
  /* No coloured glow round the mark: it only decorated (31 October 2026). */
  box-shadow:
    inset 0 0 0 2px rgba(5, 5, 5, 0.62),
    0 0 0 1px rgba(243, 211, 59, 0.18),
    0 7px 15px rgba(0, 0, 0, 0.28);
}

.route-terminal-mark img {
  display: block;
  width: 30px;
  height: 30px;
}

.route-connector {
  position: relative;
  height: 44px;
}

.route-connector-line {
  position: absolute;
  top: 50%;
  right: 3px;
  left: 0;
  height: 1px;
  background: rgba(244, 241, 232, 0.35);
}

.route-connector--in .route-connector-line {
  left: calc(0px - var(--route-node-rail-offset));
}

.route-connector--out .route-connector-line {
  right: calc(3px - var(--route-node-rail-offset));
}

.route-connector-line::after {
  position: absolute;
  top: -3px;
  right: -1px;
  width: 5px;
  height: 5px;
  content: "";
  border-top: 1px solid var(--soft-white);
  border-right: 1px solid var(--soft-white);
  transform: rotate(45deg);
}

.route-connector-pixel {
  position: absolute;
  top: calc(50% - 3px);
  width: 3px;
  height: 3px;
}

.route-connector-pixel--blue {
  left: 18%;
  background: var(--color-near-blue);
  box-shadow: 5px 5px 0 rgba(85, 116, 255, 0.32);
}

.route-connector-pixel--yellow {
  right: 28%;
  background: var(--signal-yellow);
}

.route-connector-pixel--purple {
  left: 24%;
  background: var(--color-cipherpunk-purple);
}

.route-connector-pixel--purple + .route-connector-pixel--blue {
  right: 24%;
  background: var(--color-near-blue);
}

.how-privacy-note {
  max-width: 390px;
  margin: 0;
  padding-left: 8px;
  border-left: 2px solid var(--signal-magenta-quiet);
  color: var(--color-text-muted);
  font-size: var(--text-supporting);
  line-height: 1.5;
}

.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: var(--space-6);
}

.swap-intro {
  width: 100%;
  max-width: 460px;
  margin-bottom: var(--space-4);
  text-align: center;
}

/* A small label over a title, in sentence case: the words as written, at the label size, the emphasis
   weight and the muted colour. No capitals and no wide tracking (31 October 2026). */
.eyebrow {
  margin: 0;
  /* In sentence case a 12px muted label read as fine print: one size up and one grey brighter. */
  color: var(--color-text-secondary);
  font-size: var(--text-supporting);
  font-weight: var(--weight-emphasis);
  line-height: 1.2;
}

.swap-intro h1 {
  margin: 0 0 var(--space-2);
  color: var(--warm-white);
  font-size: var(--text-hero);
  font-weight: var(--weight-emphasis);
  letter-spacing: -0.052em;
  line-height: 1.04;
  /* At 200% text on a 320 px screen "Privately" is wider than the column. Break a word that is longer
     than its line rather than scroll the page sideways. At normal sizes every word fits, so nothing
     changes. `anywhere`, not `break-word`: see .section-title. */
  overflow-wrap: anywhere;
}

.route-note {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--text-body);
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.swap-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: var(--space-3);
  border: 1px solid var(--color-line-panel);
  border-radius: var(--radius-card);
  background: var(--graphite);
  box-shadow: var(--shadow-card);
}

.amount-field {
  position: relative;
  min-height: 112px;
  padding: var(--space-2) var(--space-3) var(--space-2);
  border: 1px solid transparent;
  border-radius: var(--radius-panel);
  background: var(--surface-field);
  box-shadow: var(--shadow-field);
  transition: box-shadow var(--duration-standard) var(--ease-standard), background var(--duration-standard) var(--ease-standard), border-color var(--duration-standard) var(--ease-standard);
}

.amount-field:focus-within {
  background: var(--color-field-active);
  box-shadow: var(--shadow-field-focus);
}

/* The amount's input draws no outline, so its field wears the site's focus ring, also in error (UX audit A-8, D-3). */
.amount-field:has(.amount-input:focus-visible) {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

.field-topline,
.chain-row,
.amount-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.field-topline {
  min-height: 15px;
}

.field-topline label {
  color: var(--soft-white);
  font-size: var(--text-label);
  font-weight: var(--weight-label);
}

.field-hint,
.sample-usd {
  color: var(--dim);
  font-size: var(--text-label);
  letter-spacing: 0.01em;
}

.sample-usd {
  color: var(--muted);
}

.amount-line {
  min-height: 48px;
  margin-top: var(--space-1);
  gap: 12px;
  flex-wrap: wrap;
}

.amount-input {
  flex: 1 1 6rem;
  width: auto;
  min-width: min(100%, 6rem);
  min-height: 46px;
  /* 1px: an optical nudge inside the field, so the figures sit on its middle. */
  padding: 1px 0;
  border: 0;
  outline: 0;
  color: var(--warm-white);
  background: transparent;
  font-size: var(--type-amount);
  font-variant-numeric: tabular-nums;
  font-weight: var(--weight-label);
  letter-spacing: -0.06em;
  line-height: 1;
}

.amount-input::selection {
  color: var(--ink);
  background: var(--warm-white);
}

.token-button {
  display: inline-flex;
  flex: 0 0 auto;
  min-width: 104px;
  min-height: 44px;
  padding: var(--space-1) var(--space-2) var(--space-1) var(--space-1);
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-control);
  color: var(--warm-white);
  background: var(--color-control);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);
}

@media (hover: hover) and (pointer: fine) {
  .token-button:hover {
    border-color: var(--color-line-focus);
    background: var(--color-control-hover);
  }
}

.token-button[aria-expanded="true"] {
  border-color: var(--color-focus);
  background: var(--color-control-hover);
}

.token-button:active,
.direction-button:active {
  transform: translateY(1px);
}

.token-logo,
.chain-logo,
.option-token-logo,
.option-chain-logo {
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.token-logo {
  width: 27px;
  height: 27px;
}

.token-ticker {
  color: var(--warm-white);
  font-size: var(--text-supporting);
  font-weight: var(--weight-emphasis);
  letter-spacing: -0.015em;
}

.token-chevron {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.chain-row {
  min-height: 15px;
  margin-top: 0;
  justify-content: flex-start;
  gap: var(--space-2);
  color: var(--muted);
  font-size: var(--text-label);
  flex-wrap: wrap;
}

.chain-row .sample-usd {
  margin-left: auto;
}

.chain-logo {
  width: 13px;
  height: 13px;
  opacity: 0.86;
}

.direction-wrap {
  display: flex;
  height: 5px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.direction-button {
  display: grid;
  width: 44px;
  height: 44px;
  position: relative;
  place-items: center;
  border: 0;
  border-radius: var(--radius-control);
  color: var(--soft-white);
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);
}

@media (hover: hover) and (pointer: fine) {
  .direction-button:hover {
    color: var(--warm-white);
  }
}

.direction-button::before {
  position: absolute;
  width: 29px;
  height: 29px;
  border: 1px solid var(--color-line-direction);
  border-radius: var(--radius-control);
  content: "";
  background: var(--color-control-raised);
  box-shadow: var(--shadow-control);
  transform: rotate(45deg);
  transition: border-color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard);
}

@media (hover: hover) and (pointer: fine) {
  .direction-button:hover::before {
    border-color: var(--color-line-selected);
    background: var(--color-control-raised-hover);
  }
}

.direction-button .direction-icon {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
}

.form-error,
.field-error {
  display: none;
  margin: var(--space-2) 0 0;
  color: var(--color-danger);
  font-size: var(--text-supporting);
  line-height: 1.5;
}

.swap-card[data-invalid] .form-error,
.field-error:not(:empty),
[data-invalid] .field-error {
  display: block;
  min-height: 15px;
}

.amount-field[data-invalid],
.destination-field[data-invalid],
.amount-field:has(input[aria-invalid="true"]),
.destination-field:has(input[aria-invalid="true"]) {
  border-color: var(--color-danger);
  box-shadow: var(--shadow-danger);
}

input[aria-invalid="true"]:focus-visible {
  outline-color: var(--color-danger);
}

.swap-button {
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  margin-top: 0;
  padding: 0 var(--space-4);
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 1px solid var(--color-primary-border);
  border-radius: var(--radius-control);
  color: var(--color-on-primary);
  background: var(--warm-white);
  box-shadow: var(--shadow-primary);
  cursor: pointer;
  font-size: var(--text-body);
  font-weight: var(--weight-emphasis);
  letter-spacing: -0.018em;
  transition: transform var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard);
}

@media (hover: hover) and (pointer: fine) {
  .swap-button:hover {
    background: var(--color-primary-hover);
    box-shadow: var(--shadow-primary-hover);
    transform: translateY(-1px);
  }
}

.swap-button:active {
  transform: translateY(1px);
}

.swap-button:focus-visible {
  outline-color: var(--color-focus);
  box-shadow: var(--shadow-primary-focus);
}

.swap-button-icon {
  width: 16px;
  height: 16px;
}

.swap-button-icon {
  color: currentColor;
  transition: color var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);
}

@media (hover: hover) and (pointer: fine) {
  .swap-button:hover .swap-button-icon {
    color: var(--signal-yellow);
    transform: translate(1px, -1px);
  }
}

.route-lockup {
  display: grid;
  width: 100%;
  max-width: 460px;
  margin-top: var(--space-4);
  justify-items: center;
}

.route-lockup-label {
  margin: 0 0 var(--space-1);
  color: var(--color-text-muted);
  font-size: var(--text-label);
  font-weight: var(--weight-text);
}

.route-lockup-track {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
}

.route-provider {
  display: inline-grid;
  position: relative;
  flex: 0 0 auto;
  place-items: center;
}

.route-provider img {
  display: block;
  height: auto;
  object-fit: contain;
}

.route-provider--near img {
  width: 128px;
}

.route-provider--zcash img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 145px;
  max-height: none;
  transform: translate(-50%, -50%);
}

.route-provider--zcash {
  width: 106px;
  height: 28px;
  overflow: hidden;
}

/* The hero stays content-driven; editorial material follows it naturally. */
.swap-hero {
  display: flex;
  width: 100%;
  min-height: 0;
  padding-bottom: clamp(var(--space-12), 7svh, var(--space-20));
  flex-direction: column;
  align-items: center;
}

.editorial-sections {
  width: min(100%, 680px);
  margin: 0 auto;
}

.content-section {
  position: relative;
  width: 100%;
  scroll-margin-top: 32px;
}

.content-section + .content-section {
  padding-top: clamp(var(--space-16), 10vw, 102px);
}

.section-heading {
  display: grid;
  position: relative;
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--line-strong);
  gap: var(--space-2);
}

.section-heading::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 38px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--signal-blue) 0 42%, var(--signal-cyan) 42% 50%, var(--signal-yellow) 50% 92%, var(--signal-mint) 92% 100%);
}

.section-title {
  margin: 0;
  color: var(--warm-white);
  font-size: var(--text-section);
  font-weight: var(--weight-emphasis);
  letter-spacing: -0.052em;
  line-height: 1.04;
  /* As the hero title: a word longer than its line breaks there ("Frequently" at 200% text). The
     heading sits centered in a grid that sizes it to its longest word, and only `anywhere` lets that
     word count as breakable; with `break-word` it stays whole and runs off the screen's edge. */
  overflow-wrap: anywhere;
}

.use-case-list {
  display: grid;
  border-top: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.use-case {
  position: relative;
  min-width: 0;
  min-height: 173px;
  padding: var(--space-6) var(--space-6) var(--space-6) 0;
  border-bottom: 1px solid var(--line);
}

.use-case:nth-child(even) {
  padding-right: 0;
  padding-left: var(--space-6);
  border-left: 1px solid var(--line);
}

.use-case::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 17px;
  height: 1px;
  content: "";
  background: var(--color-line-strong);
}

.use-case:nth-child(even)::before {
  right: 0;
  left: auto;
  background: var(--signal-yellow);
}

.use-case-title {
  margin: 0;
  color: var(--warm-white);
  font-size: var(--text-heading);
  font-weight: var(--weight-emphasis);
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.use-case-copy {
  max-width: 238px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: var(--text-supporting);
  line-height: 1.55;
}

.use-case-route {
  position: absolute;
  right: 1px;
  bottom: 17px;
  width: 58px;
  height: 15px;
  overflow: visible;
  color: var(--color-line-focus);
  opacity: 0.72;
  pointer-events: none;
}

.use-case-route path,
.use-case-route polyline,
.use-case-route line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.use-case:nth-child(even) .use-case-route {
  right: auto;
  left: 1px;
  color: var(--signal-yellow-quiet);
}

.faq-section {
  padding-bottom: var(--space-4);
}

.faq-list {
  border-top: 0;
}

.faq-item {
  border: 0;
  border-bottom: 1px solid var(--line);
}

.faq-question {
  display: grid;
  width: 100%;
  min-height: 60px;
  padding: var(--space-4) 0;
  align-items: center;
  border: 0;
  color: var(--soft-white);
  cursor: pointer;
  font: inherit;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 44px;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::marker {
  content: "";
}

.faq-question-text {
  min-width: 0;
  font-size: var(--text-body);
  font-weight: var(--weight-emphasis);
  letter-spacing: -0.022em;
  line-height: 1.35;
}

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

.faq-indicator {
  display: grid;
  position: relative;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--color-line);
  color: var(--soft-white);
  transition: border-color var(--duration-standard) var(--ease-standard), color var(--duration-standard) var(--ease-standard);
}

.faq-indicator::before,
.faq-indicator::after {
  position: absolute;
  width: 12px;
  height: 1px;
  content: "";
  background: currentColor;
}

.faq-indicator::after {
  transform: rotate(90deg);
  transition: opacity var(--duration-standard) var(--ease-standard), transform var(--duration-standard) var(--ease-standard);
}

/* An open question: its plus turns (material.css) and its ring and mark go bright. Odd and even
   questions no longer take blue and gold in turn: the colours only decorated (31 October 2026). */
.faq-item[open] .faq-indicator {
  border-color: var(--color-line-focus);
  color: var(--color-text);
}

.faq-item[open] .faq-indicator::after {
  opacity: 0;
  transform: rotate(90deg) scaleX(0.2);
}

/* Forced colours repaint a background as the page, so the plus would vanish. Draw it in the text colour. */
@media (forced-colors: active) {
  .faq-indicator::before,
  .faq-indicator::after {
    forced-color-adjust: none;
    background: CanvasText;
  }
}

.faq-item[open] .faq-question-text {
  color: var(--warm-white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-standard) var(--ease-standard);
}

.faq-answer > p {
  margin: 0;
  padding: 0 var(--space-16) 0 0;
  color: var(--muted);
  font-size: var(--text-body);
  line-height: 1.6;
}

.faq-answer > p + p {
  margin-top: var(--space-2);
}

.faq-answer > p:last-child {
  padding-bottom: 20px;
}

.faq-sources {
  color: var(--color-text-muted);
  font-size: var(--text-label);
}

.faq-sources a {
  display: inline-flex;
  min-height: 44px;
  /* 2px: the focus ring clears the words of a link inside a line. */
  padding: 0 2px;
  align-items: center;
  color: var(--warm-white);
  text-decoration-color: var(--color-line-focus);
  text-underline-offset: 3px;
}

.faq-sources a:active {
  text-decoration-color: var(--signal-yellow);
}

@media (hover: hover) and (pointer: fine) {
  .faq-sources a:hover {
    text-decoration-color: var(--signal-yellow);
  }
}

.faq-item[open] .faq-answer {
  max-height: 28rem;
}

.site-footer {
  width: min(100%, 680px);
  margin: clamp(var(--space-12), 8vw, var(--space-20)) auto 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-strong);
}

.site-footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-4);
}

.site-footer-pair {
  display: inline-flex;
  gap: inherit;
}

/* Every link is a 44 px target both ways (the site's rule). A short word sits in the middle of its box. */
.site-footer-link {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--color-text-muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: var(--text-label);
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

.site-footer-link:active {
  color: var(--warm-white);
}

@media (hover: hover) and (pointer: fine) {
  .site-footer-link:hover {
    color: var(--warm-white);
  }
}

.site-footer-meta {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-4);
  min-width: 0;
  color: var(--color-text-muted);
  font-size: var(--text-label);
  line-height: 1.5;
}

.site-footer-contract,
.site-footer-copyright {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  white-space: nowrap;
}

.token-dialog {
  width: min(calc(100% - 32px), 460px);
  max-height: min(650px, calc(100% - 2 * max(16px, env(safe-area-inset-top), env(safe-area-inset-bottom))));
  padding: 0;
  border: 1px solid var(--color-line-focus);
  border-radius: var(--radius-card);
  color: var(--warm-white);
  background: var(--color-dialog);
  box-shadow: var(--shadow-dialog);
}

.token-dialog::backdrop {
  background: var(--color-overlay-dialog);
  backdrop-filter: blur(4px);
}

.privacy-dialog {
  width: min(calc(100% - 28px), 620px);
  max-height: min(720px, calc(100dvh - 2 * max(14px, env(safe-area-inset-top), env(safe-area-inset-bottom))));
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--color-line-focus);
  border-radius: var(--radius-card);
  color: var(--warm-white);
  background: var(--color-dialog);
  box-shadow: var(--shadow-dialog);
}

.privacy-dialog::backdrop {
  background: var(--color-overlay-dialog);
  backdrop-filter: blur(4px);
}

@keyframes dialog-enter {
  from {
    opacity: 0;
    transform: translateY(0.5rem) scale(0.985);
  }
}

@keyframes dialog-backdrop-enter {
  from {
    opacity: 0;
  }
}

:is(.token-dialog, .privacy-dialog, .review-dialog)[open] {
  animation: dialog-enter var(--duration-standard) var(--ease-standard) both;
}

:is(.token-dialog, .privacy-dialog, .review-dialog)[open]::backdrop {
  animation: dialog-backdrop-enter var(--duration-standard) var(--ease-standard) both;
}

.dialog-panel {
  padding: var(--space-5);
}

.dialog-header {
  display: flex;
  min-height: 44px;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}

.dialog-header h2 {
  font-size: var(--text-heading);
}

.dialog-close {
  display: grid;
  width: 44px;
  height: 44px;
  margin: -4px -4px 0 0;
  place-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  color: var(--soft-white);
  background: transparent;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: var(--weight-text);
  line-height: 1;
}

.dialog-close:active {
  border-color: var(--line);
  background: var(--color-control-raised);
}

@media (hover: hover) and (pointer: fine) {
  .dialog-close:hover {
    border-color: var(--line);
    background: var(--color-control-raised);
  }
}

.dialog-copy {
  margin: var(--space-2) 0 var(--space-4);
  color: var(--muted);
  font-size: var(--text-body);
  line-height: 1.5;
}

.privacy-dialog-panel {
  max-height: min(720px, calc(100dvh - 2 * max(14px, env(safe-area-inset-top), env(safe-area-inset-bottom))));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.privacy-dialog-content {
  margin-top: 8px;
}

.privacy-dialog-lead {
  margin: 0 0 var(--space-4);
  color: var(--soft-white);
  font-size: var(--text-supporting);
  line-height: 1.55;
}

.privacy-policy-section {
  padding: var(--space-3) 0 var(--space-3);
  border-top: 1px solid var(--line);
}

.privacy-policy-section h3 {
  margin: 0 0 4px;
  color: var(--warm-white);
  font-size: var(--text-label);
  font-weight: var(--weight-emphasis);
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.privacy-policy-section p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-body);
  line-height: 1.6;
}

.privacy-policy-updated {
  margin: var(--space-3) 0 0;
  color: var(--dim);
  font-size: var(--text-label);
  line-height: 1.5;
}

.token-options {
  display: grid;
  max-height: min(425px, 55vh);
  max-height: min(425px, 55dvh);
  gap: var(--space-2);
  overflow: auto;
  padding-right: var(--space-1);
}

.token-option {
  display: grid;
  width: 100%;
  min-height: 64px;
  padding: var(--space-2) var(--space-3);
  align-items: center;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-control);
  color: var(--soft-white);
  background: var(--color-option);
  cursor: pointer;
  text-align: left;
  grid-template-columns: 34px 1fr auto;
  transition: border-color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard);
}

@media (hover: hover) and (pointer: fine) {
  .token-option:hover:not(:disabled) {
    border-color: var(--color-line-focus);
    background: var(--color-control-raised-hover);
  }
}

.token-option[aria-pressed="true"] {
  border-color: var(--color-line-selected);
  background: var(--color-control-raised-hover);
}

.token-option:disabled {
  cursor: not-allowed;
  border-color: var(--color-line);
  color: var(--color-text-secondary);
  background: var(--color-field);
  opacity: 0.72;
}

.token-option:disabled .option-main {
  color: var(--color-text-secondary);
}

.token-option:disabled .option-state {
  color: var(--color-text-muted);
}

.option-token-logo {
  width: 27px;
  height: 27px;
}

.option-info {
  display: grid;
  gap: var(--space-1);
}

.option-main {
  color: var(--warm-white);
  font-size: var(--text-supporting);
  font-weight: var(--weight-emphasis);
}

.option-main small {
  margin-left: var(--space-1);
  color: var(--muted);
  font-size: var(--text-micro);
  font-weight: var(--weight-text);
}

.option-chain {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--muted);
  font-size: var(--text-micro);
}

.option-chain-logo {
  width: 12px;
  height: 12px;
}

.option-state {
  color: var(--muted);
  font-size: var(--text-micro);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.mobile-menu-toggle,
.mobile-menu {
  display: none;
}

@keyframes mobile-menu-enter {
  from {
    opacity: 0;
    transform: translateY(-0.25rem);
  }
}

@media (max-width: 620px) {
  [data-mobile-menu-root] {
    position: relative;
  }

  [data-mobile-menu-root] > :is(.how-button, .home-link) {
    display: none;
  }

  .mobile-menu-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-content: center;
    gap: var(--space-2);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-control);
    color: var(--color-text-secondary);
    background: var(--color-control);
    cursor: pointer;
    transition: border-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard);
  }

  .mobile-menu-toggle > span {
    display: block;
    width: 18px;
    height: 1px;
    background: currentColor;
    transition: transform var(--duration-fast) var(--ease-standard);
  }

  [data-mobile-menu-root][data-menu-open] .mobile-menu-toggle {
    border-color: var(--color-line-selected);
    color: var(--color-text);
    background: var(--color-control-hover);
  }

  @media (hover: hover) and (pointer: fine) {
    .mobile-menu-toggle:hover {
      border-color: var(--color-line-selected);
      color: var(--color-text);
      background: var(--color-control-hover);
    }
  }

  [data-mobile-menu-root][data-menu-open] .mobile-menu-toggle > span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  [data-mobile-menu-root][data-menu-open] .mobile-menu-toggle > span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  [data-mobile-menu-root][data-menu-open] .mobile-menu:not([hidden]) {
    display: grid;
    position: absolute;
    z-index: 4;
    top: calc(100% + var(--space-2));
    right: 0;
    width: min(18rem, calc(100vw - 28px));
    padding: var(--space-2);
    gap: var(--space-1);
    border: 1px solid var(--color-line-panel);
    border-radius: var(--radius-card);
    background: var(--color-surface);
    box-shadow: var(--shadow-menu);
    animation: mobile-menu-enter var(--duration-fast) var(--ease-standard) both;
  }

  .mobile-menu :is(a, button) {
    display: inline-flex;
    width: 100%;
    min-height: 44px;
    padding: 0 var(--space-3);
    align-items: center;
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    color: var(--color-text-secondary);
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: var(--text-supporting);
    font-weight: var(--weight-label);
    text-align: left;
    text-decoration: none;
    transition: border-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard);
  }

  .mobile-menu :is(a, button):active {
    border-color: var(--color-line);
    color: var(--color-text);
    background: var(--color-control);
  }

  @media (hover: hover) and (pointer: fine) {
    .mobile-menu :is(a, button):hover {
      border-color: var(--color-line);
      color: var(--color-text);
      background: var(--color-control);
    }
  }

  .page-shell {
    width: min(100% - 2 * max(14px, env(safe-area-inset-left), env(safe-area-inset-right)), 720px);
    padding-top: max(var(--space-4), env(safe-area-inset-top));
  }

  .main-content {
    padding-top: var(--space-6);
  }

  .swap-hero {
    min-height: 0;
    padding-bottom: var(--space-12);
  }

  .editorial-sections {
    width: 100%;
  }

  .content-section + .content-section {
    padding-top: var(--space-20);
  }

  .section-heading {
    padding-bottom: var(--space-6);
  }

  .section-title {
    font-size: var(--text-section);
  }

  .use-case-list {
    grid-template-columns: 1fr;
  }

  .use-case,
  .use-case:nth-child(even) {
    min-height: 0;
    padding: var(--space-6) 0 var(--space-6);
    border-left: 0;
  }

  .use-case:nth-child(even)::before {
    right: auto;
    left: 0;
  }

  .use-case-copy {
    max-width: min(100%, 380px);
  }

  .use-case:nth-child(even) .use-case-route {
    right: 1px;
    left: auto;
  }

  .faq-question {
    min-height: 64px;
    padding: var(--space-2) 0;
    gap: 12px;
  }

  .faq-question-text {
    font-size: var(--text-supporting);
  }

  .faq-answer > p {
    padding-right: var(--space-4);
  }

  .how-panel {
    grid-template-columns: 1fr;
    padding: var(--space-4) var(--space-4) var(--space-4);
    gap: var(--space-4);
  }

  .how-panel::before {
    top: 15px;
  }

  .route-steps {
    --route-node-rail-offset: 19px;
    margin: var(--space-4) 0 var(--space-3);
    grid-template-columns: minmax(min-content, 1fr) minmax(4px, 0.25fr) minmax(min-content, 1fr) minmax(4px, 0.25fr) minmax(min-content, 1fr);
  }

  .route-lockup {
    margin-top: var(--space-4);
  }

  .route-lockup-track {
    gap: var(--space-8);
  }

  .route-provider--near img {
    width: 114px;
  }

  .route-provider--zcash img {
    width: 120px;
  }

  .route-provider--zcash {
    width: 88px;
    height: 26px;
  }

  .swap-intro {
    margin-bottom: 16px;
  }

  .swap-card {
    padding: var(--space-2);
    border-radius: var(--radius-card);
  }

  .amount-field {
    min-height: 112px;
    padding: var(--space-2) var(--space-3) var(--space-2);
  }

  .site-footer {
    margin-top: var(--space-16);
  }

  .site-footer-content {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-1);
  }

  .site-footer-meta {
    justify-content: flex-start;
  }

  .privacy-dialog-panel {
    padding: var(--space-4);
  }

  .eyebrow,
  .route-step-label,
  .route-step-chain,
  .route-lockup-label,
  .faq-sources,
  .site-footer-link,
  .site-footer-meta,
  .option-main small,
  .option-chain,
  .option-state,
  .privacy-policy-updated {
    font-size: var(--text-label);
  }

}

@media (max-width: 620px) and (max-height: 640px) {
  .swap-hero {
    min-height: auto;
    padding-bottom: 48px;
  }
}

@media (max-width: 380px) {
  .page-shell {
    width: min(100% - 2 * max(10px, env(safe-area-inset-left), env(safe-area-inset-right)), 720px);
  }

  .token-button {
    min-width: 89px;
    gap: var(--space-1);
  }

  .token-logo {
    width: 24px;
    height: 24px;
  }

}

/* When rem-scaled route copy no longer fits its horizontal rail, retain the same
   route order in a readable vertical sequence instead of breaking words. */
@container (max-width: 14rem) {
  .route-steps {
    --route-node-rail-offset: 0px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 28px auto 28px auto;
    gap: 0;
  }

  .route-step,
  .route-step--send,
  .route-step--private,
  .route-step--receive {
    min-height: 44px;
    align-items: center;
    justify-items: start;
    gap: var(--space-1) var(--space-2);
    text-align: left;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .route-step--asset .route-asset-logo,
  .route-step--private .route-terminal-mark {
    grid-column: 1;
    grid-row: 1 / span 2;
    justify-self: center;
    align-self: center;
  }

  .route-step-label {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
  }

  .route-step-chain {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
  }

  .route-step--private .route-step-label {
    align-self: center;
  }

  .route-connector {
    width: 44px;
    height: 28px;
    justify-self: start;
  }

  .route-connector--in .route-connector-line,
  .route-connector--out .route-connector-line {
    top: 0;
    right: auto;
    bottom: 0;
    left: 21px;
    width: 1px;
    height: auto;
  }

  .route-connector-line::after {
    top: auto;
    right: -3px;
    bottom: 0;
    transform: rotate(135deg);
  }

  .route-connector-pixel {
    right: auto;
    left: 20px;
  }

  .route-connector--in .route-connector-pixel--blue,
  .route-connector--out .route-connector-pixel--purple {
    top: 28%;
    left: 17px;
  }

  .route-connector--in .route-connector-pixel--yellow,
  .route-connector--out .route-connector-pixel--purple + .route-connector-pixel--blue {
    top: 65%;
    right: auto;
    left: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .brand-name {
    max-width: 5.375rem;
    opacity: 1;
  }
}

/* An iPhone browser zooms the page into a field whose text is under 16 px when it is tapped, and
   leaves it zoomed: the page then sits wider than the screen until it is pinched back (the owner's
   report, 28 October 2026). On a touch screen every field's text is 16 px; the amount fields are
   larger already. The page's zoom is not locked, so pinching still works for whoever needs it.
   scripts/mobile-check.mjs fails on a field under 16 px on a phone. */
@media (pointer: coarse) {
  :is(
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not(.amount-input),
    textarea,
    select
  ) {
    font-size: 16px;
  }
}
