:root {
  color-scheme: light;
  --ink: #111815;
  --ink-soft: #26302b;
  --paper: #f0f2ee;
  --surface: #ffffff;
  --surface-muted: #f7f8f5;
  --line: #cbd0ca;
  --line-dark: #3d4742;
  --muted: #68716c;
  --signal: #c5f36a;
  --signal-dark: #92c637;
  --teal: #087b70;
  --blue-soft: #e3edfb;
  --danger: #b83c37;
  --focus: #146be3;
  font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(17, 24, 21, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 21, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  color: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  width: min(100%, 1440px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-rows: 68px 1fr 52px;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  border-bottom: 1px solid rgba(17, 24, 21, 0.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  font-weight: 800;
}

.brand-mark {
  position: relative;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--signal);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  content: "";
  position: absolute;
  width: 4px;
  background: var(--ink);
  transform: rotate(45deg);
}

.brand-mark::before {
  height: 33px;
  left: 4px;
}

.brand-mark span {
  height: 33px;
  left: 11px;
}

.brand-mark::after {
  height: 33px;
  left: 18px;
}

.header-actions,
.support-link {
  display: flex;
  align-items: center;
}

.support-link {
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

.support-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.support-link svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

main {
  display: grid;
  align-items: center;
  padding: 26px 0;
}

.exchange-shell {
  width: 100%;
  min-height: 680px;
  height: min(720px, calc(100vh - 172px));
  display: grid;
  grid-template-columns: minmax(330px, 0.82fr) minmax(560px, 1.18fr);
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--surface);
  box-shadow: 10px 10px 0 rgba(17, 24, 21, 0.1);
}

.service-panel {
  position: relative;
  min-width: 0;
  padding: 44px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  color: #f9fbf8;
  background: var(--ink);
}

.service-copy {
  position: relative;
  z-index: 2;
  max-width: 430px;
}

.eyebrow,
.section-code {
  margin: 0;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--signal);
}

.service-copy h1 {
  max-width: 470px;
  margin: 16px 0 15px;
  font-size: 43px;
  line-height: 1.03;
  font-weight: 680;
}

.service-intro {
  max-width: 370px;
  margin: 0;
  color: #bdc5c0;
  font-size: 16px;
  line-height: 1.55;
}

.service-visual {
  position: relative;
  min-height: 210px;
  margin: 28px -44px 24px 0;
  overflow: hidden;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.service-visual::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, var(--ink) 0, transparent 42%, rgba(17, 24, 21, 0.18) 100%);
}

.service-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.92;
}

.visual-stamp {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 20px;
  width: 82px;
  height: 82px;
  padding: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: var(--signal);
}

.visual-stamp span {
  font-size: 11px;
  font-weight: 800;
}

.visual-stamp strong {
  font-size: 29px;
  line-height: 1;
}

.service-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}

.service-facts div:last-child {
  grid-column: 1 / -1;
  padding-top: 15px;
  border-top: 1px solid var(--line-dark);
}

.service-facts div {
  display: grid;
  gap: 5px;
}

.service-facts span {
  color: #86918b;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.service-facts strong {
  font-size: 12px;
  line-height: 1.35;
  font-weight: 650;
}

.flow-panel {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--surface);
}

.stepper {
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
}

.stepper ol {
  min-height: 74px;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
}

.stepper li {
  position: relative;
  padding: 18px 22px 14px;
  display: grid;
  align-content: center;
  gap: 4px;
  color: #88908c;
  border-right: 1px solid var(--line);
}

.stepper li:last-child {
  border-right: 0;
}

.stepper li::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: transparent;
}

.stepper li.is-active,
.stepper li.is-complete {
  color: var(--ink);
}

.stepper li.is-active::after {
  background: var(--signal-dark);
}

.step-number {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
}

.step-label {
  font-size: 13px;
  font-weight: 750;
}

.step-content {
  width: min(100%, 650px);
  max-height: 100%;
  min-width: 0;
  margin: auto;
  padding: 42px 42px 38px;
  align-self: center;
  overflow: auto;
}

.step-heading {
  max-width: 570px;
}

.section-code {
  color: var(--teal);
}

.step-heading h2 {
  margin: 11px 0 11px;
  font-size: 32px;
  line-height: 1.12;
  font-weight: 690;
}

.step-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.step-heading > p strong {
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.connection-box {
  min-height: 76px;
  margin: 32px 0 12px;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.connection-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--blue-soft);
}

.connection-icon svg,
.button svg,
.security-note svg,
.confirmation-check svg,
.success-mark svg,
.icon-button svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.connection-icon svg {
  width: 22px;
  height: 22px;
}

.connection-box > div:last-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.connection-box strong {
  font-size: 13px;
}

.connection-box span {
  color: var(--muted);
  font-size: 12px;
}

.button {
  min-height: 50px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease, transform 120ms ease;
}

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

.button:active {
  transform: translateY(0);
}

.button:disabled {
  cursor: wait;
  opacity: 0.78;
  transform: none;
}

.button svg {
  width: 18px;
  height: 18px;
}

.button-primary {
  color: #f8faf7;
  background: var(--ink);
}

.button-primary:hover {
  color: var(--ink);
  background: var(--signal);
}

.step-wallet > .button-primary {
  width: 100%;
}

.button-secondary {
  color: var(--ink);
  background: var(--surface);
}

.button-secondary:hover {
  background: var(--surface-muted);
}

.security-note {
  margin-top: 22px;
  padding-top: 18px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.security-note svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 1px;
  color: var(--teal);
}

.security-note p {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
}

.security-note strong {
  color: var(--ink-soft);
}

.step-details {
  padding-top: 14px;
  padding-bottom: 14px;
  align-self: stretch;
}

.compact-heading h2 {
  margin-top: 7px;
  margin-bottom: 7px;
  font-size: 26px;
}

.compact-heading > p:last-child {
  line-height: 1.4;
}

.connected-wallet {
  min-height: 28px;
  margin: 8px 0;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  border: 1px solid #b9d5cf;
  background: #f0f8f5;
  font-size: 11px;
  font-weight: 700;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--teal);
}

.connected-wallet code {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px 10px;
}

.field {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.amount-field,
.quote-strip {
  grid-column: 1 / -1;
}

.email-field,
.name-field {
  grid-column: span 3;
}

.address-field,
.city-field {
  grid-column: span 4;
}

.country-field,
.postal-field {
  grid-column: span 2;
}

.field label,
.amount-field > label {
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1;
  font-weight: 750;
}

.field input,
.field select,
.amount-control {
  width: 100%;
  min-width: 0;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
}

.field input,
.field select {
  padding: 0 13px;
  color: var(--ink);
  outline: 0;
  font-size: 13px;
}

.field input::placeholder {
  color: #9ba29e;
}

.field input:hover,
.field select:hover,
.amount-control:hover {
  border-color: #8b938f;
}

.field input:focus,
.field select:focus,
.amount-control:focus-within {
  border-color: var(--focus);
  box-shadow: 0 0 0 2px rgba(20, 107, 227, 0.13);
}

.field input:focus,
.field select:focus {
  box-shadow: none;
}

.amount-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  overflow: hidden;
}

.amount-control input,
.amount-control select {
  height: 38px;
  border: 0;
  outline: 0;
  background: transparent;
}

.amount-control input {
  min-width: 0;
  padding: 0 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 17px;
  font-weight: 650;
}

.amount-control select {
  padding: 0 12px;
  color: var(--ink);
  border-left: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
}

.quote-strip {
  min-height: 46px;
  padding: 7px 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4px 16px;
  color: #effffb;
  background: var(--teal);
}

.quote-strip div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.quote-strip span {
  color: #cbe8e2;
  font-size: 10px;
}

.quote-strip strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.quote-strip small {
  grid-column: 1 / -1;
  color: #cbe8e2;
  font-size: 9px;
}

.confirmation-check {
  margin-top: 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  cursor: pointer;
}

.confirmation-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.confirmation-check > span[aria-hidden="true"] {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: grid;
  place-items: center;
  color: transparent;
  border: 1px solid #89928d;
  background: var(--surface);
}

.confirmation-check svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.4;
}

.confirmation-check input:checked + span {
  color: var(--ink);
  border-color: var(--signal-dark);
  background: var(--signal);
}

.confirmation-check input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.form-actions {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
}

.form-actions .button {
  min-width: 0;
  min-height: 44px;
}

.step-receipt {
  padding-top: 32px;
  padding-bottom: 32px;
}

.success-mark {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--signal);
}

.success-mark svg {
  width: 25px;
  height: 25px;
  stroke-width: 2.2;
}

.receipt-code-block {
  margin: 28px 0 16px;
  padding: 16px 18px;
  border: 1px solid var(--ink);
  background: var(--surface-muted);
}

.receipt-code-block > span,
.receipt-code-block small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.receipt-code-block > div {
  margin: 8px 0 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.receipt-code-block code {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 750;
}

.icon-button {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}

.icon-button:hover {
  background: var(--signal);
  border-color: var(--ink);
}

.icon-button svg {
  width: 17px;
  height: 17px;
}

.receipt-summary {
  margin: 0 0 18px;
  border-top: 1px solid var(--line);
}

.receipt-summary div {
  min-height: 42px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.receipt-summary dt {
  color: var(--muted);
  font-size: 11px;
}

.receipt-summary dd {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  text-align: right;
  font-size: 11px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.button-full {
  width: 100%;
}

.site-footer {
  color: #727a76;
  font-size: 10px;
}

.site-footer nav {
  display: flex;
  gap: 22px;
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

@media (max-width: 1020px) {
  .page {
    padding: 0 24px;
  }

  .exchange-shell {
    grid-template-columns: minmax(290px, 0.72fr) minmax(500px, 1.28fr);
  }

  .service-panel {
    padding: 34px;
  }

  .service-copy h1 {
    font-size: 36px;
  }

  .service-visual {
    margin-right: -34px;
  }
}

@media (max-width: 820px) {
  .page {
    min-height: 100vh;
    padding: 0 18px;
    grid-template-rows: 62px 1fr 48px;
  }

  main {
    display: block;
    padding: 18px 0;
  }

  .exchange-shell {
    min-height: 0;
    height: auto;
    display: block;
    overflow: visible;
    box-shadow: 7px 7px 0 rgba(17, 24, 21, 0.1);
  }

  .service-panel {
    min-height: 190px;
    padding: 28px;
    display: block;
  }

  .service-copy {
    max-width: 500px;
  }

  .service-copy h1 {
    max-width: 500px;
    margin: 10px 0 8px;
    font-size: 30px;
  }

  .service-intro {
    max-width: 500px;
    font-size: 14px;
  }

  .service-visual {
    position: absolute;
    inset: 0 0 0 52%;
    min-height: 0;
    margin: 0;
    border: 0;
    opacity: 0.64;
  }

  .service-visual::before {
    background: linear-gradient(90deg, var(--ink) 0, rgba(17, 24, 21, 0.25) 100%);
  }

  .visual-stamp,
  .service-facts {
    display: none;
  }

  .flow-panel {
    display: grid;
  }

  .step-content {
    margin: 0 auto;
    padding: 34px 32px;
  }

  .step-details {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

@media (max-width: 560px) {
  body {
    background: var(--paper);
  }

  .page {
    padding: 0 12px;
    grid-template-rows: 58px 1fr auto;
  }

  .header-actions {
    gap: 0;
  }

  .support-link {
    font-size: 0;
  }

  .support-link svg {
    width: 20px;
    height: 20px;
  }

  main {
    padding: 12px 0 18px;
  }

  .service-panel {
    min-height: 164px;
    padding: 23px 20px;
  }

  .service-copy h1 {
    max-width: 315px;
    margin-top: 9px;
    font-size: 27px;
    line-height: 1.08;
  }

  .service-intro {
    max-width: 290px;
    font-size: 12px;
  }

  .service-visual {
    left: 45%;
  }

  .stepper ol {
    min-height: 62px;
  }

  .stepper li {
    padding: 12px 10px 10px;
  }

  .step-label {
    font-size: 11px;
  }

  .step-content {
    width: 100%;
    padding: 30px 20px 28px;
  }

  .step-heading h2 {
    font-size: 27px;
  }

  .compact-heading h2 {
    font-size: 24px;
  }

  .connection-box {
    margin-top: 26px;
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr) 112px;
  }

  .amount-field,
  .quote-strip,
  .email-field,
  .name-field,
  .address-field,
  .country-field {
    grid-column: 1 / -1;
  }

  .city-field {
    grid-column: 1 / 2;
  }

  .postal-field {
    grid-column: 2 / 3;
  }

  .quote-strip {
    grid-template-columns: 1fr;
  }

  .quote-strip div,
  .quote-strip small {
    grid-column: 1;
  }

  .amount-control {
    grid-template-columns: minmax(0, 1fr) 94px;
  }

  .form-actions {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .form-actions .button {
    padding: 0 12px;
  }

  .receipt-code-block code {
    font-size: 20px;
  }

  .site-footer {
    min-height: 74px;
    padding: 13px 0;
    align-items: flex-start;
    gap: 14px;
  }

  .site-footer nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 14px;
  }
}

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