:root {
  color-scheme: dark;
  --bg: #071116;
  --bg-elev: #0c1b23;
  --bg-card: #10232d;
  --bg-card-hover: #142c38;
  --text: #f5efe3;
  --text-soft: #b6c5c8;
  --text-muted: #869ba0;
  --amber: #f59a45;
  --amber-bright: #ffb062;
  --amber-soft: rgba(245, 154, 69, 0.14);
  --teal: #5dc9bc;
  --teal-bright: #7ee0d4;
  --teal-soft: rgba(93, 201, 188, 0.13);
  --border: rgba(245, 239, 227, 0.11);
  --border-strong: rgba(245, 239, 227, 0.22);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(62rem 36rem at 82% -6%, rgba(245, 154, 69, 0.14), transparent 62%),
    radial-gradient(50rem 34rem at 8% 18%, rgba(44, 122, 132, 0.16), transparent 65%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, p {
  margin: 0;
}

a {
  color: var(--amber-bright);
  text-underline-offset: 0.22em;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

a:hover {
  color: #ffffff;
}

:focus-visible {
  outline: 2.5px solid var(--amber-bright);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 50;
  background: var(--amber);
  color: #130b04;
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2rem, 68rem);
  margin-inline: auto;
}

.ico {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
}

.ico-sm {
  width: 1rem;
  height: 1rem;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(7, 17, 22, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  flex: none;
}

.brand:hover {
  color: #ffffff;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: var(--amber);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--text);
  background: rgba(245, 239, 227, 0.07);
}

/* Hero */
.hero-section {
  padding: 1.75rem 0 1rem;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: #09171e;
  box-shadow: var(--shadow);
  min-height: clamp(22rem, 40vw, 28rem);
  display: flex;
  align-items: flex-end;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 48%;
  display: block;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(96deg, rgba(6, 15, 20, 0.94) 0%, rgba(6, 15, 20, 0.84) 44%, rgba(6, 15, 20, 0.32) 74%, rgba(6, 15, 20, 0.2) 100%),
    linear-gradient(0deg, rgba(6, 15, 20, 0.86) 0%, rgba(6, 15, 20, 0.12) 48%, rgba(6, 15, 20, 0.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(1.75rem, 4.5vw, 3.25rem);
  max-width: 39rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-bright);
  background: rgba(7, 17, 22, 0.65);
  border: 1px solid rgba(245, 154, 69, 0.34);
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.15rem;
  backdrop-filter: blur(8px);
}

.dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.65rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #fff9ef;
  margin-bottom: 0.9rem;
}

.lead {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: #dce5e6;
  max-width: 44ch;
  margin-bottom: 1.65rem;
}

.lead strong {
  color: #ffffff;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--amber);
  color: #160c04;
  box-shadow: 0 8px 24px rgba(245, 154, 69, 0.3);
}

.btn-primary:hover {
  background: var(--amber-bright);
  color: #160c04;
  transform: translateY(-1px);
}

.btn-glass {
  background: rgba(11, 27, 35, 0.72);
  color: var(--text);
  border-color: rgba(245, 239, 227, 0.24);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(20, 44, 56, 0.9);
  border-color: rgba(245, 239, 227, 0.45);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-teal {
  background: var(--teal);
  color: #051817;
  box-shadow: 0 8px 24px rgba(93, 201, 188, 0.24);
}

.btn-teal:hover {
  background: var(--teal-bright);
  color: #051817;
  transform: translateY(-1px);
}

/* Overview two-service cards */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.1rem;
}

.overview-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  border-radius: var(--radius-md);
  background: var(--bg-elev);
  border: 1px solid var(--border);
}

.overview-icon {
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 12px;
  flex: none;
}

.overview-icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

.overview-watch .overview-icon {
  background: var(--amber-soft);
  color: var(--amber-bright);
}

.overview-request .overview-icon {
  background: var(--teal-soft);
  color: var(--teal-bright);
}

.overview-body {
  min-width: 0;
}

.overview-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.1rem;
}

.overview-card h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.22rem;
}

.overview-card p:last-child {
  font-size: 0.91rem;
  color: var(--text-soft);
  line-height: 1.45;
}

.overview-link {
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(245, 239, 227, 0.05);
  border: 1px solid var(--border);
}

.overview-watch .overview-link {
  color: var(--amber-bright);
}

.overview-request .overview-link {
  color: var(--teal-bright);
}

.overview-link:hover {
  border-color: var(--border-strong);
  background: rgba(245, 239, 227, 0.1);
  color: #ffffff;
}

/* Account note strip */
.account-note {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  background: rgba(245, 154, 69, 0.08);
  border: 1px solid rgba(245, 154, 69, 0.22);
  color: var(--text-soft);
  font-size: 0.93rem;
}

.account-note .ico {
  color: var(--amber-bright);
}

.account-note strong {
  color: var(--text);
}

/* Sections */
.section {
  padding: 2.75rem 0 0.75rem;
  scroll-margin-top: 4.5rem;
}

.section-head {
  margin-bottom: 1.45rem;
}

.section-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.35rem;
}

.kicker-teal {
  color: var(--teal);
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--text);
}

.section-sub {
  margin-top: 0.45rem;
  color: var(--text-soft);
  max-width: 52ch;
}

/* Device selector tabs */
.device-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.4rem;
  border-radius: var(--radius-md);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  margin-bottom: 1.25rem;
  max-width: 100%;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.05rem;
  border-radius: 11px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tab:hover {
  color: var(--text);
  background: rgba(245, 239, 227, 0.05);
}

.tab.is-active {
  background: var(--bg-card-hover);
  color: #ffffff;
  border-color: rgba(245, 154, 69, 0.45);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.tab.is-active .ico {
  color: var(--amber-bright);
}

.tab-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.14rem 0.48rem;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber-bright);
}

.panel-heading-nojs {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--amber-bright);
  margin: 1.25rem 0 0.6rem;
}

.js .panel-heading-nojs {
  display: none;
}

.js .tab-panel:not(.is-active) {
  display: none;
}

html:not(.js) .device-tabs {
  display: none;
}

/* Step cards */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.step-card {
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  min-width: 0;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  background: var(--amber-soft);
  color: var(--amber-bright);
  border: 1px solid rgba(245, 154, 69, 0.35);
  margin-bottom: 0.95rem;
}

.steps-teal .step-num {
  background: var(--teal-soft);
  color: var(--teal-bright);
  border-color: rgba(93, 201, 188, 0.35);
}

.step-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.step-card p {
  font-size: 0.94rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.step-card p:not(:last-child) {
  margin-bottom: 0.95rem;
}

.step-card strong {
  color: var(--text);
  font-weight: 600;
}

.step-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.05rem;
}

.chip-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.48rem 0.85rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  background: rgba(245, 239, 227, 0.08);
  border: 1px solid var(--border-strong);
}

.chip-link:hover {
  background: rgba(245, 154, 69, 0.18);
  border-color: var(--amber);
  color: #ffffff;
}

.chip-accent {
  background: var(--amber);
  color: #160c04;
  border-color: var(--amber);
}

.chip-accent:hover {
  background: var(--amber-bright);
  color: #160c04;
}

/* Inline copy button inside step 2 */
.inline-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  width: 100%;
  margin-top: auto;
  padding: 0.5rem 0.55rem 0.5rem 0.72rem;
  border-radius: var(--radius-sm);
  background: rgba(7, 17, 22, 0.78);
  border: 1px solid var(--border-strong);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  min-width: 0;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.inline-copy:hover {
  border-color: var(--amber);
  background: rgba(11, 27, 35, 0.95);
}

.inline-copy code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.73rem;
  color: var(--amber-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.inline-copy-tag {
  flex: none;
  padding: 0.24rem 0.52rem;
  border-radius: 6px;
  background: var(--amber-soft);
  color: var(--amber-bright);
  font-size: 0.74rem;
  font-weight: 700;
}

.inline-copy:hover .inline-copy-tag {
  background: var(--amber);
  color: #160c04;
}

.inline-copy.is-copied {
  border-color: var(--teal);
}

.inline-copy.is-copied .inline-copy-tag {
  background: var(--teal);
  color: #051817;
}

/* Dedicated server address bar */
.address-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
}

.address-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.address-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

#server-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
  user-select: all;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 154, 69, 0.42);
  background: var(--amber-soft);
  color: var(--amber-bright);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-copy:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: #160c04;
}

.btn-copy.is-copied {
  background: var(--teal);
  border-color: var(--teal);
  color: #051817;
}

.copy-feedback {
  width: 100%;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal-bright);
}

.copy-feedback:empty {
  display: none;
}

/* Seerr Panel */
.seerr-panel {
  padding: clamp(1.35rem, 3.2vw, 2.2rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(36rem 22rem at 92% 0%, rgba(93, 201, 188, 0.13), transparent 64%),
    var(--bg-elev);
  border: 1px solid rgba(93, 201, 188, 0.22);
}

.seerr-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.seerr-panel .step-card {
  background: rgba(7, 17, 22, 0.58);
  border-color: rgba(93, 201, 188, 0.16);
}

.seerr-panel a:not(.btn) {
  color: var(--teal-bright);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.65rem;
}

details {
  border-radius: var(--radius-md);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

details[open] {
  border-color: var(--border-strong);
}

summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 3.1rem 1.05rem 1.25rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  width: 0.58rem;
  height: 0.58rem;
  border-right: 2px solid var(--amber-bright);
  border-bottom: 2px solid var(--amber-bright);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.18s ease;
}

details[open] summary::after {
  transform: translateY(-35%) rotate(-135deg);
}

details p {
  padding: 0 1.25rem 1.15rem;
  font-size: 0.95rem;
  color: var(--text-soft);
  max-width: 68ch;
}

details code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  color: var(--amber-bright);
  background: rgba(245, 154, 69, 0.1);
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
  overflow-wrap: anywhere;
}

/* Contact Card */
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.15rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: var(--amber-soft);
  color: var(--amber-bright);
  flex: none;
}

.contact-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.contact-card h3 {
  font-size: 1.03rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.contact-card p {
  font-size: 0.93rem;
  color: var(--text-soft);
  max-width: 62ch;
}

/* Curiosity teaser card at bottom of main guide */
.curiosity-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: 1rem;
  padding: 1.3rem 1.45rem;
  border-radius: var(--radius-md);
  background:
    radial-gradient(28rem 16rem at 92% 50%, rgba(93, 201, 188, 0.1), transparent 65%),
    var(--bg-elev);
  border: 1px solid var(--border);
}

.curiosity-kicker {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.25rem;
}

.curiosity-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.curiosity-card p:last-child {
  font-size: 0.92rem;
  color: var(--text-soft);
  max-width: 56ch;
}

/* Dedicated "Slik funker det" subpage */
.nav-back {
  color: var(--text) !important;
  background: rgba(245, 239, 227, 0.06);
  border: 1px solid var(--border);
}

.nav-back:hover {
  border-color: var(--border-strong);
  background: rgba(245, 239, 227, 0.11) !important;
}

.story-hero {
  padding: 2rem 0 0.5rem;
}

.story-intro-card {
  padding: clamp(1.6rem, 4vw, 2.75rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(38rem 24rem at 88% 12%, rgba(245, 154, 69, 0.16), transparent 62%),
    radial-gradient(32rem 20rem at 12% 90%, rgba(93, 201, 188, 0.12), transparent 65%),
    var(--bg-elev);
  border: 1px solid var(--border-strong);
}

.story-intro-card .lead {
  margin-bottom: 0;
  max-width: 54ch;
}

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

.story-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.story-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  margin-bottom: 0.25rem;
}

.story-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.icon-amber {
  background: var(--amber-soft);
  color: var(--amber-bright);
}

.story-card h3 {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.story-card p {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.story-card strong {
  color: var(--text);
  font-weight: 600;
}

.sprint-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--teal-bright);
  background: var(--teal-soft);
  border: 1px solid rgba(93, 201, 188, 0.3);
  white-space: nowrap;
}

.story-footnote {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(93, 201, 188, 0.16);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--teal-bright);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.fact-card {
  padding: 1.35rem;
  border-radius: var(--radius-md);
  background: var(--bg-elev);
  border: 1px solid var(--border);
}

.fact-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.fact-card p {
  font-size: 0.93rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.story-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: 1.25rem;
  padding: 1.45rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
}

.story-cta h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.story-cta p {
  font-size: 0.93rem;
  color: var(--text-soft);
}

.story-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Footer */
.footer {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  padding: 1.4rem 0 2.2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--text);
}

/* Responsive */
@media (max-width: 900px) {
  .overview-grid,
  .story-grid,
  .facts-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 1.5rem, 68rem);
  }

  .topbar-inner {
    min-height: 3.6rem;
    gap: 0.5rem;
  }

  .brand-name {
    font-size: 1.18rem;
  }

  .nav {
    gap: 0.1rem;
  }

  .nav a {
    font-size: 0.84rem;
    padding: 0.4rem 0.5rem;
  }

  .hero-section {
    padding-top: 1rem;
  }

  .hero-card {
    min-height: 0;
    border-radius: 18px;
  }

  .hero-media {
    position: relative;
    height: 11.5rem;
  }

  .hero-card {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-scrim {
    background: linear-gradient(0deg, #09171e 0%, rgba(9, 23, 30, 0.15) 55%, rgba(9, 23, 30, 0.15) 100%);
  }

  .hero-content {
    padding: 1.15rem 1.25rem 1.45rem;
    margin-top: -1.75rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .overview-card {
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    padding: 1rem 1.05rem;
  }

  .overview-link {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .device-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 0.3rem;
    padding: 0.3rem;
  }

  .tab {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 0.3rem;
    padding: 0.65rem 0.35rem;
    font-size: 0.82rem;
    line-height: 1.2;
  }

  .tab-badge {
    display: none;
  }

  .address-bar {
    padding: 1rem;
  }

  .address-actions,
  .btn-copy {
    width: 100%;
    justify-content: center;
  }

  .seerr-top .btn,
  .curiosity-card .btn,
  .story-cta-actions,
  .story-cta-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Live Service Status */
:root {
  --ok: #4ade80;
  --ok-text: #86efac;
  --ok-soft: rgba(34, 197, 94, 0.12);
  --ok-border: rgba(74, 222, 128, 0.28);

  --warn: #f59a45;
  --warn-text: #ffb062;
  --warn-soft: rgba(245, 154, 69, 0.13);
  --warn-border: rgba(245, 154, 69, 0.34);

  --down: #f87171;
  --down-text: #fca5a5;
  --down-soft: rgba(239, 68, 68, 0.13);
  --down-border: rgba(248, 113, 113, 0.34);
}

html:not(.js) .nav-status-pill,
html:not(.js) .status-strip,
html:not(.js) .svc-badge {
  display: none;
}

.brand-group {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.nav-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid var(--border-strong);
  background: rgba(245, 239, 227, 0.06);
  color: var(--text-soft);
  white-space: nowrap;
}

.nav-status-pill:hover {
  filter: brightness(1.1);
  color: #ffffff;
}

.nav-status-pill.is-ok {
  border-color: var(--ok-border);
  background: var(--ok-soft);
  color: var(--ok-text);
}

.nav-status-pill.is-warn {
  border-color: var(--warn-border);
  background: var(--warn-soft);
  color: var(--warn-text);
}

.nav-status-pill.is-down {
  border-color: var(--down-border);
  background: var(--down-soft);
  color: var(--down-text);
}

.status-dot {
  position: relative;
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--text-muted);
  flex: none;
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0;
}

.is-ok > .status-dot,
.is-ok .status-strip-main > .status-dot {
  background: var(--ok);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.65);
}

.is-ok > .status-dot::after,
.is-ok .status-strip-main > .status-dot::after {
  border-color: var(--ok);
  opacity: 0.45;
  animation: status-pulse 2.4s ease-out infinite;
}

.is-warn > .status-dot,
.is-warn .status-strip-main > .status-dot {
  background: var(--warn);
  box-shadow: 0 0 8px rgba(245, 154, 69, 0.65);
}

.is-warn > .status-dot::after,
.is-warn .status-strip-main > .status-dot::after {
  border-color: var(--warn);
  opacity: 0.45;
}

.is-down > .status-dot,
.is-down .status-strip-main > .status-dot {
  background: var(--down);
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.7);
}

.is-down > .status-dot::after,
.is-down .status-strip-main > .status-dot::after {
  border-color: var(--down);
  opacity: 0.45;
}

@keyframes status-pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.55;
  }
  70% {
    transform: scale(1.65);
    opacity: 0;
  }
  100% {
    transform: scale(1.65);
    opacity: 0;
  }
}

@keyframes spin-refresh {
  to {
    transform: rotate(360deg);
  }
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-top: 1.1rem;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  scroll-margin-top: 5rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.status-strip.is-ok {
  background:
    radial-gradient(28rem 10rem at 0% 50%, rgba(34, 197, 94, 0.09), transparent 70%),
    var(--bg-elev);
  border-color: var(--ok-border);
}

.status-strip.is-warn {
  background:
    radial-gradient(32rem 12rem at 0% 50%, rgba(245, 154, 69, 0.14), transparent 72%),
    var(--bg-elev);
  border-color: var(--warn-border);
}

.status-strip.is-down {
  background:
    radial-gradient(34rem 12rem at 0% 50%, rgba(239, 68, 68, 0.16), transparent 72%),
    var(--bg-elev);
  border-color: var(--down-border);
}

.status-strip-main {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1 1 26rem;
  min-width: 0;
}

.status-strip-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.status-strip-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.status-strip.is-ok .status-strip-title strong {
  color: var(--ok-text);
}

.status-strip.is-warn .status-strip-title strong {
  color: var(--warn-text);
}

.status-strip.is-down .status-strip-title strong {
  color: var(--down-text);
}

.status-strip-sub {
  font-size: 0.86rem;
  color: var(--text-soft);
  line-height: 1.4;
}

.status-strip-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: none;
}

.status-updated {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.btn-refresh {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(245, 239, 227, 0.05);
  color: var(--text-soft);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.btn-refresh:hover:not(:disabled) {
  background: rgba(245, 239, 227, 0.1);
  color: var(--text);
}

.btn-refresh:disabled {
  opacity: 0.6;
  cursor: default;
}

.btn-refresh svg {
  width: 0.88rem;
  height: 0.88rem;
}

.btn-refresh.is-loading svg {
  animation: spin-refresh 0.85s linear infinite;
}

.js .overview-grid {
  margin-top: 0.85rem;
}

.overview-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.25rem;
}

.overview-head-row h2 {
  margin-bottom: 0;
}

.svc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.16rem 0.56rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
  border: 1px solid var(--border);
  background: rgba(245, 239, 227, 0.06);
  color: var(--text-soft);
  white-space: nowrap;
}

.svc-badge .status-dot {
  width: 0.4rem;
  height: 0.4rem;
}

.svc-badge .status-dot::after {
  display: none;
}

.svc-badge.is-ok {
  border-color: var(--ok-border);
  background: var(--ok-soft);
  color: var(--ok-text);
}

.svc-badge.is-warn {
  border-color: var(--warn-border);
  background: var(--warn-soft);
  color: var(--warn-text);
}

.svc-badge.is-down {
  border-color: var(--down-border);
  background: var(--down-soft);
  color: var(--down-text);
}

.svc-badge .svc-ms {
  color: var(--text-muted);
  font-weight: 600;
}

.overview-card.is-service-down {
  border-color: var(--down-border);
  background:
    radial-gradient(24rem 14rem at 100% 0%, rgba(239, 68, 68, 0.08), transparent 65%),
    var(--bg-elev);
}

@media (max-width: 640px) {
  .nav-status-pill {
    display: none;
  }

  .status-strip {
    padding: 0.85rem 1rem;
    gap: 0.65rem;
  }

  .status-strip-meta {
    width: 100%;
    justify-content: space-between;
    padding-top: 0.55rem;
    border-top: 1px solid var(--border);
  }
}
