:root {
  --support-ink: #292929;
  --support-muted: #5d5d5d;
  --support-purple: #280137;
  --support-line: #e9e5eb;
  --support-paper: #ffffff;
  --support-wash: #f8f6f9;
  --support-success: #16a34a;
}

.page-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.legal-content {
  max-width: 880px;
}

.legal-content h3 {
  margin: 24px 0 8px;
  font-size: 17px;
}

.legal-content a {
  color: var(--support-purple);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content li + li {
  margin-top: 8px;
}

.legal-updated {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--support-line);
  font-size: 14px;
}

.legal-toc {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px 18px;
  margin: 30px 0 38px;
  padding: 20px;
  border: 1px solid var(--support-line);
  border-radius: 12px;
  background: var(--support-wash);
}

.legal-toc strong {
  grid-column: 1 / -1;
  font-size: 13px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.legal-toc a {
  color: var(--support-muted);
  font-size: 14px;
  text-decoration: none;
}

.support-shell {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--support-ink);
  background: var(--support-paper);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.support-shell *,
.welcome-shell * {
  box-sizing: border-box;
}

.support-shell [hidden],
.welcome-shell [hidden] {
  display: none !important;
}

.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;
}

.support-shell a,
.welcome-shell a {
  color: inherit;
}

.support-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1160px, calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
}

.support-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--support-ink);
  font-size: 19px;
  font-weight: 650;
  text-decoration: none;
}

.support-brand img {
  width: 38px;
  height: 38px;
}

.support-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--support-muted);
  font-size: 14px;
}

.support-nav-links a {
  text-decoration: none;
}

.support-hero {
  padding: 72px 20px 82px;
  color: white;
  text-align: center;
  background:
    radial-gradient(circle at 15% 0%, rgba(165, 100, 195, .32), transparent 30%),
    radial-gradient(circle at 88% 10%, rgba(95, 45, 135, .35), transparent 32%),
    linear-gradient(135deg, #280137 0%, #16001f 56%, #050006 100%);
}

.support-hero .eyebrow {
  margin: 0 0 14px;
  color: rgba(255,255,255,.64);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.support-hero h1 {
  margin: 0;
  color: white;
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 600;
  line-height: 1.03;
}

.support-hero p {
  max-width: 620px;
  margin: 18px auto 0;
  color: rgba(255,255,255,.72);
  font-size: 17px;
  line-height: 1.6;
}

.help-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(680px, 100%);
  margin: 30px auto 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: white;
  box-shadow: 0 24px 60px rgba(0,0,0,.24);
}

.help-search svg {
  position: absolute;
  left: 18px;
  color: #817886;
}

.help-search input {
  width: 100%;
  min-height: 58px;
  padding: 0 54px;
  border: 0;
  outline: 0;
  border-radius: inherit;
  color: var(--support-ink);
  background: transparent;
  font: inherit;
  font-size: 16px;
}

.help-search button {
  position: absolute;
  right: 9px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  color: white;
  background: var(--support-purple);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.help-main {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.help-section + .help-section {
  margin-top: 72px;
}

.help-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.help-section h2 {
  margin: 0;
  font-size: clamp(27px, 4vw, 38px);
  font-weight: 600;
  line-height: 1.1;
}

.help-section-head p {
  max-width: 500px;
  margin: 0;
  color: var(--support-muted);
  line-height: 1.6;
}

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

.help-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--support-line);
  border-radius: 15px;
  color: var(--support-ink);
  background: white;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.help-card:hover {
  border-color: #cbbbd2;
  box-shadow: 0 18px 40px rgba(40,1,55,.08);
  transform: translateY(-2px);
}

.help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--support-purple);
  background: #f2ebf5;
  font-size: 20px;
}

.help-card h3 {
  margin: 1px 0 7px;
  font-size: 19px;
}

.help-card p {
  margin: 0;
  color: var(--support-muted);
  font-size: 14px;
  line-height: 1.6;
}

.help-articles {
  display: grid;
  gap: 12px;
}

.help-article {
  border: 1px solid var(--support-line);
  border-radius: 13px;
  background: white;
}

.help-article summary {
  position: relative;
  padding: 20px 54px 20px 22px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.help-article summary::-webkit-details-marker { display: none; }
.help-article summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 22px;
  color: var(--support-purple);
  font-size: 24px;
  font-weight: 400;
  transform: translateY(-50%);
}
.help-article[open] summary::after { content: "−"; }

.help-answer {
  padding: 0 22px 23px;
  color: var(--support-muted);
  font-size: 15px;
  line-height: 1.7;
}

.help-answer p { margin: 0 0 12px; }
.help-answer p:last-child { margin-bottom: 0; }
.help-answer ol,
.help-answer ul { margin: 8px 0 14px; padding-left: 22px; }
.help-answer li + li { margin-top: 7px; }
.help-answer a { color: var(--support-purple); }

.help-empty {
  padding: 36px;
  border: 1px dashed #cfc5d3;
  border-radius: 14px;
  color: var(--support-muted);
  text-align: center;
  background: var(--support-wash);
}

.help-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
  border-radius: 18px;
  color: white;
  background: linear-gradient(125deg, var(--support-purple), #08000b);
}

.help-contact h2 { color: white; }
.help-contact p { max-width: 580px; margin: 10px 0 0; color: rgba(255,255,255,.7); line-height: 1.6; }

.support-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  color: var(--support-purple) !important;
  background: white;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.support-footer {
  padding: 28px 20px;
  border-top: 1px solid var(--support-line);
  color: var(--support-muted);
  font-size: 13px;
}

.support-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  width: min(1080px, 100%);
  margin: 0 auto;
}

.support-footer-links {
  display: flex;
  gap: 18px;
}

.welcome-shell {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: #f7f5f8;
  background:
    radial-gradient(circle at 94% 5%, rgba(73, 51, 124, .28), transparent 31%),
    radial-gradient(circle at 4% 88%, rgba(61, 43, 106, .25), transparent 32%),
    #171920;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.welcome-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1200px, calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
}

.welcome-topbar .support-brand { color: white; }
.welcome-topbar > a:last-child { color: rgba(255,255,255,.65); font-size: 14px; }

.welcome-main {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 56px;
}

.welcome-intro {
  margin: 0 auto 26px;
  color: rgba(255,255,255,.46);
  font-size: 14px;
  text-align: center;
}

.welcome-layout {
  display: grid;
  grid-template-columns: minmax(360px, .9fr) minmax(460px, 1.1fr);
  gap: clamp(34px, 7vw, 92px);
  align-items: center;
}

.welcome-card {
  min-height: 640px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 18px;
  background: rgba(14,15,18,.9);
  box-shadow: 0 34px 90px rgba(0,0,0,.35);
}

.welcome-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 72px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.welcome-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  cursor: pointer;
}

.welcome-dot[aria-current="step"] {
  background: #d4c5f6;
  box-shadow: 0 0 0 4px rgba(212,197,246,.09);
}

.welcome-panel {
  display: none;
  min-height: 568px;
  padding: clamp(28px, 5vw, 48px);
}

.welcome-panel.is-active {
  display: flex;
  flex-direction: column;
}

.welcome-kicker {
  margin: 0 0 12px;
  color: #c9baf0;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.welcome-panel h1,
.welcome-panel h2 {
  margin: 0;
  color: white;
  font-size: clamp(34px, 4.6vw, 48px);
  font-weight: 600;
  line-height: 1.05;
}

.welcome-panel > p {
  margin: 16px 0 0;
  color: rgba(255,255,255,.65);
  font-size: 16px;
  line-height: 1.6;
}

.welcome-steps {
  display: grid;
  gap: 12px;
  margin: 30px 0;
}

.welcome-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(255,255,255,.045);
}

.welcome-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #17131e;
  background: #cbbcf0;
  font-weight: 700;
}

.welcome-step strong { display: block; margin: 1px 0 4px; color: white; }
.welcome-step span { color: rgba(255,255,255,.58); font-size: 14px; line-height: 1.5; }

.welcome-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.welcome-primary,
.welcome-secondary {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.welcome-primary {
  flex: 1;
  color: #1a1322;
  background: #cbbcf0;
}

.welcome-secondary {
  color: rgba(255,255,255,.64);
  background: transparent;
}

.welcome-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.welcome-placeholder {
  position: relative;
  width: 100%;
  max-width: 680px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.015)),
    #22242b;
  box-shadow: 0 30px 70px rgba(0,0,0,.28);
}

.welcome-placeholder::before {
  content: "";
  display: block;
  height: 42px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
}

.placeholder-dots {
  position: absolute;
  top: 16px;
  left: 17px;
  display: flex;
  gap: 7px;
}

.placeholder-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
}

.placeholder-content {
  position: absolute;
  inset: 42px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
}

.placeholder-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  border-radius: 18px;
  color: #d9cef5;
  background: rgba(203,188,240,.1);
  font-size: 28px;
}

.placeholder-content strong { margin-top: 18px; font-size: 18px; }
.placeholder-content span { max-width: 390px; margin-top: 8px; color: rgba(255,255,255,.48); font-size: 14px; line-height: 1.5; }
.placeholder-content code { margin-top: 14px; color: #cbbcf0; font-size: 12px; }

.welcome-help-note {
  margin-top: 20px;
  color: rgba(255,255,255,.46);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 900px) {
  .help-section-head { display: block; }
  .help-section-head p { margin-top: 10px; }
  .welcome-layout { grid-template-columns: 1fr; }
  .welcome-card { min-height: 0; }
  .welcome-visual { min-height: 0; padding: 8px 0 20px; }
}

@media (max-width: 680px) {
  .legal-toc { grid-template-columns: 1fr; }
  .support-nav-links a:not(:last-child) { display: none; }
  .support-hero { padding-top: 56px; }
  .help-search button { display: none; }
  .help-search input { padding-right: 18px; }
  .help-grid { grid-template-columns: 1fr; }
  .help-contact { display: block; }
  .help-contact .support-button { margin-top: 22px; }
  .welcome-main { width: min(100% - 24px, 620px); }
  .welcome-card { border-radius: 14px; }
  .welcome-panel { min-height: 590px; padding: 28px 22px; }
  .welcome-actions { flex-wrap: wrap; }
  .welcome-primary { flex-basis: 100%; }
  .welcome-secondary { order: 2; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .help-card { transition: none; }
}
