:root {
  --ink: #10251f;
  --paper: #f2efe5;
  --cream: #fbf9f1;
  --mint: #9dffd7;
  --green: #0d674f;
  --line: rgba(16, 37, 31, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-geist-sans), Arial, sans-serif;
}

button,
a {
  font: inherit;
}

main {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  background-image: linear-gradient(rgba(16, 37, 31, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 37, 31, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
}

.ambient-one {
  width: 520px;
  height: 520px;
  top: -300px;
  right: -130px;
  background: radial-gradient(circle, rgba(157, 255, 215, 0.55), transparent 68%);
}

.ambient-two {
  width: 430px;
  height: 430px;
  top: 540px;
  left: -280px;
  background: radial-gradient(circle, rgba(13, 103, 79, 0.17), transparent 68%);
}

nav,
.hero,
.how-it-works,
footer {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

nav {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 20px;
}

.brand-mark,
.service-logo {
  display: grid;
  place-items: center;
  color: var(--mint);
  background: var(--ink);
  border-radius: 10px;
  letter-spacing: -0.08em;
  font-weight: 900;
}

.brand-mark {
  width: 38px;
  height: 38px;
  font-size: 13px;
}

.privacy-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  background: rgba(251, 249, 241, 0.6);
  border-radius: 99px;
  color: #4e625b;
  font-size: 12px;
  font-weight: 650;
}

.privacy-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(13, 103, 79, 0.11);
}

.hero {
  padding: 88px 0 102px;
  text-align: center;
}

.eyebrow,
.service-label,
.status-kicker,
.detail span,
.live-label,
.section-number {
  font-family: var(--font-geist-mono), monospace;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: 11px;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

h1 {
  margin: 20px auto 22px;
  max-width: 840px;
  font-size: clamp(48px, 7.2vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.075em;
  font-weight: 780;
}

h1 span {
  display: block;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.055em;
}

.lede {
  max-width: 620px;
  margin: 0 auto 46px;
  color: #53665f;
  font-size: 17px;
  line-height: 1.65;
}

.result-card {
  width: min(780px, 100%);
  margin: 0 auto;
  text-align: left;
  border: 1px solid rgba(16, 37, 31, 0.16);
  border-radius: 24px;
  background: rgba(251, 249, 241, 0.92);
  box-shadow: 0 30px 80px rgba(31, 48, 42, 0.13);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.result-available {
  border-color: rgba(13, 103, 79, 0.45);
}

.result-blocked {
  border-color: rgba(178, 73, 48, 0.45);
}

.card-topline,
.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-topline {
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}

.service-identity {
  display: flex;
  align-items: center;
  gap: 13px;
}

.service-logo {
  width: 46px;
  height: 46px;
  font-size: 15px;
}

.service-identity div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.service-label {
  font-size: 8px;
  color: #77867f;
}

.service-identity strong {
  font-size: 17px;
  letter-spacing: -0.025em;
}

.live-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #607069;
  font-size: 9px;
}

.live-label span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.8s infinite;
}

.status-block {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 20px;
  align-items: center;
  padding: 38px 42px 34px;
}

.status-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: var(--ink);
  color: var(--mint);
  font-size: 35px;
  font-weight: 700;
}

.result-blocked .status-icon {
  color: #fff4eb;
  background: #9e3f2c;
}

.spinner {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 3px solid rgba(157, 255, 215, 0.25);
  border-top-color: var(--mint);
  animation: spin 0.8s linear infinite;
}

.status-kicker {
  display: block;
  color: var(--green);
  font-size: 9px;
  margin-bottom: 7px;
}

.status-block h2 {
  margin: 0 0 5px;
  font-size: clamp(25px, 4vw, 34px);
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.status-block p {
  margin: 0;
  color: #61736c;
  line-height: 1.55;
  font-size: 14px;
}

.details-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 1fr;
  margin: 0 26px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(228, 231, 218, 0.45);
}

.detail {
  min-width: 0;
  padding: 17px 20px;
}

.detail + .detail {
  border-left: 1px solid var(--line);
}

.detail span {
  display: block;
  color: #7d8a84;
  font-size: 8px;
  margin-bottom: 7px;
}

.detail strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.card-actions {
  padding: 24px 26px 27px;
}

button {
  border: 0;
  border-radius: 11px;
  background: var(--ink);
  color: white;
  padding: 13px 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-2px);
  background: var(--green);
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(13, 103, 79, 0.35);
  outline-offset: 3px;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.refresh-icon {
  font-size: 18px;
  line-height: 0.7;
}

.checked-time {
  color: #7a8882;
  font-family: var(--font-geist-mono), monospace;
  font-size: 10px;
}

.fine-print {
  max-width: 620px;
  margin: 22px auto 0;
  color: #708079;
  font-size: 11px;
  line-height: 1.55;
}

.how-it-works {
  display: grid;
  grid-template-columns: 0.85fr 1.8fr;
  gap: 80px;
  padding: 82px 0;
  border-top: 1px solid var(--line);
}

.section-number {
  color: var(--green);
  font-size: 10px;
}

.how-it-works h2 {
  margin: 12px 0 0;
  max-width: 290px;
  font-size: 37px;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.steps article {
  border-top: 1px solid var(--ink);
  padding-top: 20px;
}

.step-dot {
  width: 9px;
  height: 9px;
  display: block;
  border-radius: 50%;
  background: var(--mint);
  border: 2px solid var(--ink);
  margin-bottom: 35px;
}

.steps h3 {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: -0.025em;
}

.steps p {
  margin: 0;
  color: #607169;
  font-size: 13px;
  line-height: 1.55;
}

footer {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: #6d7b75;
  font-family: var(--font-geist-mono), monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13, 103, 79, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(13, 103, 79, 0); }
}

@media (max-width: 760px) {
  nav,
  .hero,
  .how-it-works,
  footer {
    width: min(100% - 30px, 1120px);
  }

  nav {
    height: 76px;
  }

  .privacy-pill {
    font-size: 0;
  }

  .privacy-pill::after {
    content: "Private";
    font-size: 11px;
  }

  .hero {
    padding: 62px 0 72px;
  }

  h1 {
    font-size: clamp(43px, 14vw, 66px);
  }

  .lede {
    font-size: 15px;
    margin-bottom: 34px;
  }

  .card-topline {
    padding: 18px;
  }

  .status-block {
    grid-template-columns: 54px 1fr;
    padding: 29px 20px 27px;
    gap: 15px;
  }

  .status-icon {
    width: 54px;
    height: 54px;
    border-radius: 17px;
    font-size: 27px;
  }

  .details-grid {
    grid-template-columns: 1fr;
    margin: 0 18px;
  }

  .detail + .detail {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .card-actions {
    padding: 20px 18px 22px;
  }

  .how-it-works {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 64px 0;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .step-dot {
    margin-bottom: 22px;
  }

  footer {
    padding: 24px 0;
    gap: 16px;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Multi-service checker */
.network-bar {
  width: min(900px, 100%);
  margin: 0 auto 22px;
  padding: 19px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(251, 249, 241, 0.82);
}

.network-heading,
.network-details {
  display: flex;
  align-items: center;
}

.network-heading {
  gap: 14px;
  min-width: 0;
}

.network-heading div,
.network-details div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.network-pulse {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(13, 103, 79, 0.1);
}

.network-heading small,
.network-details span {
  color: #7d8a84;
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.network-heading strong,
.network-details strong {
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.network-details {
  gap: 0;
}

.network-details div {
  min-width: 150px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.service-grid {
  width: min(900px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  text-align: left;
}

.service-card {
  min-height: 300px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(16, 37, 31, 0.16);
  border-radius: 20px;
  background: rgba(251, 249, 241, 0.94);
  box-shadow: 0 18px 44px rgba(31, 48, 42, 0.07);
  transition: border-color 0.3s ease, transform 0.25s ease;
}

.service-card:hover {
  transform: translateY(-3px);
}

.service-available {
  border-color: rgba(13, 103, 79, 0.48);
}

.service-blocked {
  border-color: rgba(158, 63, 44, 0.55);
}

.service-offline,
.service-incompatible {
  border-color: rgba(141, 105, 45, 0.48);
}

.service-card-top,
.service-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-card-top {
  margin-bottom: 25px;
}

.service-number {
  color: #9aa49f;
  font-family: var(--font-geist-mono), monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.service-name-row {
  align-items: flex-end;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.service-name-row h2 {
  margin: 4px 0 0;
  font-size: 25px;
  letter-spacing: -0.055em;
}

.status-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 99px;
  background: rgba(16, 37, 31, 0.06);
  color: #65756e;
  font-family: var(--font-geist-mono), monospace;
  font-size: 7px;
  font-weight: 750;
  letter-spacing: 0.09em;
}

.status-chip span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #87948e;
}

.service-available .status-chip {
  color: var(--green);
  background: rgba(13, 103, 79, 0.08);
}

.service-available .status-chip span {
  background: var(--green);
}

.service-blocked .status-chip {
  color: #9e3f2c;
  background: rgba(158, 63, 44, 0.08);
}

.service-blocked .status-chip span {
  background: #9e3f2c;
}

.service-offline .status-chip,
.service-incompatible .status-chip {
  color: #846124;
  background: rgba(132, 97, 36, 0.09);
}

.service-offline .status-chip span,
.service-incompatible .status-chip span {
  background: #9c742e;
}

.service-result {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 14px;
  padding: 24px 0 20px;
}

.service-result .status-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  font-size: 24px;
}

.service-blocked .status-icon {
  color: #fff4eb;
  background: #9e3f2c;
}

.service-offline .status-icon,
.service-incompatible .status-icon {
  color: #fff6df;
  background: #8f6b2b;
}

.service-result h3 {
  margin: 0 0 4px;
  font-size: 17px;
  letter-spacing: -0.035em;
}

.service-result p {
  margin: 0;
  color: #65766f;
  font-size: 12px;
  line-height: 1.45;
}

.manual-button,
.confirm-actions,
.text-button {
  margin-top: auto;
}

.manual-button {
  width: 100%;
  justify-content: space-between;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.confirm-actions button {
  justify-content: center;
  padding-inline: 10px;
  font-size: 11px;
}

.button-secondary {
  color: var(--ink);
  background: rgba(16, 37, 31, 0.08);
}

.button-secondary:hover:not(:disabled) {
  color: white;
  background: #9e3f2c;
}

.text-button {
  padding: 0;
  align-self: flex-start;
  color: var(--green);
  background: transparent;
  font-size: 12px;
}

.text-button:hover:not(:disabled) {
  transform: none;
  color: var(--ink);
  background: transparent;
}

.service-host {
  display: block;
  margin-top: auto;
  color: #8a9690;
  font-family: var(--font-geist-mono), monospace;
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.all-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
}

@media (max-width: 760px) {
  .network-bar,
  .network-details {
    align-items: stretch;
    flex-direction: column;
  }

  .network-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--line);
  }

  .network-details div {
    min-width: 0;
    padding: 15px 10px 0 0;
    border-left: 0;
  }

  .network-details div + div {
    padding-left: 16px;
    border-left: 1px solid var(--line);
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 290px;
  }

  .status-chip {
    max-width: 150px;
  }

  .all-actions {
    flex-direction: column;
  }
}

/* Live Latency & Diagnostic Report Styles */
.ping-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(13, 103, 79, 0.12);
  color: #065f46;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  border: 1px solid rgba(13, 103, 79, 0.2);
  margin-left: 6px;
  vertical-align: middle;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(16, 37, 31, 0.05);
}

.copy-button:hover:not(:disabled) {
  background: #f8faf9;
  border-color: rgba(16, 37, 31, 0.25);
  box-shadow: 0 4px 12px rgba(16, 37, 31, 0.08);
  transform: translateY(-1px);
}

.copy-button:active:not(:disabled) {
  transform: translateY(0);
}

.copy-button.copied {
  background: #0d674f;
  color: #ffffff;
  border-color: #0d674f;
}

.button-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Best Match & Unblock Button Styles */
.best-match-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
  color: #854d0e;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  border: 1px solid rgba(202, 138, 4, 0.4);
  box-shadow: 0 2px 4px rgba(234, 179, 8, 0.2);
  text-transform: uppercase;
}

.service-card.service-best-match {
  border-color: rgba(202, 138, 4, 0.6);
  box-shadow: 0 8px 24px -4px rgba(202, 138, 4, 0.15);
  position: relative;
}

.unblock-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 14px;
  padding: 10px 16px;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.unblock-button:hover {
  background: #fee2e2;
  border-color: #ef4444;
  color: #7f1d1d;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.15);
  transform: translateY(-1px);
}

/* PWA Install Button */
.install-button {
  display: none;
  align-items: center;
  gap: 6px;
  background: #10251f;
  color: #ffffff;
  border: 1px solid #10251f;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.install-button:hover {
  background: #0d674f;
  border-color: #0d674f;
  transform: translateY(-1px);
}

.install-button.show {
  display: inline-flex;
}

/* Fallback for Font */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --font-geist-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-geist-mono: 'JetBrains Mono', monospace;
}


/* ========================================================
   ALERT BOX ENHANCEMENTS FOR ACCESS STATUS INFO
   ======================================================== */

.service-result {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  margin: 18px 0 14px;
  border: 1px solid var(--line);
  background: rgba(16, 37, 31, 0.035);
  transition: all 0.25s ease;
}

.service-result h3 {
  margin: 0 0 3px 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.service-result p {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: #4b5563;
}

.service-result .status-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* 1. GREEN ALERT BOX: Available & Ready to stream */
.service-available .service-result {
  background: #ecfdf5;
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 4px 12px -2px rgba(16, 185, 129, 0.12);
}

.service-available .service-result h3 {
  color: #065f46;
}

.service-available .service-result p {
  color: #047857;
}

.service-available .status-icon {
  background: #0d674f;
  color: #9dffd7;
}

/* 2. RED ALERT BOX: Access Denied / Blocked */
.service-blocked .service-result {
  background: #fef2f2;
  border: 1px solid rgba(239, 68, 68, 0.35);
  box-shadow: 0 4px 12px -2px rgba(239, 68, 68, 0.12);
}

.service-blocked .service-result h3 {
  color: #991b1b;
}

.service-blocked .service-result p {
  color: #b91c1c;
}

.service-blocked .status-icon {
  background: #dc2626;
  color: #ffffff;
}

/* 3. AMBER / RED ALERT BOX: Offline / Service Issue */
.service-offline .service-result,
.service-incompatible .service-result {
  background: #fff7ed;
  border: 1px solid rgba(249, 115, 22, 0.35);
  box-shadow: 0 4px 12px -2px rgba(249, 115, 22, 0.12);
}

.service-offline .service-result h3,
.service-incompatible .service-result h3 {
  color: #9a3412;
}

.service-offline .service-result p,
.service-incompatible .service-result p {
  color: #c2410c;
}

.service-offline .status-icon,
.service-incompatible .status-icon {
  background: #ea580c;
  color: #ffffff;
}

/* 4. CHECKING ALERT BOX: Pulsing soft background */
.service-checking .service-result {
  background: rgba(16, 37, 31, 0.04);
  border: 1px dashed rgba(16, 37, 31, 0.18);
}

.service-checking .status-icon {
  background: var(--ink);
  color: var(--mint);
}
