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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(19, 110, 246, 0.15), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, #f5f7fb 80%);
}

a {
  color: #136ef6;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.shell {
  margin: 0 auto;
  max-width: 1180px;
  padding: 42px 22px 64px;
}

.hero {
  align-items: end;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 28px;
}

.eyebrow {
  color: #136ef6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(34px, 6vw, 66px);
  letter-spacing: 0;
  line-height: 0.98;
  margin-bottom: 18px;
  max-width: 880px;
}

h2 {
  font-size: 24px;
  letter-spacing: 0;
  margin-bottom: 0;
}

.intro {
  color: #516179;
  font-size: 18px;
  line-height: 1.65;
  margin-bottom: 0;
  max-width: 760px;
}

.status-card,
.panel {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 28px 80px -56px rgba(15, 23, 42, 0.45);
}

.status-card {
  align-items: center;
  border-radius: 24px;
  display: flex;
  gap: 12px;
  min-width: 280px;
  padding: 18px;
}

.status-card strong,
.status-card span {
  display: block;
}

.status-card span {
  color: #64748b;
  font-size: 13px;
  margin-top: 3px;
}

.dot {
  background: #16a34a;
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.12);
  height: 11px;
  width: 11px;
}

.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(340px, 0.85fr) minmax(0, 1.15fr);
}

.result-grid {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.panel {
  border-radius: 28px;
  padding: 26px;
}

.section-title {
  margin-bottom: 20px;
}

.section-title.compact {
  margin-top: 24px;
}

label {
  display: block;
  margin-bottom: 16px;
}

label span {
  color: #334155;
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

input {
  background: #f8fafc;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  color: #0f172a;
  font: inherit;
  padding: 13px 14px;
  width: 100%;
}

input:focus {
  border-color: #136ef6;
  box-shadow: 0 0 0 4px rgba(19, 110, 246, 0.12);
  outline: none;
}

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

.check {
  align-items: center;
  display: flex;
  gap: 10px;
}

.check input {
  width: auto;
}

.check span {
  margin: 0;
}

.access-active {
  align-items: center;
  background: #f0fdf4;
  border: 1px solid rgba(22, 163, 74, 0.3);
  border-radius: 16px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 14px;
}

.access-active strong,
.access-active span {
  display: block;
}

.access-active span {
  color: #64748b;
  font-size: 13px;
  margin-top: 3px;
}

.text-button {
  background: transparent;
  color: #136ef6;
  min-height: auto;
  padding: 0;
}

.product {
  display: grid;
  gap: 22px;
}

.product-image {
  align-items: end;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(19, 110, 246, 0.85), rgba(17, 24, 39, 0.92)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.4), transparent 16rem);
  border-radius: 24px;
  color: white;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  padding: 22px;
  text-transform: uppercase;
}

.product-copy p:not(.eyebrow) {
  color: #516179;
  line-height: 1.6;
  margin: 12px 0 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.actions.inline {
  margin-top: 18px;
}

button,
.link-button,
.back-link {
  align-items: center;
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.primary {
  background: #136ef6;
  color: white;
}

.secondary,
.back-link {
  background: #e8eef8;
  color: #0f172a;
}

.output {
  background: #f8fafc;
  border: 1px solid #dbe3ef;
  border-radius: 20px;
  overflow: hidden;
  padding: 16px;
}

.muted {
  color: #64748b;
  margin: 0;
}

.message {
  background: white;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  padding: 14px;
}

.message strong,
.message span {
  display: block;
}

.message span {
  color: #64748b;
  font-size: 13px;
  margin-top: 4px;
}

.message.success {
  border-color: rgba(22, 163, 74, 0.3);
  background: #f0fdf4;
}

.message.error {
  border-color: rgba(220, 38, 38, 0.3);
  background: #fef2f2;
}

.details {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

.details div {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
}

.details dt {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.details dd {
  color: #0f172a;
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}

pre {
  background: #0f172a;
  border-radius: 14px;
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1.6;
  margin: 16px 0 0;
  overflow-x: auto;
  padding: 14px;
}

.result-shell h1 {
  max-width: 720px;
}

@media (max-width: 860px) {
  .hero,
  .grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .status-card {
    min-width: 0;
  }

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