:root {
  color-scheme: dark;
  --surface: #0d0f12;
  --surface-raised: #14171c;
  --surface-soft: #191d24;
  --surface-strong: #222731;
  --text: #f3f0e8;
  --text-soft: #c4c0b7;
  --muted: #8e9097;
  --line: rgb(243 240 232 / 14%);
  --line-strong: rgb(243 240 232 / 28%);
  --accent: #8198ff;
  --accent-bright: #aab8ff;
  --accent-wash: rgb(129 152 255 / 12%);
  --success: #72d6a2;
  --warning: #efbd72;
  --danger: #ff8e8e;
  --shadow: rgb(0 0 0 / 42%);
  --theme-color: #0d0f12;
  --sans: "Instrument Sans", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Baskerville, Georgia, serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shell: min(1320px, calc(100vw - 64px));
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

html[data-theme="light"] {
  color-scheme: light;
  --surface: #f3efe7;
  --surface-raised: #ebe6dc;
  --surface-soft: #e1dbd0;
  --surface-strong: #d5cec1;
  --text: #14161b;
  --text-soft: #41434a;
  --muted: #6c6d72;
  --line: rgb(20 22 27 / 14%);
  --line-strong: rgb(20 22 27 / 28%);
  --accent: #3459dd;
  --accent-bright: #2545bc;
  --accent-wash: rgb(52 89 221 / 10%);
  --success: #176c46;
  --warning: #8b5816;
  --danger: #a52c32;
  --shadow: rgb(37 33 25 / 16%);
  --theme-color: #f3efe7;
}

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

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--surface);
  scrollbar-gutter: stable;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 82% 10%, var(--accent-wash), transparent 31rem),
    var(--surface);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background-color 280ms ease, color 280ms ease;
}

button,
input,
select {
  font: inherit;
}

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

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.clipboard-fallback {
  position: fixed;
  top: 0;
  left: -9999px;
  opacity: 0;
}

::selection {
  background: var(--accent);
  color: #fff;
}

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 11px 15px;
  border-radius: 4px;
  background: var(--text);
  color: var(--surface);
  font-size: 0.86rem;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 84px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-size: 0.92rem;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--text);
  color: var(--surface);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 8%);
}

.brand-mark b {
  font-size: 0.94rem;
  font-weight: 760;
  line-height: 1;
}

.brand-mark i {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.brand-name sup {
  position: relative;
  top: -0.36em;
  margin-left: 2px;
  color: var(--muted);
  font-size: 0.5em;
}

.header-context {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.context-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--success) 13%, transparent);
}

.mode-badge {
  margin-left: 4px;
  padding: 4px 7px;
  border: 1px solid color-mix(in srgb, var(--warning) 44%, transparent);
  border-radius: 2px;
  background: color-mix(in srgb, var(--warning) 10%, transparent);
  color: var(--warning);
  letter-spacing: 0.06em;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.theme-toggle:hover {
  border-color: var(--line);
  background: var(--surface-raised);
  color: var(--text);
}

.theme-icon {
  position: relative;
  display: block;
  width: 15px;
  height: 15px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  box-shadow: inset -4px -3px 0 0 currentColor;
}

html[data-theme="light"] .theme-icon {
  border-radius: 2px;
  box-shadow: inset 0 0 0 4px var(--surface);
  transform: rotate(45deg) scale(0.74);
}

.no-js .theme-toggle {
  visibility: hidden;
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(520px, 1.22fr);
  gap: clamp(56px, 8vw, 132px);
  align-items: start;
  padding-block: clamp(64px, 8vw, 124px) 96px;
}

.intro {
  position: sticky;
  top: 54px;
  padding-top: 16px;
}

.eyebrow,
.section-label {
  margin: 0;
  color: var(--accent-bright);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.115em;
  text-transform: uppercase;
}

.intro h1 {
  max-width: 700px;
  margin: 19px 0 26px;
  font-size: clamp(3.35rem, 6vw, 6.7rem);
  font-weight: 570;
  letter-spacing: -0.075em;
  line-height: 0.91;
  text-wrap: balance;
}

.intro h1 em {
  color: var(--accent-bright);
  font-family: var(--serif);
  font-weight: 400;
}

.intro-copy {
  max-width: 510px;
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(1.04rem, 1.6vw, 1.26rem);
  line-height: 1.62;
}

.support-notes {
  display: grid;
  gap: 0;
  max-width: 520px;
  margin: 42px 0 0;
  border-top: 1px solid var(--line);
}

.support-notes div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.support-notes dt {
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.support-notes dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.personal-note {
  max-width: 500px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.58;
}

.checkout {
  position: relative;
  min-width: 0;
  padding: clamp(25px, 4vw, 46px);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: color-mix(in srgb, var(--surface-raised) 92%, transparent);
  box-shadow: 0 28px 80px var(--shadow);
  isolation: isolate;
}

.checkout::before {
  position: absolute;
  top: -1px;
  left: clamp(25px, 4vw, 46px);
  width: 84px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 65%, transparent);
  content: "";
}

.checkout-heading,
.payment-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.checkout-heading h2,
.payment-header h2 {
  margin: 8px 0 0;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.secure-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  white-space: nowrap;
}

.secure-note i {
  position: relative;
  display: block;
  width: 9px;
  height: 8px;
  border: 1px solid var(--success);
  border-radius: 2px;
}

.secure-note i::before {
  position: absolute;
  top: -5px;
  left: 1px;
  width: 5px;
  height: 5px;
  border: 1px solid var(--success);
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  content: "";
}

.signal-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 38px 0 44px;
  padding: 0;
  list-style: none;
}

.signal-line::before {
  position: absolute;
  top: 7px;
  right: 8%;
  left: 8%;
  z-index: -1;
  height: 1px;
  background: var(--line-strong);
  content: "";
}

.signal-line li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
  transition: color 220ms ease;
}

.signal-line li::before {
  width: 15px;
  height: 15px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface-raised);
  box-shadow: 0 0 0 5px var(--surface-raised);
  content: "";
  transition: border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.signal-line li > span {
  position: absolute;
  top: -3px;
  color: transparent;
  font-size: 0.55rem;
  pointer-events: none;
}

.signal-line strong {
  font-size: 0.68rem;
  font-weight: 680;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.signal-line li[data-state="complete"] {
  color: var(--text-soft);
}

.signal-line li[data-state="complete"]::before {
  border-color: var(--accent);
  background: var(--accent);
}

.signal-line li[data-state="current"] {
  color: var(--text);
}

.signal-line li[data-state="current"]::before {
  border-color: var(--accent-bright);
  background: var(--accent);
  box-shadow:
    0 0 0 5px var(--surface-raised),
    0 0 0 8px var(--accent-wash),
    0 0 24px color-mix(in srgb, var(--accent) 52%, transparent);
  animation: signal-pulse 2.4s ease-in-out infinite;
}

@keyframes signal-pulse {
  50% {
    box-shadow:
      0 0 0 5px var(--surface-raised),
      0 0 0 11px transparent,
      0 0 30px color-mix(in srgb, var(--accent) 64%, transparent);
  }
}

.form-message {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0 solid color-mix(in srgb, var(--danger) 35%, transparent);
  background: color-mix(in srgb, var(--danger) 8%, transparent);
  color: var(--danger);
  font-size: 0.84rem;
  line-height: 1.5;
}

.form-message:not(:empty) {
  min-height: 44px;
  margin-bottom: 26px;
  padding: 11px 13px;
  border-width: 1px;
  border-radius: 4px;
}

.form-section {
  padding: 0 0 28px;
}

.form-section + .form-section {
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.field-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.field-heading label {
  font-size: 0.87rem;
  font-weight: 680;
}

.field-heading > span {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.amount-control {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 83px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.amount-control:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
}

.amount-control[data-invalid="true"] {
  border-color: var(--danger);
}

.currency-symbol {
  margin-right: 12px;
  color: var(--muted);
  font-size: 1.85rem;
  font-weight: 500;
}

.amount-control input {
  min-width: 0;
  width: 100%;
  padding: 12px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: clamp(2.2rem, 6vw, 3.75rem);
  font-weight: 560;
  letter-spacing: -0.055em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.amount-control input::placeholder {
  color: color-mix(in srgb, var(--muted) 46%, transparent);
}

.preset-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.preset-row button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-soft);
  color: var(--text-soft);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 650;
  transition: border-color 170ms ease, background-color 170ms ease, color 170ms ease;
}

.preset-row button:hover,
.preset-row button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-wash);
  color: var(--accent-bright);
}

.field-help,
.field-error,
.submit-help,
.form-assurance {
  margin: 9px 0 0;
  font-size: 0.76rem;
  line-height: 1.5;
}

.field-help,
.submit-help,
.form-assurance {
  color: var(--muted);
}

.field-error {
  min-height: 1.15em;
  color: var(--danger);
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  content: "";
  pointer-events: none;
  transform: translateY(-72%) rotate(45deg);
}

select {
  width: 100%;
  min-height: 54px;
  padding: 0 46px 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  outline: 0;
  appearance: none;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

select:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
}

select:disabled {
  cursor: wait;
  opacity: 0.58;
}

select[aria-invalid="true"] {
  border-color: var(--danger);
}

.quote {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 13px 24px;
  align-items: end;
  margin: 0 0 28px;
  padding: 17px 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  border-radius: 5px;
  background: var(--accent-wash);
}

.quote-label {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote output {
  display: block;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.quote dl {
  display: flex;
  gap: 20px;
  margin: 0;
}

.quote dl div {
  text-align: right;
}

.quote dt,
.quote dd {
  margin: 0;
  font-size: 0.69rem;
}

.quote dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quote dd {
  color: var(--text-soft);
  font-family: var(--mono);
}

.quote > p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.quote[data-loading="true"] output {
  color: transparent;
}

.quote[data-loading="true"] output::after {
  display: block;
  width: min(240px, 75%);
  height: 15px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--line), var(--line-strong), var(--line));
  background-size: 220% 100%;
  content: "";
  animation: quote-loading 1.2s linear infinite;
}

@keyframes quote-loading {
  to {
    background-position: -220% 0;
  }
}

.test-section {
  margin-top: 0;
}

.primary-action,
.secondary-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 680;
  transition: transform 180ms var(--ease-out), background-color 180ms ease, border-color 180ms ease;
}

.primary-action {
  min-height: 58px;
  padding: 0 19px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 13px 28px color-mix(in srgb, var(--accent) 20%, transparent);
}

.primary-action:hover:not(:disabled) {
  background: var(--accent-bright);
  transform: translateY(-2px);
}

.primary-action:disabled {
  cursor: wait;
  opacity: 0.64;
}

.action-arrow {
  font-size: 1.2rem;
  transition: transform 180ms var(--ease-out);
}

.primary-action:hover:not(:disabled) .action-arrow {
  transform: translate(2px, -2px);
}

.submit-help {
  text-align: center;
}

.form-assurance {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.payment-view {
  min-width: 0;
}

.payment-header {
  margin-bottom: 17px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 720;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-badge::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 11%, transparent);
}

.status-badge[data-tone="active"] {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--accent-bright);
}

.status-badge[data-tone="success"] {
  border-color: color-mix(in srgb, var(--success) 42%, transparent);
  color: var(--success);
}

.status-badge[data-tone="warning"] {
  border-color: color-mix(in srgb, var(--warning) 42%, transparent);
  color: var(--warning);
}

.status-badge[data-tone="danger"] {
  border-color: color-mix(in srgb, var(--danger) 42%, transparent);
  color: var(--danger);
}

.status-copy {
  margin: 0 0 26px;
  color: var(--text-soft);
  font-size: 0.93rem;
  line-height: 1.55;
}

.payment-amount {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 5px 5px 0 0;
  background: var(--accent-wash);
}

.payment-amount > span,
.watch-label {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-amount strong {
  max-width: calc(100% - 118px);
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: clamp(1.22rem, 3vw, 1.7rem);
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.payment-amount .copy-button {
  position: absolute;
  right: 18px;
  bottom: 20px;
}

.payment-details {
  margin: 0;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 5px 5px;
}

.detail-row {
  position: relative;
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 59px;
  padding: 12px 16px;
}

.detail-row + .detail-row {
  border-top: 1px solid var(--line);
}

.detail-row dt,
.detail-row dd {
  margin: 0;
}

.detail-row dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 680;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.detail-row dd {
  min-width: 0;
  color: var(--text-soft);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.detail-row code {
  font-family: var(--mono);
  font-size: 0.77rem;
  line-height: 1.55;
}

.copy-button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--surface-raised);
  color: var(--text-soft);
  cursor: pointer;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.copy-button:hover {
  border-color: var(--accent);
  background: var(--accent-wash);
  color: var(--accent-bright);
}

.payment-watch {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 20px;
  align-items: center;
  margin-top: 20px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-soft);
}

.payment-watch > div:first-child {
  display: grid;
  gap: 4px;
}

.payment-watch time {
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.payment-watch > p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.73rem;
}

.watch-signal {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 5px;
  height: 23px;
}

.watch-signal i {
  width: 3px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  animation: watch-signal 1.15s ease-in-out infinite alternate;
}

.watch-signal i:nth-child(2) {
  height: 12px;
  animation-delay: 120ms;
}

.watch-signal i:nth-child(3) {
  height: 18px;
  animation-delay: 240ms;
}

.watch-signal i:nth-child(4) {
  height: 23px;
  animation-delay: 360ms;
}

@keyframes watch-signal {
  to {
    opacity: 0.28;
    transform: scaleY(0.55);
  }
}

.checkout[data-terminal="true"] .watch-signal i {
  animation: none;
}

.checkout[data-success="true"] .watch-signal i {
  background: var(--success);
  opacity: 1;
}

.payment-warning {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.copy-status {
  min-height: 1.2em;
  margin: 11px 0 0;
  color: var(--success);
  font-size: 0.74rem;
}

.secondary-action {
  min-height: 50px;
  margin-top: 18px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-soft);
}

.secondary-action:hover {
  border-color: var(--accent);
  background: var(--accent-wash);
  color: var(--text);
}

.noscript-message {
  margin: 24px 0 0;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--danger) 36%, transparent);
  color: var(--danger);
  font-size: 0.86rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
}

.site-footer p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
}

.footer-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 3px;
  background: var(--text);
  color: var(--surface);
  font-size: 0.67rem;
  font-weight: 800;
}

.site-footer a {
  color: var(--text-soft);
  font-weight: 650;
}

.site-footer a:hover {
  color: var(--text);
}

@media (max-width: 1020px) {
  :root {
    --shell: min(760px, calc(100vw - 48px));
  }

  .page-shell {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .intro {
    position: static;
    padding-top: 0;
  }

  .intro h1 {
    max-width: 750px;
    font-size: clamp(4rem, 11vw, 6.7rem);
  }

  .intro-copy,
  .support-notes,
  .personal-note {
    max-width: 620px;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: calc(100vw - 28px);
  }

  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 72px;
  }

  .header-context {
    display: none;
  }

  .theme-toggle {
    padding-right: 4px;
  }

  .page-shell {
    gap: 43px;
    padding-block: 47px 66px;
  }

  .intro h1 {
    margin-top: 15px;
    font-size: clamp(3.25rem, 18vw, 5.2rem);
  }

  .support-notes {
    margin-top: 31px;
  }

  .checkout {
    padding: 24px 17px;
  }

  .checkout::before {
    left: 17px;
  }

  .checkout-heading,
  .payment-header {
    display: grid;
  }

  .secure-note {
    grid-row: 1;
    justify-self: end;
    margin-bottom: -28px;
  }

  .signal-line {
    gap: 4px;
    margin-block: 34px 38px;
  }

  .signal-line strong {
    font-size: 0.6rem;
  }

  .amount-control {
    min-height: 72px;
    padding-inline: 15px;
  }

  .currency-symbol {
    font-size: 1.5rem;
  }

  .amount-control input {
    font-size: 2.7rem;
  }

  .preset-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .field-heading > span {
    text-align: right;
  }

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

  .quote dl {
    justify-content: space-between;
  }

  .quote dl div {
    text-align: left;
  }

  .status-badge {
    justify-self: start;
  }

  .payment-amount {
    padding: 18px;
  }

  .payment-amount strong {
    max-width: 100%;
    padding-right: 0;
    font-size: 1.1rem;
  }

  .payment-amount .copy-button {
    position: static;
    justify-self: start;
    margin-top: 4px;
  }

  .detail-row {
    grid-template-columns: 1fr auto;
    gap: 7px 12px;
    padding-block: 15px;
  }

  .detail-row dt {
    grid-column: 1 / -1;
  }

  .detail-row dd {
    grid-column: 1;
  }

  .detail-row .copy-button {
    grid-column: 2;
  }

  .payment-watch {
    grid-template-columns: 1fr auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    min-height: 115px;
  }
}

@media (max-width: 370px) {
  .theme-toggle [data-theme-label] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .intro h1 {
    font-size: 3.2rem;
  }

  .secure-note {
    display: none;
  }

  .signal-line strong {
    letter-spacing: 0.035em;
  }
}

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