:root {
  color-scheme: light;
  --ink: #17213b;
  --muted: #61708f;
  --line: #dce3ef;
  --surface: #ffffff;
  --soft: #f4f7fb;
  --blue: #0866ff;
  --navy: #083b8a;
  --gold: #ffc439;
  --green: #087f5b;
  --red: #c92a2a;
  --shadow: 0 18px 50px rgba(24, 45, 82, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f7f9fd 0, #eef3f9 100%);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  min-height: 100vh;
}

button,
select {
  font: inherit;
}

button,
select,
a {
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

button:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(8, 102, 255, 0.25);
  outline-offset: 2px;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.site-header {
  align-items: center;
  background: #081c3a;
  color: #fff;
  display: flex;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 5vw;
}

.home-link {
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

.environment-label {
  color: #b8c9e6;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

main {
  margin: 0 auto;
  max-width: 1180px;
  padding: 54px 24px 80px;
}

.hero {
  margin-bottom: 32px;
  max-width: 760px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 4.25rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
  margin: 7px 0 18px;
}

.hero > p:last-child {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.eyebrow {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.checkout-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 26px;
}

.card h2 {
  letter-spacing: -0.025em;
  margin: 4px 0 20px;
}

.muted,
.field-note {
  color: var(--muted);
  line-height: 1.55;
}

.product-art {
  align-items: center;
  background: linear-gradient(135deg, #071d40, #0d70dc);
  border-radius: 13px;
  color: white;
  display: flex;
  font-size: 0.8rem;
  font-weight: 800;
  gap: 10px;
  justify-content: center;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  min-height: 110px;
}

.product-art span:nth-child(2) {
  color: var(--gold);
  font-size: 1.5rem;
}

.quantity-row,
.totals > div,
.signal-results > div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.quantity-row {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
}

.stepper {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  gap: 16px;
  padding: 3px;
}

.stepper button {
  background: var(--soft);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  height: 34px;
  width: 34px;
}

.stepper button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.totals,
.signal-results,
.order-evidence dl {
  margin: 22px 0 0;
}

.totals > div,
.signal-results > div {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.totals dt,
.signal-results dt,
.order-evidence dt {
  color: var(--muted);
}

.totals dd,
.signal-results dd {
  font-weight: 750;
  margin: 0;
  text-align: right;
}

.totals .grand-total {
  color: var(--ink);
  font-size: 1.15rem;
  padding-top: 17px;
}

.configuration-card label {
  color: var(--muted);
  display: block;
  font-size: 0.87rem;
  font-weight: 700;
  margin-top: 15px;
}

select {
  background: #fff;
  border: 1px solid #bfc9da;
  border-radius: 10px;
  color: var(--ink);
  display: block;
  margin-top: 7px;
  padding: 11px 12px;
  width: 100%;
}

.secondary-button,
.observation-actions button,
.place-order-button {
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 750;
  padding: 12px 16px;
}

.secondary-button {
  background: #e8f0ff;
  color: #064ca9;
  margin-top: 20px;
  width: 100%;
}

.secondary-button:hover,
.observation-actions button:hover,
.place-order-button:hover {
  transform: translateY(-1px);
}

.field-note {
  font-size: 0.82rem;
  margin-bottom: 0;
}

.expectation-card[data-action="PAY"] {
  border-top: 5px solid var(--blue);
}

.expectation-card[data-action="CONTINUE"] {
  border-top: 5px solid var(--green);
}

.observation-actions {
  align-items: center;
  background: var(--soft);
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding: 12px;
}

.observation-actions span {
  color: var(--muted);
  font-size: 0.84rem;
  margin-right: auto;
}

.observation-actions button {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy);
  padding: 8px 10px;
}

.payment-card {
  min-height: 360px;
}

#paypalButtonContainer {
  margin: 26px auto 10px;
  max-width: 430px;
}

.status {
  border-radius: 10px;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 16px;
  min-height: 24px;
  padding: 11px 12px;
}

.status[data-tone="error"] {
  background: #fff0f0;
  color: var(--red);
}

.status[data-tone="success"] {
  background: #eafaf4;
  color: var(--green);
}

.status[data-tone="warning"] {
  background: #fff8e1;
  color: #8a5a00;
}

.matrix-card,
.diagnostics-card,
.claims-card {
  margin-top: 20px;
}

.claims-card ul {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
  padding-left: 22px;
}

.claims-card li + li {
  margin-top: 9px;
}

.claims-card strong {
  color: var(--ink);
}

.table-scroll {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  font-size: 0.88rem;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 10px;
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
}

tr.current td {
  background: #edf4ff;
}

.diagnostics-card summary {
  cursor: pointer;
  font-weight: 800;
}

pre {
  background: #0c1930;
  border-radius: 12px;
  color: #dceaff;
  font-size: 0.78rem;
  line-height: 1.5;
  overflow: auto;
  padding: 16px;
  white-space: pre-wrap;
  word-break: break-word;
}

.review-main {
  max-width: 980px;
}

.review-hero {
  max-width: 720px;
}

.review-card {
  padding: 32px;
}

.timeline {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 36px;
}

.timeline div {
  border-top: 3px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  padding-top: 11px;
}

.timeline span {
  display: block;
  margin-bottom: 5px;
}

.timeline .done,
.timeline .current {
  border-color: var(--green);
  color: var(--green);
}

.review-columns {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr 1fr;
}

.order-evidence {
  background: var(--soft);
  border-radius: 14px;
  padding: 20px;
}

.order-evidence dl > div {
  border-top: 1px solid var(--line);
  padding: 11px 0;
}

.order-evidence dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}

.place-order-button {
  background: var(--gold);
  color: #111820;
  font-size: 1rem;
  margin-top: 28px;
  width: 100%;
}

.place-order-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.confirmation {
  background: #effbf6;
  border-color: #a7e6cd;
}

.link-button {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  width: auto;
}

[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  main {
    padding: 34px 16px 60px;
  }

  .checkout-grid,
  .review-columns {
    grid-template-columns: 1fr;
  }

  .site-header {
    padding: 0 18px;
  }

  .card,
  .review-card {
    border-radius: 14px;
    padding: 20px;
  }

  .timeline strong {
    display: none;
  }
}
