:root {
  --color-black-haze: #f3f5f5;
  --color-porcelain: #e7eceb;
  --color-nebula-100: #dbe3e1;
  --color-nebula-200: #d0dad7;
  --color-cascade: #8aa39d;
  --color-sirocco: #687875;
  --color-corduroy: #596764;
  --color-nandor: #4b5654;
  --color-white: #ffffff;
  --color-outer-space-200: #29302f;
  --edge-stream-page-bg: var(--color-black-haze);
  --edge-stream-surface-elevated: var(--color-white);
  --edge-stream-border-subtle: var(--color-nebula-200);
  --shadow-soft: 0 20px 45px rgba(41, 48, 47, 0.08);
  --radius-sm: 0.375rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --font-sans: "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --line-height-relaxed: 1.6;
  --line-height-snug: 1.3;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--edge-stream-page-bg);
}

body {
  min-height: 100svh;
  margin: 0;
  background: var(--edge-stream-page-bg);
  color: var(--color-sirocco);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: var(--line-height-relaxed);
}

a {
  color: var(--color-sirocco);
  text-underline-offset: 0.18em;
}

.page-shell {
  display: flex;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

.compat-loader-shell {
  padding: max(1.5rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left));
}

.loader-only {
  display: flex;
  min-height: 8rem;
  align-items: center;
  justify-content: center;
}

.gate-card {
  width: 100%;
  max-width: 21rem;
  border: 1px solid var(--edge-stream-border-subtle);
  border-radius: var(--radius-xl);
  background: var(--edge-stream-surface-elevated);
  box-shadow: var(--shadow-soft);
  padding: 1.25rem;
}

@media (min-width: 600px) {
  .gate-card {
    max-width: 37.5rem;
    padding: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .gate-card {
    max-width: 64rem;
  }
}

@media (min-width: 1200px) {
  .gate-card {
    max-width: 75rem;
  }
}

.support-check-card {
  max-width: 45rem;
}

.logo {
  display: block;
  width: 5.25rem;
  height: auto;
  margin: 0 auto 1.25rem;
}

.title-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.title-divider::before,
.title-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--edge-stream-border-subtle);
}

.title-divider h1 {
  max-width: 24ch;
  margin: 0;
  color: var(--color-sirocco);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: var(--line-height-snug);
  text-align: center;
}

.check-hero {
  text-align: center;
}

.check-hero h1 {
  max-width: 22ch;
  margin: 0.75rem auto 0;
  color: var(--color-sirocco);
  font-size: clamp(1.3rem, 3.2vw, 2rem);
  font-weight: 300;
  line-height: var(--line-height-snug);
}

.result-mark {
  display: inline-flex;
  min-width: 3.25rem;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--edge-stream-border-subtle);
  border-radius: 999px;
  background: var(--color-black-haze);
  color: var(--color-corduroy);
  font-weight: 600;
}

.result-note {
  max-width: 31rem;
  margin: 0.85rem auto 0;
  color: var(--color-nandor);
  font-weight: 500;
}

.support-check-card[data-outcome="ready"] .result-mark {
  background: var(--color-nebula-100);
}

.support-check-card[data-outcome="blocked"] .result-mark,
.support-check-card[data-outcome="cusp"] .result-mark {
  background: var(--color-porcelain);
}

.lead {
  max-width: 48rem;
  margin: 1rem auto 0;
  color: var(--color-corduroy);
  text-align: center;
}

.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  color: var(--color-sirocco);
  font-weight: 500;
}

.loader-dots {
  display: flex;
  gap: 0.5rem;
}

.loader-dots span {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: var(--color-cascade);
  animation: dot-pulse 1.2s ease-in-out infinite;
}

.loader-dots span:nth-child(2) {
  animation-delay: 200ms;
}

.loader-dots span:nth-child(3) {
  animation-delay: 400ms;
}

@keyframes dot-pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

@media (min-width: 600px) {
  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.info-card,
.details-list,
.support-card {
  border: 1px solid var(--edge-stream-border-subtle);
  border-radius: var(--radius-lg);
  background: var(--color-white);
}

.info-card,
.support-card {
  padding: 1rem;
}

.info-card h2,
.support-card h2 {
  margin: 0 0 0.4rem;
  color: var(--color-nandor);
  font-size: 0.95rem;
  font-weight: 500;
}

.info-card p,
.support-card p {
  margin: 0;
}

.support-check-card[data-outcome="ready"] .status-pill {
  background: var(--color-nebula-100);
  color: var(--color-corduroy);
}

.support-check-card[data-outcome="cusp"] .status-pill,
.support-check-card[data-outcome="blocked"] .status-pill {
  background: var(--color-porcelain);
  color: var(--color-nandor);
}

.status-pill {
  width: fit-content;
  margin: 0 auto;
  border: 1px solid var(--edge-stream-border-subtle);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
}

.decision-panel {
  margin-top: 1.25rem;
  border-top: 1px solid var(--edge-stream-border-subtle);
  border-bottom: 1px solid var(--edge-stream-border-subtle);
  padding: 1rem 0;
}

@media (min-width: 600px) {
  .decision-panel {
    padding: 1.25rem 0;
  }
}

.decision-panel p {
  margin: 0.5rem 0 0;
}

.decision-headline {
  color: var(--color-outer-space-200);
  font-size: 1rem;
  font-weight: 600;
}

.next-step-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.next-step-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.next-step-list span {
  display: inline-flex;
  width: 1.75rem;
  height: 1.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--edge-stream-border-subtle);
  border-radius: 999px;
  background: var(--color-black-haze);
  color: var(--color-nandor);
  font-size: 0.78rem;
  font-weight: 600;
}

.next-step-list p {
  margin: 0;
}

.check-grid {
  margin-top: 1rem;
}

.check-row-card h2 {
  color: var(--color-corduroy);
}

.check-row-card p {
  color: var(--color-sirocco);
}

.details-list {
  overflow: hidden;
  margin-top: 1.25rem;
}

.detail-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--edge-stream-border-subtle);
}

.detail-row:first-child {
  border-top: 0;
}

@media (min-width: 600px) {
  .detail-row {
    grid-template-columns: minmax(10rem, 0.7fr) minmax(0, 1fr);
    align-items: center;
  }
}

.detail-label {
  color: var(--color-corduroy);
  font-weight: 500;
}

.detail-value {
  color: var(--color-sirocco);
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

@media (min-width: 600px) {
  .actions {
    flex-direction: row;
    justify-content: center;
  }
}

.button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  background: var(--color-cascade);
  color: var(--color-white);
  font-weight: 500;
  text-align: center;
  text-decoration: none;
}

.button-secondary {
  border-color: var(--edge-stream-border-subtle);
  background: var(--color-white);
  color: var(--color-sirocco);
}

details {
  margin-top: 1rem;
  border: 1px solid var(--edge-stream-border-subtle);
  border-radius: var(--radius-lg);
  background: var(--color-white);
}

summary {
  cursor: pointer;
  padding: 0.85rem 1rem;
  color: var(--color-nandor);
  font-weight: 500;
}

.details-panel {
  border-top: 1px solid var(--edge-stream-border-subtle);
  padding: 0 1rem 1rem;
}

.details-panel ul,
.details-panel ol {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.device-compat-section {
  margin-top: 1.25rem;
}

.alternative-detail {
  margin-top: 1rem;
  background: var(--color-black-haze);
}

.plain-list {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.section-kicker {
  margin: 0.9rem 0 0.35rem;
  color: var(--color-nandor);
  font-size: 0.78rem;
  font-weight: 500;
}

.section-kicker:first-child {
  margin-top: 0;
}

.device-compat-section span {
  color: var(--color-sirocco);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
