:root {
  --background: #f4f7fb;
  --foreground: #111827;
  --body: #4b5563;
  --muted: #8a97a8;
  --line: #dfe6ee;
  --line-soft: #eef2f7;
  --primary: #0067b1;
  --primary-dark: #004e8a;
  --blue: #0969da;
  --cyan: #087ea4;
  --shadow-soft: 0 18px 45px rgb(17 24 39 / 0.08);
  --shadow-card: 0 10px 24px rgb(17 24 39 / 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--foreground);
  background: var(--background);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.section-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.support-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 0 max(20px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid rgb(223 230 238 / 0.9);
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(12px);
}

.support-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.support-logo-image {
  display: block;
  width: 154px;
  height: 42px;
  flex: 0 0 154px;
  border-radius: 8px;
  background: #fff;
  object-fit: cover;
  object-position: center;
}

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

.support-brand-copy {
  display: block;
  min-width: 0;
}

.support-brand-copy span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.topbar-email,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.topbar-email {
  padding: 0 17px;
  color: var(--primary);
  border: 1px solid #b8d8f0;
  background: #f4fbff;
}

.topbar-email:hover {
  color: var(--primary-dark);
  border-color: #8fc4e8;
}

.language-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 36px 0 17px;
  border: 1px solid #b8d8f0;
  border-radius: 999px;
  color: var(--primary);
  background: #f4fbff;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.language-picker:hover {
  border-color: #8fc4e8;
  color: var(--primary-dark);
}

.language-picker:focus-within {
  border-color: #8fc4e8;
  box-shadow: 0 0 0 3px rgb(0 103 177 / 0.16);
}

.language-picker-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.language-current {
  display: block;
  min-width: 86px;
  pointer-events: none;
  text-align: left;
  line-height: 1;
}

.language-picker::after {
  position: absolute;
  right: 15px;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  pointer-events: none;
  transform: translateY(-2px) rotate(45deg);
}

.language-picker select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 999px;
  appearance: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  opacity: 0;
  outline: none;
}

.language-picker select:focus-visible {
  box-shadow: none;
}

.support-page {
  min-height: calc(100vh - 72px);
}

.support-hero {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 18%, rgb(0 103 177 / 0.13), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #eef7ff 100%);
}

.support-hero-inner {
  padding: 72px 0 66px;
}

.eyebrow,
.section-kicker {
  display: block;
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 720px;
  margin: 12px 0 0;
  color: #0f172a;
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 900;
  line-height: 0.98;
}

.hero-copy p {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--body);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-link {
  padding: 0 22px;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 12px 22px rgb(0 103 177 / 0.22);
}

.primary-link:hover {
  background: var(--primary-dark);
}

.library-heading h2 {
  margin: 10px 0 0;
  color: #172033;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 900;
  line-height: 1.12;
}

.library-heading p,
.support-card p,
.video-summary {
  margin: 16px 0 0;
  color: var(--body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
}

.video-library {
  padding: 58px 0 72px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.library-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.section-count {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid #cce3f5;
  border-radius: 999px;
  color: var(--primary);
  background: #f4fbff;
  font-size: 12px;
  font-weight: 900;
}

.video-group + .video-group {
  margin-top: 46px;
  padding-top: 40px;
  border-top: 1px solid var(--line-soft);
}

.group-heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.group-number {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.group-heading h3 {
  margin: 0;
  color: #172033;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

.group-heading p {
  margin: 7px 0 0;
  color: var(--body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

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

.video-card {
  appearance: none;
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  min-height: 156px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  background: #fff;
  box-shadow: 0 8px 18px rgb(17 24 39 / 0.055);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.video-card:hover,
.video-card:focus-visible {
  border-color: #9ccff0;
  box-shadow: 0 18px 32px rgb(17 24 39 / 0.11);
  transform: translateY(-2px);
  outline: none;
}

.video-preview {
  position: relative;
  display: block;
  min-height: 156px;
  overflow: hidden;
  background: #101828;
}

.preview-poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.video-card:hover .preview-poster,
.video-card:focus-visible .preview-poster {
  opacity: 0.92;
  transform: scale(1.03);
}

.play-button {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.92);
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.22);
}

.play-button::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid var(--primary);
}

.video-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 18px 18px 16px;
}

.video-label {
  display: block;
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-body strong {
  display: block;
  margin-top: 8px;
  color: #172033;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.28;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.video-card:hover .video-body strong,
.video-card:focus-visible .video-body strong {
  color: var(--primary);
}

.video-summary {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.48;
}

.support-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.support-card {
  min-width: 0;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgb(17 24 39 / 0.055);
}

.support-card h4 {
  margin: 8px 0 0;
  color: #172033;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.28;
}

.support-card p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.48;
}

.support-card mark {
  padding: 0 4px;
  color: var(--primary-dark);
  background: #dff1ff;
  font-weight: 900;
}

.support-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.support-card li {
  padding: 7px 10px;
  border: 1px solid #cce3f5;
  border-radius: 999px;
  color: var(--primary);
  background: #f4fbff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.guide-footer {
  padding: 30px 16px;
  text-align: center;
  color: #8491a3;
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 12px 24px rgb(0 103 177 / 0.24);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
}

body.modal-open {
  overflow: hidden;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.video-modal[aria-hidden="true"] {
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgb(15 23 42 / 0.68);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.video-modal-panel {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: min(86vh, 820px);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 32px 80px rgb(0 0 0 / 0.35);
}

.video-modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.video-modal-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.video-modal-header h2 {
  margin: 0;
  color: #172033;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  line-height: 1.18;
}

.video-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #475569;
  background: #f8fafc;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.video-modal-close:hover {
  color: #172033;
  background: #eef7ff;
}

.video-modal-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid #111827;
  border-radius: 8px;
  background: #000;
  object-fit: contain;
}

@media (max-width: 960px) {
  .support-hero-inner,
  .support-card-grid {
    grid-template-columns: 1fr;
  }

  .support-hero-inner {
    gap: 34px;
    padding: 56px 0 52px;
  }

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

@media (max-width: 760px) {
  .section-inner {
    width: min(100%, calc(100% - 24px));
  }

  .support-topbar {
    min-height: 64px;
    padding: 0 12px;
  }

  .support-logo-image {
    width: 124px;
    height: 36px;
    flex-basis: 124px;
    border-radius: 7px;
  }

  .support-brand-copy span {
    display: none;
    font-size: 9px;
    letter-spacing: 0.07em;
  }

  .topbar-email {
    min-height: 36px;
    padding: 0 12px;
    font-size: 11px;
  }

  .topbar-actions {
    gap: 8px;
  }

  .language-picker {
    min-height: 36px;
    padding: 0 31px 0 13px;
    font-size: 11px;
  }

  .language-picker::after {
    right: 12px;
    width: 6px;
    height: 6px;
  }

  .language-picker select {
    min-height: 100%;
  }

  .language-current {
    min-width: 67px;
  }

  .support-hero-inner {
    padding: 40px 0 38px;
  }

  .hero-copy h1 {
    font-size: 36px;
    line-height: 1.02;
  }

  .hero-copy p {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.65;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 22px;
  }

  .primary-link {
    min-height: 40px;
    padding: 0 15px;
    font-size: 12px;
  }

  .library-heading h2 {
    font-size: 25px;
  }

  .library-heading p,
  .support-card p {
    font-size: 13px;
    line-height: 1.65;
  }

  .video-library {
    padding: 40px 0 44px;
  }

  .library-heading {
    display: block;
    margin-bottom: 28px;
  }

  .section-count {
    display: inline-flex;
    margin-top: 14px;
  }

  .video-group + .video-group {
    margin-top: 34px;
    padding-top: 30px;
  }

  .group-heading {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
  }

  .group-number {
    width: 36px;
    height: 36px;
    font-size: 11px;
  }

  .group-heading h3 {
    font-size: 19px;
  }

  .group-heading p {
    font-size: 12px;
  }

  .video-grid {
    gap: 12px;
  }

  .video-card {
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 124px;
  }

  .video-preview {
    min-height: 124px;
  }

  .play-button {
    right: 8px;
    bottom: 8px;
    width: 30px;
    height: 30px;
  }

  .play-button::before {
    border-top-width: 5px;
    border-bottom-width: 5px;
    border-left-width: 8px;
  }

  .video-body {
    padding: 13px;
  }

  .video-label {
    font-size: 9px;
  }

  .video-body strong {
    margin-top: 6px;
    font-size: 13px;
  }

  .video-summary {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.45;
  }

  .support-card {
    padding: 18px;
  }

  .support-card h4 {
    font-size: 16px;
  }

  .support-card ul {
    gap: 8px;
    margin-top: 16px;
  }

  .guide-footer {
    padding: 22px 12px;
    font-size: 9px;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }

  .video-modal {
    align-items: end;
    padding: 10px;
  }

  .video-modal-panel {
    width: 100%;
    max-height: 92vh;
    padding: 14px;
  }

  .video-modal-header {
    margin-bottom: 12px;
  }

  .video-modal-kicker {
    font-size: 9px;
  }

  .video-modal-header h2 {
    font-size: 18px;
  }

  .video-modal-close {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 23px;
  }
}
