﻿:root {
  color-scheme: light;
  /* ewgs/1984: freedom-first UI, no surveillance metaphors in user-facing copy. */
  --ink: #17212f;
  --muted: #66768b;
  --ewgs-not-blue: #007aff;
  --ewgs-not-blue-bright: #0a84ff;
  --ewgs-not-blue-soft: #d8ecff;
  --ewgs-muted-blue: #4a76a8;
  --ewgs-link-blue: #2f5f93;
  --panel: rgba(255, 255, 255, 0.74);
  --panel-strong: rgba(255, 255, 255, 0.84);
  --panel-soft: rgba(255, 255, 255, 0.62);
  --control: rgba(231, 241, 251, 0.82);
  --control-strong: rgba(224, 239, 252, 0.86);
  --meta-panel: rgba(255, 255, 255, 0.42);
  --line: rgba(62, 121, 189, 0.15);
  --shadow: 0 22px 70px rgba(32, 98, 170, 0.15);
  --glow: rgba(0, 122, 255, 0.14);
  --page-bg:
    radial-gradient(circle at 16% 10%, rgba(0, 122, 255, 0.2), transparent 30rem),
    radial-gradient(circle at 88% 8%, rgba(74, 118, 168, 0.24), transparent 28rem),
    linear-gradient(145deg, #f7fbff 0%, #edf5ff 54%, #ffffff 100%);
  --grid-line: rgba(168, 202, 242, 0.03);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
}

body[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f5f8ff;
  --muted: #a0abb9;
  --ewgs-not-blue: #0a84ff;
  --ewgs-not-blue-bright: #2997ff;
  --ewgs-not-blue-soft: rgba(10, 132, 255, 0.18);
  --ewgs-muted-blue: #7db5ef;
  --ewgs-link-blue: #d7e8ff;
  --panel: rgba(20, 22, 27, 0.9);
  --panel-strong: rgba(26, 29, 36, 0.96);
  --panel-soft: rgba(30, 34, 42, 0.88);
  --control: rgba(42, 47, 57, 0.9);
  --control-strong: rgba(50, 56, 68, 0.94);
  --meta-panel: rgba(42, 47, 57, 0.58);
  --line: rgba(180, 196, 218, 0.13);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --glow: rgba(10, 132, 255, 0.14);
  --page-bg: #05070b;
  --grid-line: transparent;
}

body[data-theme="dark"] .icon-button img {
  filter: brightness(1.35) saturate(0.9);
}

body[data-theme="dark"] #copyTop img {
  filter: brightness(0) invert(1);
  opacity: 0.94;
}

body[data-theme="dark"] #communityLink img {
  filter: brightness(0) invert(1);
  opacity: 0.94;
}

body[data-theme="dark"] #copyTop.is-copied-header img {
  opacity: 0;
  transform: scale(0.74);
}

body[data-theme="dark"] .status-row,
body[data-theme="dark"] .subscription-link,
body[data-theme="dark"] .device-tabs,
body[data-theme="dark"] .fold-toggle {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .subscription-meta article {
  border-color: #2d323b;
  background:
    linear-gradient(145deg, #1a1d24, #111318) !important;
  background-clip: padding-box !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 26px rgba(0, 0, 0, 0.18) !important;
}

body[data-theme="dark"] .step-icon {
  border: 0 !important;
  outline: 0 !important;
  background: #132848 !important;
  box-shadow: none !important;
}

body[data-theme="dark"] .jump-button {
  border-color: rgba(10, 132, 255, 0.22);
  color: #7db5ef;
  background: rgba(10, 132, 255, 0.14);
}

body[data-theme="dark"] .jump-button:hover {
  background: rgba(10, 132, 255, 0.14);
}

body[data-theme="dark"] .topbar,
body[data-theme="dark"] .hero-copy,
body[data-theme="dark"] .subscription-card,
body[data-theme="dark"] .install-panel,
body[data-theme="dark"] .details-grid article,
body[data-theme="dark"] .fold-card {
  border-color: #2d323b;
  background: #111318;
  box-shadow: none;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 132px;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--page-bg);
  transition:
    background 240ms ease,
    color 180ms ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

body[data-theme="dark"]::before {
  display: none;
}

.ewgs-not-blue {
  color: var(--ewgs-not-blue);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.connect-page {
  width: min(1040px, calc(100% - 80px));
  margin: 0 auto;
  padding: 14px 0 36px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px) saturate(1.35);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  color: var(--ewgs-not-blue);
  background: var(--control-strong);
  font-size: 16px;
  font-weight: 500;
}

.top-actions {
  display: flex;
  gap: 8px;
}

.icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(74, 118, 168, 0.18);
  border-radius: 50%;
  color: var(--ewgs-link-blue);
  background: var(--panel-soft);
  cursor: pointer;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    transform 140ms cubic-bezier(0.2, 0.85, 0.25, 1);
}

.icon-button:hover {
  background: var(--panel-strong);
  box-shadow: none;
}

.icon-button:active {
  transform: scale(0.95);
  box-shadow: inset 0 3px 10px rgba(47, 95, 147, 0.14);
}

.icon-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition:
    opacity 160ms ease,
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.icon-button::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 8px;
  border-left: 3px solid var(--ewgs-not-blue);
  border-bottom: 3px solid var(--ewgs-not-blue);
  opacity: 0;
  transform: translateY(-1px) rotate(-45deg) scale(0.7);
  transition:
    opacity 160ms ease,
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.icon-button.is-copied-header img {
  opacity: 0;
  transform: scale(0.74);
}

.icon-button.is-copied-header::after {
  opacity: 1;
  transform: translateY(-1px) rotate(-45deg) scale(1);
}

.theme-toggle .theme-icon {
  position: absolute;
  opacity: 1;
  transform: scale(1) rotate(0deg);
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-toggle .theme-icon-moon {
  opacity: 0;
  transform: scale(0.7) rotate(-28deg);
}

body[data-theme="light"] .theme-toggle .theme-icon-sun {
  color: #111827;
}

body[data-theme="dark"] .theme-toggle .theme-icon-sun {
  opacity: 0;
  transform: scale(0.7) rotate(28deg);
}

body[data-theme="dark"] .theme-toggle .theme-icon-moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.66fr) minmax(480px, 1.34fr);
  gap: 20px;
  align-items: stretch;
  padding: 24px 0 14px;
}

.hero-copy,
.subscription-card,
.install-panel,
.details-grid article,
.fold-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px) saturate(1.35);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 162px;
  padding: 24px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, var(--panel-strong), var(--panel-soft)),
    radial-gradient(circle at 12% 18%, var(--glow), transparent 16rem);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--ewgs-muted-blue);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: none;
  margin-bottom: 12px;
  font-size: clamp(23px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy p:not(.eyebrow) {
  max-width: 560px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.jump-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(0, 122, 255, 0.14);
  border-radius: 999px;
  color: #116fd8;
  background: rgba(219, 237, 255, 0.92);
  font-weight: 600;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 140ms cubic-bezier(0.2, 0.85, 0.25, 1);
}

.jump-button:hover {
  background: rgba(219, 237, 255, 0.92);
  box-shadow: none;
}

.jump-button:active {
  transform: scale(0.97);
  box-shadow: inset 0 3px 10px rgba(47, 95, 147, 0.12);
}

.jump-button svg,
.soft-button svg,
.primary-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.subscription-card {
  display: grid;
  align-content: start;
  min-width: 0;
  gap: 11px;
  padding: 24px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border-color: var(--line);
  background:
    linear-gradient(145deg, var(--panel-strong), var(--panel-soft)),
    radial-gradient(circle at 12% 18%, var(--glow), transparent 16rem);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px) saturate(1.35);
}

.status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--meta-panel);
}

.status-row.is-expired .status-mark {
  color: #4a76a8;
  background: rgba(74, 118, 168, 0.16);
}

.status-mark,
.step-icon,
.detail-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--ewgs-not-blue);
  background: var(--ewgs-not-blue-soft);
}

.step-icon {
  background: #d8ecff;
}

.status-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
}

.status-mark svg,
.step-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status-label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
}

.status-row strong {
  display: block;
  font-size: 19px;
  font-weight: 600;
  word-break: break-word;
}

.subscription-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  background: none;
  background-color: transparent;
  background-image: none;
  box-shadow: none;
  backdrop-filter: none;
}

.subscription-meta article {
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: transparent !important;
  background-clip: border-box !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.subscription-meta span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
}

.subscription-meta strong {
  font-size: 17px;
  font-weight: 600;
}

.subscription-link {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 7px;
  min-width: 0;
  padding: 8px;
  border-radius: 24px;
  background: var(--control);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.subscription-link > span {
  min-width: 0;
  overflow: hidden;
  padding: 0 14px;
  color: var(--ewgs-link-blue);
  font-size: 13px;
  line-height: 38px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subscription-link button,
.soft-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    transform 140ms cubic-bezier(0.2, 0.85, 0.25, 1);
}

.subscription-link button {
  width: 100%;
  min-width: 0;
  padding: 0 18px;
  color: white;
  background: linear-gradient(135deg, var(--ewgs-not-blue-bright), var(--ewgs-not-blue));
}

.copy-button-text {
  display: block;
  width: 100%;
  color: white;
  text-align: center;
}

.fold-card {
  border-radius: var(--radius-lg);
  overflow: visible;
}

.subscription-fold {
  box-shadow: none;
  background: transparent;
}

.fold-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--meta-panel);
  cursor: pointer;
  font-weight: 600;
}

.fold-toggle svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: var(--ewgs-link-blue);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.fold-content {
  overflow: visible;
  max-height: none;
  opacity: 1;
  transition:
    max-height 420ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 260ms ease;
}

.fold-content > * {
  min-height: 0;
  overflow: visible;
}

.fold-card.is-open .fold-content {
  max-height: 900px;
  opacity: 1;
}

.fold-card.is-open .fold-toggle svg {
  transform: rotate(180deg);
}

.install-panel {
  margin-top: 12px;
  padding: 26px;
  border-radius: var(--radius-xl);
  scroll-margin-top: 132px;
}

.install-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.install-head h2 {
  margin-bottom: 0;
  font-size: 32px;
  font-weight: 550;
  line-height: 1.12;
}

.app-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(0, 122, 255, 0.2);
  border-radius: 999px;
  color: var(--ewgs-not-blue);
  background: var(--control-strong);
  font-weight: 600;
}

@media (min-width: 981px) {
  .app-pill {
    margin-top: -14px;
  }

  body[data-theme="dark"] .device-tabs {
    background: var(--control);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  body[data-theme="dark"] .device-tab {
    color: #f1f5f9;
    background: var(--meta-panel);
  }

  body[data-theme="dark"] .device-tab:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  body[data-theme="dark"] .device-tab.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--ewgs-not-blue-bright), var(--ewgs-not-blue));
  }
}

.device-tabs {
  display: flex;
  gap: 6px;
  margin: -8px 0 22px;
  padding: 6px;
  border-radius: 999px;
  background: var(--control);
}

.device-tab {
  flex: 1;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  color: #475b72;
  background: var(--meta-panel);
  cursor: pointer;
  font-weight: 600;
  transition:
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 140ms cubic-bezier(0.2, 0.85, 0.25, 1);
}

.device-tab:hover {
  background: var(--meta-panel);
}

.device-tab:active {
  transform: scale(0.97);
}

.device-tab.active {
  color: white;
  background: linear-gradient(135deg, var(--ewgs-not-blue-bright), var(--ewgs-not-blue));
  box-shadow: none;
}

.steps {
  display: grid;
  gap: 4px;
}

.step {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 0 0 26px;
}

.step:not(:last-child)::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 25px;
  bottom: -29px;
  left: calc(25px - 1px);
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(to bottom, rgba(0, 122, 255, 0.34), rgba(74, 118, 168, 0.14));
}

.step-icon {
  position: relative;
  z-index: 1;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.step-body {
  padding-top: 5px;
}

.step-body h3 {
  margin-bottom: 6px;
  font-size: 20px;
  font-weight: 600;
}

.step-body p {
  max-width: 640px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.48;
}

.soft-button {
  gap: 9px;
  padding: 0 20px;
  color: var(--ewgs-not-blue);
  background: var(--control-strong);
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.download-actions .soft-button {
  min-width: 0;
  white-space: nowrap;
}

.download-actions [hidden],
.market-button[hidden],
.region-guide[hidden] {
  display: none;
}

.region-guide {
  width: 100%;
  max-width: 640px;
  margin-top: 12px;
  padding: 15px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--muted);
  background: var(--meta-panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.region-guide strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.region-guide p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.region-guide-head {
  display: grid;
  gap: 12px;
}

.region-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  gap: 4px;
  margin: 0;
  padding: 3px;
  border: 1px solid rgba(74, 118, 168, 0.13);
  border-radius: 999px;
  background: rgba(224, 239, 252, 0.68);
}

.region-switch button,
.region-step-actions button {
  border: 0;
  cursor: pointer;
  font: inherit;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 140ms cubic-bezier(0.2, 0.85, 0.25, 1);
}

.region-switch button {
  min-height: 31px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.region-switch button.active {
  color: white;
  background: linear-gradient(135deg, var(--ewgs-not-blue-bright), var(--ewgs-not-blue));
}

.region-switch button:active,
.region-step-actions button:active {
  transform: scale(0.97);
}

.region-quick,
.region-stepper {
  margin-top: 13px;
}

.region-step-card {
  min-height: 92px;
  padding: 14px 15px;
  border: 1px solid rgba(74, 118, 168, 0.13);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.42);
}

.region-step-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  margin-bottom: 10px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--ewgs-not-blue);
  background: rgba(0, 122, 255, 0.1);
  font-size: 12px;
  font-weight: 700;
}

.region-step-card p {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.region-step-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.region-step-actions button {
  min-height: 38px;
  border-radius: 999px;
  color: var(--ewgs-not-blue);
  background: rgba(224, 239, 252, 0.7);
  font-weight: 600;
}

.region-step-actions button:first-child:not(:disabled) {
  color: var(--ewgs-not-blue);
  background: rgba(0, 122, 255, 0.12);
}

.region-step-actions button:last-child {
  color: white;
  background: linear-gradient(135deg, var(--ewgs-not-blue-bright), var(--ewgs-not-blue));
}

.region-step-actions button:disabled {
  cursor: default;
  opacity: 0.42;
  transform: none;
}

body[data-theme="dark"] .region-guide {
  background:
    linear-gradient(145deg, rgba(26, 29, 36, 0.96), rgba(17, 19, 24, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .region-switch,
body[data-theme="dark"] .region-step-card,
body[data-theme="dark"] .region-step-actions button {
  border-color: #2d323b;
  background: rgba(42, 47, 57, 0.74);
}

body[data-theme="dark"] .region-step-actions button:last-child,
body[data-theme="dark"] .region-switch button.active {
  color: white;
  background: linear-gradient(135deg, var(--ewgs-not-blue-bright), var(--ewgs-not-blue));
}

.primary-button {
  gap: 9px;
  min-width: 230px;
  padding: 0 24px;
  color: white;
  background: linear-gradient(135deg, var(--ewgs-not-blue-bright), var(--ewgs-not-blue));
  box-shadow: none;
}

.primary-button:hover,
.subscription-link button:hover {
  box-shadow: none;
}

.soft-button:hover {
  background: var(--control-strong);
  box-shadow: none;
}

.soft-button:active,
.primary-button:active,
.subscription-link button:active {
  transform: scale(0.97);
  box-shadow: inset 0 4px 12px rgba(0, 45, 110, 0.22);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 14px;
}

.details-grid article {
  min-height: 184px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, var(--panel-strong), var(--panel-soft));
  box-shadow: 0 18px 46px rgba(47, 95, 147, 0.08);
}

.detail-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
}

.details-grid h3 {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.details-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.extra-info {
  margin-top: 16px;
  padding: 32px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, var(--panel-strong), var(--panel-soft)),
    radial-gradient(circle at 12% 4%, var(--glow), transparent 16rem);
}

.extra-info .fold-toggle {
  cursor: default;
  min-height: 28px;
  padding: 0 0 24px;
  border: 0;
  background: transparent;
}

.extra-info .fold-toggle span {
  color: var(--ewgs-muted-blue);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.extra-info .fold-toggle svg {
  display: none;
}

.subscription-fold {
  border: 0;
  border-radius: 0;
}

.subscription-fold .fold-toggle {
  display: none;
}

.footer {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  margin-top: 14px;
  padding: 16px 0 2px;
  color: #6f7f93;
  text-align: center;
}

.footer a {
  color: var(--ewgs-link-blue);
  font-size: 18px;
  font-weight: 600;
}

.footer span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  margin: 0;
  padding: 13px 18px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--ewgs-not-blue-bright), var(--ewgs-not-blue));
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .hero {
    align-items: start;
    padding-top: 28px;
  }

  .hero-copy {
    min-height: auto;
  }

  .subscription-card {
    width: 100%;
  }

  .connect-page {
    width: min(100% - 56px, 1040px);
  }
}

@media (min-width: 621px) and (max-width: 980px) {
  .subscription-card {
    border-color: var(--line);
    background:
      linear-gradient(145deg, var(--panel-strong), var(--panel-soft)),
      radial-gradient(circle at 12% 18%, var(--glow), transparent 16rem);
    box-shadow: var(--shadow);
    backdrop-filter: blur(28px) saturate(1.35);
  }

  .subscription-link {
    grid-template-columns: minmax(0, 1fr) minmax(205px, auto);
    min-height: 60px;
  }

  .subscription-link > span {
    padding: 0 14px;
    line-height: 44px;
  }

  .app-pill {
    margin-top: -14px;
  }
}

@media (min-width: 981px) {
  .subscription-card {
    border-color: var(--line);
    background:
      linear-gradient(145deg, var(--panel-strong), var(--panel-soft)),
      radial-gradient(circle at 12% 18%, var(--glow), transparent 16rem);
    box-shadow: var(--shadow);
    backdrop-filter: blur(28px) saturate(1.35);
  }
}

@media (min-width: 621px) {
  .subscription-meta {
    gap: 10px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .subscription-meta article {
    min-height: 72px;
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    background: transparent !important;
    background-clip: border-box !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .subscription-meta article:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .subscription-meta article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

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

  .device-tabs {
    flex-wrap: wrap;
    border-radius: 24px;
  }

  .device-tab {
    flex: 1 1 calc(33.333% - 6px);
  }
}

@media (max-width: 980px) {
  .device-tabs {
    gap: 8px;
    padding: 7px;
    border: 1px solid var(--line);
    background: var(--control);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
  }

  .device-tab {
    min-height: 42px;
    border: 1px solid rgba(74, 118, 168, 0.16);
    color: var(--ewgs-link-blue);
    background: var(--control-strong);
    box-shadow: none;
  }

  .device-tab:not(.active) {
    color: var(--ink);
  }

  .device-tab.active {
    border-color: transparent;
    box-shadow: none;
  }

  body[data-theme="dark"] .device-tabs {
    background: var(--control);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  body[data-theme="dark"] .device-tab {
    border-color: #2d323b;
    color: #f1f5f9;
    background: var(--control-strong);
    box-shadow: none;
  }

  body[data-theme="dark"] .device-tab.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--ewgs-not-blue-bright), var(--ewgs-not-blue));
    box-shadow: none;
  }
}

@media (max-width: 620px) {
  .connect-page {
    width: min(100% - 36px, 1040px);
    padding-top: 8px;
  }

  .topbar {
    top: 10px;
    min-height: 52px;
    padding: 6px;
  }

  .brand {
    min-height: 38px;
    padding: 0 14px;
    font-size: 15px;
  }

  .icon-button {
    width: 40px;
    height: 40px;
  }

  .hero {
    padding-top: 14px;
  }

  .hero-copy {
    display: none;
  }

  .hero-copy,
  .subscription-card,
  .install-panel {
    padding: 16px;
    border-radius: 26px;
  }

  .subscription-card {
    border-color: var(--line);
    background:
      linear-gradient(145deg, var(--panel-strong), var(--panel-soft)),
      radial-gradient(circle at 12% 18%, var(--glow), transparent 16rem);
    box-shadow: var(--shadow);
    backdrop-filter: blur(28px) saturate(1.35);
  }

  h1 {
    font-size: 25px;
    line-height: 1.13;
    white-space: normal;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 15px;
  }

  .subscription-meta {
    grid-template-columns: 1fr 1fr;
  }

  .subscription-meta article {
    min-height: 64px;
    padding: 10px 11px;
    border-radius: 18px;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
  }

  .subscription-link {
    align-items: stretch;
    grid-template-columns: 1fr;
    border-radius: 22px;
    padding: 10px;
  }

  .subscription-link span {
    width: 100%;
    padding: 4px 6px 2px;
    line-height: 1.45;
  }

  .subscription-link button {
    width: 100%;
    min-width: 0;
  }

  .install-head {
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 20px;
  }

  .install-head h2 {
    font-size: 27px;
  }

  .app-pill {
    align-self: stretch;
    width: 100%;
    justify-content: center;
  }

  .step {
    gap: 13px;
    padding-bottom: 22px;
  }

  .step-icon {
    width: 44px;
    height: 44px;
  }

  .step:not(:last-child)::before {
    top: 22px;
    bottom: -26px;
    left: calc(22px - 1px);
  }

  .step-body h3 {
    font-size: 19px;
  }

  .step-body p {
    font-size: 14px;
    line-height: 1.45;
  }

  .region-guide {
    width: 100%;
    max-width: 100%;
    margin-top: 10px;
    padding: 12px 13px;
    border-radius: 18px;
  }

  .region-guide p {
    font-size: 13px;
  }

  .device-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    border-radius: 26px;
  }

  .device-tab {
    display: inline-flex;
    width: 100%;
    min-height: 42px;
    flex-basis: auto;
    align-items: center;
    justify-content: center;
    font-size: 14px;
  }

  .device-tab.is-device-primary,
  .device-tab.is-tv-tab {
    grid-column: 1 / -1;
    min-height: 42px;
    font-size: 14px;
  }

  .device-tab.is-device-primary {
    order: 0 !important;
  }

  .device-tab.is-tv-tab {
    order: 20 !important;
  }

  .fold-toggle {
    min-height: 54px;
    padding: 0 14px;
  }

  .fold-content {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
  }

  .fold-card.is-open .fold-content {
    max-height: 1400px;
    opacity: 1;
  }

  .subscription-fold {
    border: 0;
    border-radius: 26px;
    background: transparent;
  }

  .subscription-fold .fold-toggle {
    display: flex;
    min-height: 44px;
    padding: 0 13px;
    border: 0;
    border-radius: 22px;
    background: var(--control);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  }

  .subscription-fold.is-open .fold-content {
    padding-top: 8px;
  }

  .extra-info {
    padding: 16px 18px;
  }

  .extra-info .fold-toggle {
    cursor: pointer;
    min-height: 54px;
    padding: 0 14px;
    border-radius: 25px;
    background: var(--control);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  }

  .extra-info .fold-toggle svg {
    display: block;
    width: 18px;
    height: 18px;
  }

  .details-grid {
    display: grid;
    gap: 10px;
    padding: 8px 0 0;
  }

  .details-grid article {
    display: grid;
    grid-template-columns: 38px 1fr;
    column-gap: 12px;
    align-items: start;
    min-height: auto;
    padding: 14px;
    border-radius: 18px;
    background: var(--meta-panel) !important;
    background-color: var(--meta-panel) !important;
    background-image: none !important;
    box-shadow: none;
    backdrop-filter: none;
  }

  .detail-icon {
    grid-row: 1 / 3;
    width: 38px;
    height: 38px;
    margin: 0;
    font-size: 12px;
  }

  .details-grid h3 {
    margin-bottom: 4px;
    font-size: 16px;
  }

  .details-grid p {
    font-size: 13px;
    line-height: 1.4;
  }

  .toast {
    right: 11px;
    bottom: 11px;
    left: 11px;
    text-align: center;
  }
}
