:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #edf2f5;
  color: #122027;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(5, 78, 70, 0.08), transparent 38%),
    linear-gradient(180deg, #f7fafb, #e7eef2);
}

button,
input {
  font: inherit;
}

button {
  min-height: 44px;
  border: 1px solid #b4c4cc;
  border-radius: 6px;
  background: #ffffff;
  color: #142028;
  cursor: pointer;
  padding: 0 18px;
  font-weight: 750;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

button:hover {
  border-color: #52727f;
  box-shadow: 0 8px 22px rgba(25, 44, 54, 0.08);
  transform: translateY(-1px);
}

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

button.primary {
  border-color: #096553;
  background: #096553;
  color: #ffffff;
}

.shell {
  width: min(1220px, calc(100vw - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.74fr);
  gap: 34px;
  align-items: center;
  padding: 32px 0;
}

.desktop-panel,
.phone-panel {
  display: grid;
  gap: 22px;
}

.desktop-panel {
  min-height: 720px;
  align-content: center;
}

.phone-panel {
  min-height: 720px;
  align-content: center;
}

.brand-row,
.phone-header,
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-row {
  justify-content: flex-start;
}

.mark {
  width: 42px;
  aspect-ratio: 1;
  border-radius: 9px;
  background: #122027;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 36px rgba(18, 32, 39, 0.16);
}

.mark span {
  width: 16px;
  aspect-ratio: 1;
  border: 2px solid #9ee7ce;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(158, 231, 206, 0.16);
}

.eyebrow {
  margin: 0 0 8px;
  color: #5b6c75;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
.summary {
  margin: 0;
}

h1 {
  max-width: 720px;
  font-size: clamp(2.6rem, 6.8vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.summary {
  max-width: 560px;
  margin-top: 16px;
  color: #3f535c;
  font-size: 1.1rem;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.status-grid div,
.challenge-box,
.receipt-panel,
.metrics div {
  border: 1px solid rgba(170, 190, 200, 0.9);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(26, 46, 56, 0.06);
}

.status-grid div {
  min-height: 88px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px;
}

.status-grid span,
.challenge-box label,
.metrics dt,
.panel-heading span {
  color: #62747d;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-grid strong {
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.command-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.command-row .primary {
  min-width: 220px;
}

.challenge-box {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.challenge-box input {
  width: 100%;
  border: 1px solid #c6d2da;
  border-radius: 4px;
  padding: 10px;
  color: #24333b;
}

.receipt-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.panel-heading strong {
  color: #096553;
  font-size: 0.9rem;
}

.receipt {
  min-height: 210px;
  max-height: 290px;
  overflow: auto;
  margin: 0;
  border: 1px solid #d7e1e6;
  border-radius: 6px;
  background: #f8fbfc;
  padding: 12px;
  color: #23323a;
  white-space: pre-wrap;
}

.phone-shell {
  width: min(100%, 420px);
  justify-self: center;
  border: 1px solid rgba(30, 48, 56, 0.16);
  border-radius: 34px;
  background: #111b21;
  padding: 12px;
  box-shadow: 0 30px 80px rgba(17, 27, 33, 0.28);
}

.phone-speaker {
  width: 76px;
  height: 5px;
  margin: 4px auto 12px;
  border-radius: 999px;
  background: #2f3f47;
}

.phone-screen {
  min-height: 650px;
  display: grid;
  align-content: start;
  gap: 16px;
  border-radius: 24px;
  background: #f8fbfc;
  padding: 20px;
}

.secure-dot {
  width: 12px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #15a075;
  box-shadow: 0 0 0 8px rgba(21, 160, 117, 0.14);
}

.phone-state {
  min-height: 42px;
  border: 1px solid #d2dde2;
  border-radius: 8px;
  background: #ffffff;
  color: #465c66;
  display: grid;
  align-content: center;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 700;
}

.phone-state[data-state="active"] {
  border-color: #8fb8c4;
  background: #eef7f8;
  color: #195664;
}

.phone-state[data-state="success"] {
  border-color: #90cdb5;
  background: #eef9f4;
  color: #096553;
}

.phone-state[data-state="error"] {
  border-color: #dda8a8;
  background: #fff3f3;
  color: #8a2c2c;
}

.touch-surface {
  position: relative;
  min-height: 310px;
  border: 1px solid #94b1bd;
  border-radius: 18px;
  background:
    radial-gradient(circle at center, rgba(9, 101, 83, 0.22), transparent 38%),
    linear-gradient(160deg, #ffffff 0%, #e8f0f3 100%);
  display: grid;
  place-items: center;
  user-select: none;
  touch-action: none;
  overflow: hidden;
}

.touch-surface::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(76, 112, 126, 0.18);
  border-radius: 14px;
}

.touch-surface.active .fingerprint {
  transform: scale(1.06);
  box-shadow: 0 0 0 22px rgba(9, 101, 83, 0.12);
}

.touch-surface.active .fingerprint span {
  border-color: #096553;
}

.fingerprint {
  position: relative;
  width: 154px;
  aspect-ratio: 1;
  border: 1px solid rgba(94, 122, 132, 0.24);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.fingerprint span {
  position: absolute;
  border: 3px solid #46656f;
  border-bottom-color: transparent;
  border-radius: 48% 48% 42% 42%;
}

.fingerprint span:nth-child(1) {
  width: 42px;
  height: 58px;
}

.fingerprint span:nth-child(2) {
  width: 70px;
  height: 92px;
}

.fingerprint span:nth-child(3) {
  width: 98px;
  height: 124px;
}

.fingerprint span:nth-child(4) {
  width: 124px;
  height: 146px;
}

#touch-label {
  position: absolute;
  bottom: 28px;
  font-weight: 700;
  color: #20343c;
}

.phone-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.metrics {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.metrics div {
  min-height: 76px;
  display: grid;
  align-content: center;
  padding: 12px;
}

.metrics dd {
  margin: 4px 0 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .phone-panel {
    order: -1;
  }

  .desktop-panel,
  .phone-panel {
    min-height: auto;
  }

  .phone-panel {
    border-left: 0;
    padding: 6px 0 0;
  }

  .status-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .phone-shell {
    width: 100%;
  }

  .phone-screen {
    min-height: 610px;
  }

  h1 {
    font-size: 3rem;
  }
}
