:root {
  --developer-width: clamp(470px, 42vw, 720px);
  --luxon-navy: #090b35;
  --luxon-blue: #3157f6;
  --luxon-purple: #6c54e8;
  --luxon-ink: #17182f;
  --luxon-border: #e4e5ee;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--luxon-ink);
  background: var(--luxon-navy);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  background: #f7f7fb;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
.hidden {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  transition: grid-template-columns 280ms ease;
}

.app-shell.dev-open {
  grid-template-columns: minmax(580px, 1fr) var(--developer-width);
}

.merchant-pane {
  min-width: 0;
  position: relative;
  min-height: 100vh;
  background: #fff;
}

.topbar {
  height: 100px;
  padding: 0;
  display: block;
  border: 0;
  background: linear-gradient(38deg, #0c0c0c, #313233);
  position: sticky;
  top: 0;
  z-index: 300;
}

.topbar-accent {
  width: 100%;
  height: 10px;
  background: linear-gradient(90deg, #00c896, #008060);
}

.topbar-inner {
  width: 100%;
  max-width: 90rem;
  height: 90px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
}

.merchant-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  flex: 0 0 auto;
}
.merchant-brand img {
  width: 52px;
  height: 38px;
  object-fit: contain;
}
.merchant-logo,
.luxon-logo,
.wallet-symbol {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: white;
  background: linear-gradient(145deg, var(--luxon-purple), var(--luxon-blue));
}
.brand-wordmark {
  display: flex;
  align-items: baseline;
  letter-spacing: -0.045em;
  font-size: 30px;
  line-height: 1;
  color: #fff;
}
.brand-wordmark strong {
  font-weight: 700;
}
.brand-wordmark span {
  font-weight: 400;
}

.merchant-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 68px;
  margin-right: auto;
}
.merchant-nav a {
  display: block;
  padding: 1rem;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  transition: 0.2s;
}
.merchant-nav a:hover {
  color: #fff;
}
.nav-group {
  position: relative;
  z-index: 300;
  transition: 0.2s;
}
.nav-group:hover {
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
}
.nav-group.active > a {
  font-weight: 700;
}
.nav-dropdown {
  display: none;
  position: absolute;
  top: 50px;
  left: 0;
  width: max-content;
  min-width: 190px;
  padding: 1rem 2rem 1rem 1.5rem;
  border-radius: 0.5rem;
  background: #fff;
  list-style: none;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
}
.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown {
  display: block;
}
.nav-dropdown a {
  padding: 0.5rem;
  color: #686868;
  font-size: 0.875rem;
  white-space: nowrap;
}
.nav-dropdown a:hover,
.nav-dropdown a.current {
  color: #262626;
}
.nav-dropdown a.current {
  font-weight: 700;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.environment-pill {
  border: 1px solid #d9dbe8;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 10px;
  font-weight: 800;
  color: #555970;
  background: #f8f8fc;
}

.button {
  border: 0;
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
  background-color: #262626;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  transition-duration: 0.2s;
}
.button:hover {
  background-color: #707070;
  color: #fff;
}
.button-primary {
  border: 0;
  background: #fff;
  color: #262626;
  box-shadow: none;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.button-primary:hover {
  background: #707070;
  color: #fff;
}
.button-secondary {
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
}
.button-secondary:hover {
  border-color: transparent;
  background: transparent;
}
.button-large {
  padding: 14px 19px;
}
.button-full {
  width: 100%;
  margin-top: 16px;
  padding: 15px;
}

.hero {
  min-height: 610px;
  padding: clamp(62px, 7vw, 96px) clamp(30px, 7vw, 105px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
  background:
    radial-gradient(circle at 85% 18%, rgba(108, 84, 232, 0.08), transparent 28%),
    linear-gradient(180deg, #fff 0%, #fbfbfe 100%);
}

.kicker {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 900;
  color: #777a92;
  margin-bottom: 13px;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(46px, 5.5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: var(--luxon-navy);
}
.hero-copy > p {
  max-width: 600px;
  margin: 27px 0 31px;
  font-size: 17px;
  line-height: 1.7;
  color: #686a80;
}
.hero-actions {
  display: flex;
  gap: 10px;
}

.page-context {
  display: flex;
  gap: 8px;
  margin-bottom: 34px;
  color: #8b8da0;
  font-size: 11px;
}
.page-context strong {
  color: #4f5269;
}
.environment-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: #77798d;
  font-size: 11px;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}

.api-preview {
  overflow: hidden;
  border: 1px solid #202249;
  border-radius: 15px;
  background: #0b0d2f;
  color: #d9dcf1;
  box-shadow: 0 30px 70px rgba(9, 11, 53, 0.22);
}
.api-preview-bar,
.api-preview-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #8f93b4;
  font-size: 10px;
}
.api-preview-bar span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.api-preview-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}
.api-preview-bar code {
  color: #74789d;
}
.api-endpoint {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 4px;
}
.api-endpoint span {
  padding: 4px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
}
.api-endpoint code {
  color: #f0f1fa;
  font-size: 12px;
}
.api-preview pre {
  margin: 0;
  padding: 18px 20px 24px;
  color: #c8cbe1;
  font:
    11px/1.8 "SFMono-Regular",
    Consolas,
    monospace;
  white-space: pre-wrap;
}
.code-key {
  color: #9daeff;
}
.code-string {
  color: #d5d5df;
}
.code-number {
  color: #e6a9ff;
}
.code-muted {
  color: #6f7398;
}
.api-preview-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 0;
}

.flow-section {
  padding: 78px clamp(30px, 7vw, 105px) 92px;
  border-top: 1px solid var(--luxon-border);
  background: #f7f7fb;
}
.section-heading {
  max-width: 700px;
  margin-bottom: 42px;
}
.section-heading h2,
.experience-section h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 50px);
  letter-spacing: -0.04em;
  color: var(--luxon-navy);
}
.section-heading p {
  color: #74768a;
  line-height: 1.65;
  max-width: 600px;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.flow-card {
  position: relative;
  padding: 27px;
  min-height: 335px;
  border: 1px solid var(--luxon-border);
  border-radius: 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.flow-card.featured {
  background: linear-gradient(145deg, #0b0d38, #171455);
  color: white;
  border-color: transparent;
  box-shadow: 0 20px 45px rgba(15, 14, 67, 0.14);
}
.flow-number {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 12px;
  opacity: 0.28;
  font-weight: 900;
}
.flow-tag {
  align-self: flex-start;
  padding: 6px 9px;
  border-radius: 999px;
  background: #eef0ff;
  color: #535fc6;
  font-size: 9px;
  letter-spacing: 0.08em;
  font-weight: 900;
  text-transform: uppercase;
}
.featured .flow-tag {
  background: rgba(255, 255, 255, 0.1);
  color: #bdc6ff;
}
.flow-card h3 {
  margin: 31px 0 12px;
  font-size: 29px;
  letter-spacing: -0.03em;
}
.flow-card p {
  margin: 0;
  color: #727488;
  line-height: 1.62;
  font-size: 14px;
}
.featured p {
  color: rgba(255, 255, 255, 0.68);
}
.flow-link {
  margin-top: auto;
  border: 0;
  background: none;
  padding: 24px 0 0;
  text-align: left;
  color: var(--luxon-blue);
  font-weight: 900;
}
.flow-link span {
  float: right;
}
.featured .flow-link {
  color: #aeb9ff;
}

.experience-section {
  padding: 75px clamp(30px, 7vw, 105px);
  border-top: 1px solid var(--luxon-border);
  background: #fff;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: end;
}
.experience-section p {
  margin: 0;
  color: #707287;
  line-height: 1.7;
}

.developer-toggle {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #d8dae6;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 30px rgba(15, 16, 53, 0.14);
  color: #3b3d55;
  font-weight: 800;
  font-size: 12px;
  backdrop-filter: blur(10px);
}
.toggle-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8c9993;
}
.dev-open .toggle-dot {
  background: #536cff;
  box-shadow: 0 0 0 5px rgba(83, 108, 255, 0.13);
}

/* Cashier */
.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
}
.dev-open .modal {
  right: var(--developer-width);
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 19, 14, 0.62);
  backdrop-filter: blur(8px);
}
.cashier {
  position: relative;
  z-index: 1;
  width: min(480px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 30px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 45px 110px rgba(0, 0, 0, 0.32);
}
.cashier-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
}
.cashier-header h2 {
  margin: 0;
  font-size: 31px;
  letter-spacing: -0.035em;
}
.modal-close {
  border: 0;
  background: none;
  font-size: 27px;
  color: #718078;
}
.flow-switcher {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  margin: 23px 0 18px;
  background: #edf1ef;
  border-radius: 11px;
}
.flow-switcher button {
  border: 0;
  border-radius: 8px;
  padding: 9px;
  background: transparent;
  color: #66756f;
  font-size: 11px;
  font-weight: 800;
}
.flow-switcher button.active {
  background: white;
  color: #262626;
  box-shadow: 0 2px 8px rgba(21, 55, 44, 0.08);
}
.cashier-explainer {
  display: flex;
  gap: 12px;
  padding: 13px;
  background: #f1f7f4;
  border-radius: 12px;
}
.explainer-icon {
  flex: 0 0 auto;
  width: 35px;
  height: 35px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #262626;
  color: white;
  font-weight: 900;
}
.cashier-explainer strong {
  font-size: 12px;
}
.cashier-explainer p {
  margin: 3px 0 0;
  font-size: 11px;
  color: #6d7e76;
  line-height: 1.45;
}
.field-label {
  display: block;
  margin: 19px 0 8px;
  color: #495b53;
  font-size: 11px;
  font-weight: 900;
}
.amount-field {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  border: 1px solid #ccd8d2;
  border-radius: 11px;
  overflow: hidden;
}
.amount-field > span {
  padding: 0 14px;
  color: #6b7973;
  font-weight: 800;
  font-size: 13px;
}
.amount-field > span:first-child {
  font-size: 22px;
  padding-right: 4px;
}
.amount-field input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 12px 4px;
  font-size: 23px;
  font-weight: 900;
  color: #18342a;
}
.quick-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 8px;
}
.quick-values button {
  border: 1px solid #d9e1dd;
  border-radius: 8px;
  background: #f8faf9;
  padding: 7px;
  color: #55665e;
  font-size: 11px;
  font-weight: 800;
}
.method-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  border: 2px solid #707070;
  border-radius: 12px;
  padding: 12px;
  background: #f4faf7;
}
.method-card strong,
.method-card small {
  display: block;
}
.method-card small {
  margin-top: 2px;
  color: #74847d;
  font-size: 10px;
}
.selected-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #262626;
  color: white;
  font-size: 11px;
}
.advanced-fields {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.advanced-fields label,
.tool-card label {
  color: #53655d;
  font-size: 10px;
  font-weight: 900;
}
.advanced-fields input,
.tool-card input {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid #d2dcd7;
  border-radius: 9px;
  padding: 10px;
  outline: 0;
  color: #253a32;
  font-size: 12px;
  font-weight: 600;
  background: white;
}
.agreement-choice {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 13px;
  border: 1px dashed #b9cfc4;
  border-radius: 11px;
  background: #f8fbf9;
}
.agreement-choice strong {
  font-size: 11px;
}
.agreement-choice p {
  margin: 3px 0 0;
  color: #718078;
  font-size: 10px;
  line-height: 1.4;
}
.agreement-choice .button {
  margin-left: auto;
  font-size: 10px;
  white-space: nowrap;
}
.cashier-status {
  min-height: 18px;
  margin: 11px 0 0;
  color: #6a7b73;
  font-size: 11px;
}

/* Luxon hand-off stage ------------------------------------------------------
 * Luxon's hosted Merchant Window blocks iframe embedding in INT. The merchant
 * pane therefore remains visible while the actual Luxon journey runs in a
 * dedicated browser window. This also mirrors how many merchants implement a
 * hosted-wallet hand-off in practice.
 */
.luxon-stage {
  position: fixed;
  inset: 0;
  z-index: 30;
  background:
    radial-gradient(circle at 76% 20%, rgba(255, 255, 255, 0.08), transparent 30%),
    #edf2ef;
}
.dev-open .luxon-stage {
  right: var(--developer-width);
}
.stage-toolbar {
  height: 60px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: white;
  border-bottom: 1px solid #d9e2dd;
}
.stage-toolbar > div {
  text-align: center;
}
.stage-toolbar strong,
.stage-toolbar small {
  display: block;
}
.stage-toolbar strong {
  font-size: 12px;
}
.stage-toolbar small {
  margin-top: 2px;
  font-size: 9px;
  color: #78867f;
}
.icon-text-button {
  border: 0;
  background: none;
  padding: 8px;
  color: #3d5e52;
  font-weight: 850;
  font-size: 11px;
  text-decoration: none;
}
.stage-toolbar #reopenLuxon {
  justify-self: end;
}
.stage-content {
  height: calc(100vh - 60px);
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 70px);
  overflow: auto;
}
.payment-progress-card {
  width: min(610px, 100%);
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid #d8e3dd;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 30px 80px rgba(18, 59, 45, 0.13);
  text-align: center;
}
.progress-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 20px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: #262626;
  color: white;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(11, 107, 75, 0.22);
}
.payment-progress-card h2 {
  margin: 0;
  color: #173229;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}
.payment-progress-card > p {
  max-width: 500px;
  margin: 17px auto 28px;
  color: #6c7d75;
  line-height: 1.65;
}
.progress-details {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: left;
  border: 1px solid #e0e8e4;
  border-radius: 13px;
  overflow: hidden;
}
.progress-details > div {
  padding: 15px;
  min-width: 0;
}
.progress-details > div + div {
  border-left: 1px solid #e0e8e4;
}
.progress-details dt {
  margin-bottom: 5px;
  color: #84918b;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 900;
}
.progress-details dd {
  margin: 0;
  color: #30463e;
  font-size: 11px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.stage-actions {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 22px;
}
.stage-status-result {
  margin: 18px 0 0;
  max-height: 230px;
  overflow: auto;
  padding: 12px;
  border: 1px solid #dce6e1;
  border-radius: 10px;
  background: #f6f9f7;
  color: #425a50;
  text-align: left;
  font:
    10px/1.55 "SFMono-Regular",
    Consolas,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Developer pane */
.developer-pane {
  min-width: 0;
  height: 100vh;
  position: sticky;
  top: 0;
  background: #09100e;
  color: #d8e3de;
  border-left: 1px solid #1c2b25;
  overflow: hidden;
}
.developer-header {
  height: 78px;
  padding: 17px 19px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1b2823;
}
.developer-header .kicker {
  margin-bottom: 4px;
  color: #5f736a;
}
.developer-header h2 {
  margin: 0;
  color: white;
  font-size: 21px;
}
.dark-button {
  border: 1px solid #293a33;
  border-radius: 8px;
  background: #101a16;
  color: #91a59b;
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 800;
}
.developer-tabs {
  height: 43px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid #1b2823;
}
.developer-tabs button {
  border: 0;
  background: transparent;
  color: #657970;
  font-size: 10px;
  font-weight: 900;
}
.developer-tabs button.active {
  color: #fff;
  border-bottom: 2px solid #fff;
}
.developer-tab {
  display: none;
  height: calc(100vh - 121px);
}
.developer-tab.active {
  display: block;
}
.connection-strip {
  height: 58px;
  display: grid;
  grid-template-columns: 1.5fr 0.9fr auto;
  align-items: center;
  border-bottom: 1px solid #1b2823;
}
.connection-strip > div {
  padding: 0 12px;
  min-width: 0;
}
.connection-strip span {
  display: block;
  color: #52665d;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.connection-strip strong {
  display: block;
  margin-top: 3px;
  color: #adbbb5;
  font-size: 9px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.connection-strip button {
  margin-right: 11px;
  border: 1px solid #26352f;
  border-radius: 7px;
  background: transparent;
  color: #72867d;
  padding: 6px 8px;
  font-size: 9px;
}
.trace {
  height: calc(100% - 58px);
  overflow: auto;
  padding: 12px;
  font-family: "SFMono-Regular", Consolas, monospace;
}
.trace-empty {
  margin: 70px 25px;
  text-align: center;
  color: #4f6259;
  font-family: Inter, sans-serif;
  font-size: 12px;
  line-height: 1.6;
}
.event {
  margin-bottom: 9px;
  border: 1px solid #1f2c27;
  border-radius: 9px;
  overflow: hidden;
  background: #0e1713;
}
.event-header {
  width: 100%;
  border: 0;
  background: none;
  color: inherit;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  text-align: left;
}
.event-type {
  padding: 4px 5px;
  border-radius: 5px;
  background: #1b3028;
  color: #72c9a8;
  font-size: 7px;
  letter-spacing: 0.06em;
  font-weight: 900;
}
.event-title {
  font-size: 10px;
  font-weight: 750;
  color: #c8d4cf;
}
.event-time {
  color: #4d6158;
  font-size: 8px;
}
.event pre {
  margin: 0;
  padding: 10px;
  border-top: 1px solid #19251f;
  background: #080e0c;
  color: #87bda8;
  font-size: 9px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.event.ERROR .event-type {
  background: #3f1e20;
  color: #ff9ea3;
}
.event.TWO_STEP .event-type {
  background: #423818;
  color: #efd27b;
}
.event.AGREEMENT .event-type {
  background: #30234a;
  color: #c5a5ff;
}
.event.JOURNEY .event-type {
  background: #17334b;
  color: #84c8f7;
}

.tools-scroll {
  height: 100%;
  overflow: auto;
  padding: 13px;
}
.tool-card {
  margin-bottom: 11px;
  padding: 15px;
  border: 1px solid #1f3029;
  border-radius: 10px;
  background: #0e1814;
}
.tool-label {
  color: #4f7767;
  font-size: 8px;
  letter-spacing: 0.13em;
  font-weight: 900;
}
.tool-card h3 {
  margin: 5px 0 12px;
  font-size: 14px;
  color: #d4dfda;
}
.tool-card p {
  color: #71877d;
  font-size: 10px;
  line-height: 1.6;
}
.tool-grid {
  display: grid;
  grid-template-columns: 1fr 0.6fr;
  gap: 8px;
}
.tool-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 9px;
}
.tool-actions button,
.tool-primary {
  border: 1px solid #2a4037;
  border-radius: 7px;
  background: #13231c;
  color: #86bda7;
  padding: 8px;
  font-size: 9px;
  font-weight: 850;
}
.tool-primary {
  width: 100%;
  margin-top: 10px;
  background: #262626;
  color: white;
  border-color: #707070;
}
.tool-result {
  margin-top: 12px;
}
.tool-result > span {
  color: #50675d;
  font-size: 8px;
  letter-spacing: 0.12em;
}
.tool-result pre {
  min-height: 100px;
  border: 1px solid #1e2b26;
  border-radius: 8px;
  padding: 10px;
  background: #080e0c;
  color: #8eb6a6;
  font-size: 9px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 4px;
  border-radius: 8px;
  background: #08100d;
}
.segmented button {
  border: 0;
  border-radius: 6px;
  padding: 8px;
  background: transparent;
  color: #63766d;
  font-size: 9px;
  font-weight: 900;
}
.segmented button.active {
  background: #174633;
  color: #85dab7;
}
.tool-card code {
  display: block;
  margin-top: 7px;
  padding: 8px;
  border-radius: 6px;
  background: #080e0c;
  color: #78aa96;
  font-size: 9px;
  overflow-wrap: anywhere;
}
.warning-card {
  border-color: #493b20;
}

@media (max-width: 1050px) {
  .app-shell.dev-open {
    grid-template-columns: 1fr;
  }
  .developer-pane {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(520px, 92vw);
    z-index: 60;
    box-shadow: -30px 0 70px rgba(0, 0, 0, 0.35);
  }
  .dev-open .modal,
  .dev-open .luxon-stage {
    right: 0;
  }
  .flow-grid {
    grid-template-columns: 1fr;
  }
  .flow-card {
    min-height: 245px;
  }
}

@media (max-width: 760px) {
  .merchant-nav,
  .environment-pill {
    display: none;
  }
  .topbar {
    padding: 0;
  }
  .topbar-inner {
    padding: 0 1.25rem;
  }
  .topbar-actions {
    margin-left: auto;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 65px 24px;
  }
  .api-preview {
    width: 100%;
  }
  .flow-section,
  .experience-section {
    padding-left: 24px;
    padding-right: 24px;
  }
  .experience-section {
    grid-template-columns: 1fr;
  }
}

/* Luxon developer palette across the interactive workspace */
.cashier-explainer {
  background: #f2f3ff;
}
.explainer-icon,
.selected-dot,
.progress-icon {
  background: var(--luxon-blue);
}
.flow-switcher button.active {
  color: var(--luxon-blue);
}
.method-card {
  border-color: var(--luxon-blue);
  background: #f7f7ff;
}
.agreement-choice {
  border-color: #c8cbee;
  background: #fafaff;
}
.luxon-stage {
  background:
    radial-gradient(circle at 76% 20%, rgba(108, 84, 232, 0.12), transparent 30%), #f4f4fa;
}
.payment-progress-card {
  border-color: #dedfec;
  box-shadow: 0 30px 80px rgba(16, 17, 65, 0.12);
}
.payment-progress-card h2 {
  color: var(--luxon-navy);
}
.developer-pane {
  background: #080a27;
  border-left-color: #24264d;
}
.developer-header,
.developer-tabs,
.connection-strip {
  border-color: #202247;
}
.dark-button,
.connection-strip button {
  border-color: #30335e;
  background: #101234;
  color: #a1a5c7;
}
.developer-tabs button {
  color: #777b9f;
}
.developer-tabs button.active {
  color: #aeb9ff;
  border-bottom-color: #6378ff;
}
.dev-open .developer-toggle {
  border-color: #aeb8ff;
}
.event,
.tool-card,
.signature-card {
  border-color: #25284e;
  background: #10122f;
}
.event-type {
  background: #202852;
  color: #aeb9ff;
}
.event pre,
.tool-result pre,
.tool-card code,
.signature-card pre {
  background: #06081e;
  color: #aeb9dc;
}
.tool-label,
.signature-summary span,
.signature-card > span {
  color: #737dbd;
}
.tool-actions button,
.tool-primary {
  border-color: #354070;
  background: #18204b;
  color: #bec7ff;
}
.tool-primary {
  background: #334ed6;
  border-color: #405bf0;
  color: white;
}
.segmented {
  background: #06081e;
}
.segmented button.active {
  background: #293a8f;
  color: #d4daff;
}

/* Luxon dark site theme */
body,
.merchant-pane {
  background: #050509;
  color: #f5f5f8;
}

.topbar {
  background: linear-gradient(38deg, #0c0c0c, #313233);
}

.merchant-brand strong,
.merchant-nav a {
  color: #f4f4f7;
}

.merchant-brand small,
.page-context,
.environment-note {
  color: #858590;
}

.page-context strong,
.merchant-nav a:hover {
  color: #fff;
}

.merchant-nav .nav-dropdown a {
  color: #686868;
}

.merchant-nav .nav-dropdown a:hover,
.merchant-nav .nav-dropdown a.current {
  color: #262626;
  background: #f2f2f2;
  border-radius: 0.25rem;
}

.environment-pill {
  border-color: #303038;
  background: #15151b;
  color: #c7c7d0;
}

.button-secondary {
  border-color: #fff;
  background: transparent;
  color: #fff;
}

.button-secondary:hover {
  border-color: transparent;
  background: transparent;
}

.hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(89, 75, 231, 0.2), transparent 30%), #050509;
}

.hero h1,
.section-heading h2,
.experience-section h2 {
  color: #fff;
}

.hero-copy > p,
.section-heading p,
.experience-section p {
  color: #a0a0aa;
}

.api-preview {
  border-color: #333342;
  background: #0d0d14;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}

.flow-section {
  border-top-color: #24242b;
  background: #0a0a0f;
}

.flow-card,
.flow-card.featured {
  border-color: #292930;
  background: #111117;
  color: #fff;
  box-shadow: none;
}

.flow-card.featured {
  border-color: #454066;
  background: linear-gradient(145deg, #171526, #111117);
}

.flow-card p,
.featured p {
  color: #9696a1;
}

.flow-tag,
.featured .flow-tag {
  background: #23222f;
  color: #b9b4ff;
}

.flow-link,
.featured .flow-link {
  color: #fff;
  transition-duration: 0.2s;
}

.flow-link:hover,
.featured .flow-link:hover {
  color: #fff;
}

.experience-section {
  border-top-color: #24242b;
  background: #050509;
}

.developer-toggle {
  border-color: #35353e;
  background: rgba(18, 18, 24, 0.94);
  color: #f2f2f5;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.42);
}

/* Keep the merchant workspace usable beside Developer View. */
.dev-open .topbar-inner {
  max-width: none;
  padding-inline: 22px;
}

.dev-open .merchant-brand {
  gap: 7px;
}

.dev-open .merchant-brand img {
  width: 42px;
  height: 31px;
}

.dev-open .brand-wordmark {
  font-size: 24px;
}

.dev-open .merchant-nav {
  gap: 2px;
  margin-left: auto;
  margin-right: 0;
}

.dev-open .merchant-nav a {
  padding-inline: 10px;
  font-size: 14px;
}

.dev-open .hero {
  min-height: calc(100vh - 100px);
  grid-template-columns: minmax(340px, 1fr) minmax(320px, 0.82fr);
  gap: 32px;
  padding: 54px clamp(28px, 4vw, 56px);
}

.dev-open .hero h1 {
  font-size: clamp(44px, 4vw, 60px);
  line-height: 1;
}

.dev-open .hero-copy > p {
  margin-block: 22px 25px;
  font-size: 15px;
}

.dev-open .page-context {
  margin-bottom: 26px;
}

.dev-open .hero-actions {
  flex-wrap: wrap;
}

.dev-open .hero-actions .button {
  padding: 13px 17px;
  font-size: 15px;
}

.dev-open .api-preview pre {
  font-size: 10px;
}

@media (max-width: 1320px) {
  .dev-open .merchant-nav .nav-group:nth-child(-n + 2),
  .dev-open .merchant-nav > a:last-child {
    display: none;
  }

  .dev-open .hero {
    grid-template-columns: 1fr;
  }

  .dev-open .api-preview {
    display: none;
  }
}

.cashier {
  border: 1px solid #303038;
  background: #101015;
  color: #f4f4f7;
}

.cashier-header h2,
.cashier-explainer strong,
.agreement-choice strong,
.method-card strong {
  color: #fff;
}

.modal-close,
.field-label,
.advanced-fields label,
.cashier-status {
  color: #a0a0aa;
}

.flow-switcher {
  background: #08080c;
}

.flow-switcher button {
  color: #858590;
}

.flow-switcher button.active {
  background: #24242c;
  color: #fff;
  box-shadow: none;
}

.cashier-explainer,
.agreement-choice,
.method-card {
  border-color: #30303b;
  background: #181820;
}

.cashier-explainer p,
.agreement-choice p,
.method-card small {
  color: #94949f;
}

.amount-field,
.advanced-fields input,
.tool-card input {
  border-color: #34343d;
  background: #09090e;
  color: #fff;
}

.amount-field > span {
  color: #aaaab4;
}

.amount-field input {
  background: transparent;
  color: #fff;
}

.quick-values button {
  border-color: #303038;
  background: #19191f;
  color: #c7c7d0;
}

.luxon-stage {
  background:
    radial-gradient(circle at 76% 20%, rgba(89, 75, 231, 0.18), transparent 32%), #07070b;
}

.stage-toolbar {
  border-bottom-color: #292930;
  background: #0d0d12;
  color: #fff;
}

.stage-toolbar small,
.icon-text-button {
  color: #a3a3ae;
}

.payment-progress-card {
  border-color: #303038;
  background: rgba(17, 17, 23, 0.96);
  box-shadow: 0 32px 85px rgba(0, 0, 0, 0.5);
}

.payment-progress-card h2 {
  color: #fff;
}

.payment-progress-card > p,
.progress-details dt {
  color: #9696a1;
}

.progress-details {
  border-color: #303038;
}

.progress-details > div + div {
  border-left-color: #303038;
}

.progress-details dd {
  color: #ececf1;
}

.stage-status-result {
  border-color: #303038;
  background: #08080c;
  color: #b9b9c4;
}

/* Signature inspector ------------------------------------------------------- */
.signature-scroll {
  height: 100%;
  overflow: auto;
  padding: 13px;
}
.signature-empty {
  margin: 75px 30px;
  text-align: center;
  color: #53675e;
  font-size: 11px;
  line-height: 1.6;
}
.signature-summary {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr 0.8fr 0.8fr;
  gap: 1px;
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid #1f3029;
  border-radius: 9px;
  background: #1f3029;
}
.signature-summary div {
  min-width: 0;
  padding: 9px;
  background: #0e1814;
}
.signature-summary span,
.signature-card > span {
  display: block;
  color: #527266;
  font-size: 7px;
  letter-spacing: 0.12em;
  font-weight: 900;
}
.signature-summary strong {
  display: block;
  margin-top: 4px;
  color: #bacbc4;
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.signature-card {
  margin-bottom: 9px;
  padding: 11px;
  border: 1px solid #1e2e27;
  border-radius: 9px;
  background: #0d1713;
}
.signature-card.important {
  border-color: #454550;
  background: #0e1c16;
}
.signature-card.safe-card {
  border-color: #343526;
}
.signature-card p {
  margin: 6px 0 0;
  color: #687e74;
  font-size: 9px;
  line-height: 1.55;
}
.signature-card pre {
  margin: 8px 0 0;
  padding: 9px;
  max-height: 165px;
  overflow: auto;
  border-radius: 6px;
  background: #070d0a;
  color: #8dc2ac;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.test-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 11px;
}
.test-health {
  min-height: 82px;
  padding: 12px;
  border: 1px solid #1f3029;
  border-radius: 9px;
  background: #0e1814;
}
.test-health::before {
  content: "✓";
  display: block;
  margin-bottom: 7px;
  color: #fff;
  font-weight: 900;
}
.test-health strong {
  display: block;
  color: #d4dfda;
  font-size: 11px;
}
.test-health span {
  display: block;
  margin-top: 4px;
  color: #71877d;
  font-size: 8px;
  line-height: 1.4;
}
