/* ==========================================================================
   Help center — dark surface, LP tokens (styles.css) are the single source of
   truth for brand colour, type and gradients.
   ========================================================================== */

.help-body {
  --help-max: 1180px;
  --help-pad: clamp(20px, 5vw, 40px);
  --tag-accent: var(--liked);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--jp);
}

/* styles.css styles bare <section> with the LP's 160px block padding, and
   [hidden] loses to any component rule that sets `display`. Both are reset here
   at type-selector specificity so the component rules below still win. */
:where(.help-body) section {
  padding: 0;
}

.help-body [hidden] {
  display: none !important;
}

.help-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.help-skip {
  position: absolute;
  left: 50%;
  top: 8px;
  z-index: 20;
  transform: translate(-50%, -200%);
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--fg);
  color: #0b0b18;
  font-weight: 700;
}

.help-skip:focus-visible {
  transform: translate(-50%, 0);
}

.help-body :focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

/* ---------- Nav ---------- */

.help-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
}

.help-nav-inner,
.help-footer-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(var(--help-max), 100%);
  margin: 0 auto;
  padding: 14px var(--help-pad);
}

.help-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.help-logo img {
  width: auto;
  height: 24px;
}

.help-logo span {
  font-family: var(--en);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.help-nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  font-family: var(--en);
  font-size: 13px;
}

.help-nav-links a {
  color: var(--fg-3);
  transition: color 0.18s ease;
}

.help-nav-links a:hover {
  color: var(--fg);
}

.help-cta,
.help-band-cta,
.help-search-submit,
.help-form-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cta-grad-start), var(--cta-grad-end));
  color: var(--fg);
  font-family: var(--en);
  font-weight: 600;
  cursor: pointer;
}

.help-nav-links .help-cta {
  padding: 10px 18px;
  color: var(--fg);
  box-shadow: 0 8px 24px -8px rgba(142, 45, 226, 0.6);
}

.help-nav-toggle {
  display: none;
  position: relative;
  margin-left: auto;
  border: 1px solid var(--edge);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.help-nav-toggle span[aria-hidden] {
  position: absolute;
  inset: 50% 11px auto;
  height: 1.5px;
  background: var(--fg);
}

.help-nav-toggle span[aria-hidden]::before,
.help-nav-toggle span[aria-hidden]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--fg);
}

.help-nav-toggle span[aria-hidden]::before { top: -6px; }
.help-nav-toggle span[aria-hidden]::after { top: 6px; }

/* ---------- Hero (artboard 1a) ---------- */

.help-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 88px) var(--help-pad) clamp(48px, 8vw, 72px);
  text-align: center;
}

.help-hero-glow {
  position: absolute;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
}

.help-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: help-float 22s ease-in-out infinite;
}

.help-glow-1 {
  width: 640px;
  height: 640px;
  left: -8%;
  top: -22%;
  background: radial-gradient(circle at 30% 30%, var(--grad-1) 0%, transparent 60%);
}

.help-glow-2 {
  width: 700px;
  height: 700px;
  right: -14%;
  top: -16%;
  background: radial-gradient(circle at 50% 50%, var(--grad-3) 0%, transparent 60%);
  animation-delay: -8s;
}

.help-glow-3 {
  width: 560px;
  height: 560px;
  left: 28%;
  top: 2%;
  background: radial-gradient(circle at 50% 50%, var(--grad-2) 0%, transparent 60%);
  animation-delay: -14s;
}

.help-hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%);
}

.help-hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--help-max), 100%);
  margin: 0 auto;
}

@keyframes help-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(3vw, -2vw) scale(1.06); }
  66% { transform: translate(-2vw, 1.5vw) scale(0.96); }
}

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

.help-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-family: var(--en);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.help-kicker span[aria-hidden] {
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--grad-2), var(--grad-3));
}

.help-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 6.4vw, 64px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.01em;
}

.help-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--grad-1) 0%, var(--grad-2) 35%, var(--grad-3) 65%, var(--grad-4) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.help-hero-lead {
  margin: 0 auto 36px;
  max-width: 560px;
  font-size: clamp(14px, 2.4vw, 16px);
  line-height: 1.9;
  color: var(--fg-3);
}

/* ---------- Search field ---------- */

.help-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--edge-strong);
  border-radius: 999px;
  padding: 8px 8px 8px 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  text-align: left;
}

.help-search-lg {
  box-shadow: 0 20px 60px -20px rgba(142, 45, 226, 0.5);
}

.help-search-heading .help-search {
  margin: 0;
}

.help-search-icon {
  flex: none;
  color: rgba(255, 255, 255, 0.45);
}

.help-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 12px 0;
  color: var(--fg);
  font-family: inherit;
  font-size: clamp(14px, 2.6vw, 16px);
}

/* The input's own outline is suppressed so it cannot cut across the pill; the
   ring goes on the wrapper instead, which is the thing that reads as "the
   search field". Without this the global :focus-visible rule is out-specified
   here and a keyboard user sees nothing at all. */
.help-search input:focus {
  outline: none;
}

.help-search:focus-within {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--secondary) 40%, transparent);
}

/* The hero field keeps its glow: a shadow list replaces, it does not add. */
.help-search-lg:focus-within {
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--secondary) 40%, transparent),
    0 20px 60px -20px rgba(142, 45, 226, 0.5);
}

.help-search input::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.help-search input::-webkit-search-cancel-button {
  filter: invert(1);
  opacity: 0.4;
}

.help-search-submit {
  flex: none;
  padding: 13px 24px;
  font-size: 14px;
}

.help-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.help-chips span {
  font-size: 12px;
  color: var(--fg-4);
}

.help-chips a {
  border: 1px solid var(--edge-strong);
  border-radius: 999px;
  padding: 8px 15px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  color: var(--fg-2);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.help-chips a:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Sections ---------- */

.help-section,
.help-page-heading,
.help-article,
.help-band-inner,
.help-footer-inner {
  width: min(var(--help-max), 100%);
  margin: 0 auto;
}

.help-section {
  padding: clamp(40px, 6vw, 64px) var(--help-pad);
}

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

.help-section-head h2 {
  margin: 0;
  font-size: clamp(19px, 3.2vw, 24px);
  font-weight: 700;
}

.help-section-head span {
  font-size: 12px;
  color: var(--fg-4);
}

/* ---------- Accordion ---------- */

.help-accordion {
  display: grid;
  gap: 10px;
}

.help-accordion-item {
  overflow: hidden;
  border: 1px solid var(--edge);
  border-radius: 16px;
  background: var(--surface);
}

.help-accordion-item h3 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.help-accordion-item button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  border: none;
  padding: 19px 22px;
  background: transparent;
  color: var(--fg);
  font-family: inherit;
  font-size: clamp(14px, 2.6vw, 16px);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.help-accordion-mark {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}

.help-accordion-mark::before,
.help-accordion-mark::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.5);
}

.help-accordion-mark::after {
  transform: rotate(90deg);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.help-accordion-item button[aria-expanded="true"] .help-accordion-mark::after {
  transform: rotate(0deg);
  opacity: 0;
}

.help-accordion-panel {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 22px 22px;
}

.help-accordion-panel p {
  margin: 0;
  font-size: 14px;
  line-height: 1.95;
  color: var(--fg-2);
}

.help-accordion-panel a,
.help-empty a {
  color: var(--liked);
  white-space: nowrap;
}

/* ---------- Category cards ---------- */

.help-category-grid {
  display: grid;
  /* 300px keeps the five task cards plus the contact card on a 3x2 grid at the
     1180px max width, matching the design. */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.help-category-card {
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--edge);
  border-radius: 16px;
  padding: 24px;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--tag-accent) 12%, transparent), var(--surface) 60%);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.help-category-card:hover {
  border-color: color-mix(in srgb, var(--tag-accent) 45%, transparent);
  transform: translateY(-2px);
}

.help-category-code {
  font-family: var(--en);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--tag-accent);
}

.help-category-card strong {
  font-size: 19px;
  font-weight: 700;
}

.help-category-desc {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--fg-3);
}

.help-category-count {
  font-size: 12px;
  color: var(--fg-4);
}

.help-category-card-ghost {
  align-content: center;
  border: 1px dashed var(--edge-strong);
  background: transparent;
}

.help-category-link {
  font-family: var(--en);
  font-size: 13px;
  color: var(--liked);
}

/* ---------- Question cards / lists ---------- */

.help-question-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.help-question-card {
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 20px;
  background: var(--surface);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.help-question-card:hover {
  border-color: var(--edge-strong);
  background: var(--surface-2);
}

.help-question-card strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

.help-question-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--fg-3);
}

.help-tag {
  justify-self: start;
  border-radius: 999px;
  padding: 4px 10px;
  background: color-mix(in srgb, var(--tag-accent) 16%, transparent);
  color: var(--tag-accent);
  font-size: 11px;
  white-space: nowrap;
}

.help-list {
  display: grid;
  gap: 10px;
}

.help-list a {
  display: grid;
  gap: 6px;
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 18px 20px;
  background: var(--surface);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.help-list a:hover {
  border-color: var(--edge-strong);
  background: var(--surface-2);
}

.help-list strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

.help-list span {
  font-size: 13px;
  line-height: 1.8;
  color: var(--fg-3);
}

.help-list mark {
  border-radius: 3px;
  padding: 0 2px;
  background: color-mix(in srgb, var(--grad-3) 26%, transparent);
  color: var(--fg);
}

.help-empty {
  margin: 16px 0 0;
  color: var(--fg-3);
}

/* ---------- Page heading / breadcrumb ---------- */

.help-page-heading {
  padding: clamp(32px, 5vw, 56px) var(--help-pad) 0;
}

.help-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 12.5px;
  color: var(--fg-4);
}

.help-breadcrumb a:hover {
  color: var(--fg-2);
}

.help-breadcrumb-sep {
  color: rgba(255, 255, 255, 0.22);
}

.help-page-heading-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 26px;
}

.help-page-heading h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.2;
}

.help-page-heading > p,
.help-page-heading-row p {
  margin: 0;
  max-width: 620px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--fg-3);
}

.help-page-count {
  display: grid;
  justify-items: end;
  gap: 2px;
  text-align: right;
}

.help-page-count strong {
  font-family: var(--en);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: var(--tag-accent);
}

.help-page-count span {
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg-4);
}

/* ---------- Side-nav layout (category + search) ---------- */

.help-with-side {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 4vw, 48px);
}

.help-side-nav {
  display: grid;
  gap: 2px;
  position: sticky;
  top: 84px;
}

/* Used on both <p> and the <h2>/<h3> that carry the search page's outline, so
   the weight is stated rather than inherited from the element. */
.help-side-title {
  margin: 0 0 10px;
  font-family: var(--en);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-4);
}

.help-side-nav a,
.help-side-nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: none;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  padding: 11px 12px;
  background: transparent;
  color: var(--fg-3);
  font-family: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.help-side-nav a:hover,
.help-side-nav button:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
}

.help-side-nav a[aria-current="page"],
.help-side-nav button[aria-pressed="true"] {
  border-left-color: var(--tag-accent);
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg);
}

.help-side-nav span {
  font-size: 12px;
  color: var(--fg-4);
}

.help-side-contact {
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 16px !important;
  color: var(--liked) !important;
}

.help-side-body {
  display: grid;
  gap: clamp(28px, 4vw, 40px);
  min-width: 0;
}

.help-group h2 {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 700;
}

/* ---------- Article (artboard 1e) ---------- */

.help-article {
  padding: clamp(32px, 5vw, 56px) var(--help-pad) 0;
}

.help-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: start;
  gap: clamp(28px, 5vw, 56px);
}

.help-article-main {
  min-width: 0;
}

.help-article-main h1 {
  margin: 14px 0 28px;
  font-size: clamp(26px, 4.4vw, 40px);
  font-weight: 800;
  line-height: 1.28;
}

.help-answer {
  border: 1px solid color-mix(in srgb, var(--tag-accent) 32%, transparent);
  border-radius: 18px;
  padding: 24px 26px;
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--tag-accent) 12%, transparent), var(--surface) 65%);
  scroll-margin-top: 84px;
}

.help-answer-label {
  margin: 0 0 8px;
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tag-accent);
}

.help-answer-body {
  margin: 0;
  font-size: clamp(15px, 2.8vw, 18px);
  font-weight: 500;
  line-height: 1.85;
}

.help-article-section {
  margin-top: 40px;
  scroll-margin-top: 84px;
}

.help-article-section h2 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
}

.help-article-section p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--fg-2);
}

/* Supporting facts. Most readers need one line out of six, so each is set on
   its own with a marker to land on — run together as paragraphs they read as
   continuous prose that has to be taken in order. */
.help-notes {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.help-notes li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--fg-2);
}

.help-notes li::before {
  content: "";
  position: absolute;
  top: 0.86em;
  left: 0;
  width: 9px;
  height: 1px;
  background: var(--tag-accent);
  opacity: 0.75;
}

.help-note-link {
  margin-top: 18px;
}

.help-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--edge);
  border-radius: 14px;
}

.help-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  white-space: nowrap;
}

.help-table th,
.help-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 14px 18px;
  text-align: right;
}

.help-table thead th,
.help-table th[scope="row"] {
  color: var(--fg-3);
  font-weight: 500;
  text-align: left;
}

.help-table thead th:not(:first-child) {
  text-align: right;
}

.help-table tfoot th,
.help-table tfoot td {
  border-bottom: none;
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  font-weight: 700;
}

/* Steps are one sequence, so they are drawn as one: a rail down the numbers
   instead of four separate cards the eye has to reassemble into an order. */
.help-howto .help-steps {
  border: 1px solid var(--edge);
  border-radius: 16px;
  padding: 22px 24px;
  background: var(--surface);
}

.help-steps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.help-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 16px;
  padding: 0 0 22px 0;
}

.help-steps li:last-child {
  padding-bottom: 0;
}

/* The rail joins each number to the next and stops at the final step. */
.help-steps li::before {
  content: "";
  position: absolute;
  top: 30px;
  bottom: 0;
  left: 14px;
  width: 1px;
  background: var(--edge-strong);
}

.help-steps li:last-child::before {
  display: none;
}

.help-step-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid color-mix(in srgb, var(--tag-accent) 45%, transparent);
  border-radius: 50%;
  background: var(--surface);
  font-family: var(--en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--tag-accent);
}

.help-step-body {
  padding-top: 4px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--fg-2);
}

/* ---------- Aside ---------- */

.help-aside {
  display: grid;
  gap: 24px;
  position: sticky;
  top: 84px;
  border: 1px solid var(--edge);
  border-radius: 16px;
  padding: 22px;
  background: var(--surface);
}

.help-aside-links {
  display: grid;
  gap: 1px;
}

.help-aside-links a {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 11px 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--fg-2);
  transition: color 0.18s ease;
}

.help-aside-links a:first-child {
  border-top: none;
  padding-top: 0;
}

.help-aside-links a:hover {
  color: var(--liked);
}

.help-updated {
  margin: 0;
  font-size: 12px;
  color: var(--fg-4);
}

/* ---------- Feedback ---------- */

/* A footnote to the article, not a section of it: the old panel gave a yes/no
   prompt the same visual weight as the answer above it. */
.help-feedback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 44px;
  border-top: 1px solid var(--edge);
  padding-top: 20px;
}


.help-feedback-label {
  margin: 0;
  font-size: 14.5px;
  font-weight: 500;
}

.help-feedback-actions {
  display: flex;
  gap: 10px;
}

.help-feedback-actions button {
  border: 1px solid var(--edge-strong);
  border-radius: 999px;
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  font-family: inherit;
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.help-feedback-actions button:hover,
.help-feedback-actions button[aria-pressed="true"] {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.1);
}

.help-feedback-escalate {
  display: grid;
  flex-basis: 100%;
  gap: 12px;
  justify-items: start;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 16px;
}

.help-feedback-escalate p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--fg-3);
}

.help-inline-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--edge-strong);
  border-radius: 999px;
  padding: 11px 20px;
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--en);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}

.help-inline-cta:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ---------- Search results (artboard 1d) ---------- */

/* The search page leads with the field, not a banner: the h1 is present and
   visible for anyone landing here, sized so it does not compete with the
   input the way the other pages' headings do. Scoped to out-specify the
   `.help-page-heading h1` rule it shares a container with. */
.help-page-heading h1.help-search-title {
  margin: 0 0 16px;
  font-size: clamp(19px, 2.6vw, 24px);
  font-weight: 700;
  line-height: 1.35;
}

.help-search-summary {
  margin: 20px 0 0;
  font-size: 13.5px;
  color: var(--fg-3);
}

.help-search-summary strong {
  color: var(--fg);
}

.help-ai {
  border: 1px solid color-mix(in srgb, var(--grad-2) 34%, transparent);
  border-radius: 18px;
  padding: 24px 26px;
  background: linear-gradient(150deg, rgba(123, 92, 240, 0.14), var(--surface) 62%);
}

.help-ai-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--en);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* The label is a real heading; it still has to look like the eyebrow it is. */
.help-ai-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.help-ai-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-2), var(--grad-3));
}

.help-ai-meta {
  margin-left: auto;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg-4);
}

.help-ai-body p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--fg-2);
}

.help-ai-body p:first-child {
  font-size: clamp(15px, 2.6vw, 17px);
  font-weight: 500;
  color: var(--fg);
}

/* Placeholder shown where the answer will land, so the panel does not open
   as an empty box for the seconds the model takes. */
.help-ai-skeleton {
  display: grid;
  gap: 12px;
  padding: 4px 0 6px;
}

.help-ai-skeleton-line {
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.16) 50%,
    rgba(255, 255, 255, 0.06) 100%
  );
  background-size: 220% 100%;
  animation: help-ai-shimmer 1.5s ease-in-out infinite;
}

/* Uneven lengths read as text being written, rather than as a loading bar. */
.help-ai-skeleton-line:nth-child(1) {
  width: 92%;
}

.help-ai-skeleton-line:nth-child(2) {
  width: 100%;
  animation-delay: 0.12s;
}

.help-ai-skeleton-line:nth-child(3) {
  width: 64%;
  animation-delay: 0.24s;
}

@keyframes help-ai-shimmer {
  from {
    background-position: 140% 0;
  }
  to {
    background-position: -40% 0;
  }
}

/* The dot beside the heading breathes while the request is in flight, so the
   panel reads as working even where the placeholder is scrolled out of view. */
.help-ai[data-help-ai-state="loading"] .help-ai-dot {
  animation: help-ai-pulse 1.4s ease-in-out infinite;
}

@keyframes help-ai-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.72);
  }
}

@media (prefers-reduced-motion: reduce) {
  .help-ai-skeleton-line,
  .help-ai[data-help-ai-state="loading"] .help-ai-dot {
    animation: none;
  }

  .help-ai-skeleton-line {
    background: rgba(255, 255, 255, 0.1);
  }
}

.help-ai-sources {
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.help-ai .help-feedback {
  margin-top: 20px;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  padding: 18px 0 0;
  background: transparent;
}

/* A search that returned nothing. Deliberately more substantial than the thin
   line it replaced: this is where someone decides whether to give up. */
.help-empty-state {
  display: grid;
  gap: 12px;
  justify-items: start;
  border: 1px solid color-mix(in srgb, var(--grad-2) 30%, transparent);
  border-radius: 18px;
  padding: 26px 28px;
  background: linear-gradient(150deg, rgba(123, 92, 240, 0.12), var(--surface) 62%);
}

.help-empty-state h3 {
  margin: 0;
  font-size: clamp(16px, 2.8vw, 19px);
  font-weight: 700;
  line-height: 1.6;
}

.help-empty-state p {
  margin: 0;
  max-width: 60ch;
  font-size: 14px;
  line-height: 1.95;
  color: var(--fg-3);
}

.help-empty-state .help-band-cta {
  margin-top: 4px;
  padding: 13px 24px;
  font-size: 13.5px;
}

.help-inline-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 22px;
  font-size: 13.5px;
  color: var(--fg-3);
}

/* ---------- Guide (artboard 1g) ---------- */

.help-guide {
  display: grid;
  gap: clamp(32px, 6vw, 64px);
}

.help-guide-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: clamp(24px, 5vw, 56px);
  border: 1px solid var(--edge);
  border-radius: 22px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--surface);
}

.help-guide-step:nth-child(even) .help-guide-copy {
  order: 2;
}

.help-guide-num {
  margin: 0 0 10px;
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--liked);
}

.help-guide-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(20px, 3.4vw, 26px);
  font-weight: 700;
}

.help-guide-copy > p {
  margin: 0 0 20px;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--fg-3);
}

.help-guide-shot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--edge);
  border-radius: 18px;
}

.help-guide-step-plain {
  grid-template-columns: minmax(0, 1fr);
  max-width: 780px;
}

/* ---------- Contact (artboard 1g) ---------- */

.help-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: clamp(24px, 4vw, 48px);
}

.help-form {
  display: grid;
  gap: 22px;
  border: 1px solid var(--edge);
  border-radius: 20px;
  padding: clamp(22px, 4vw, 32px);
  background: var(--surface);
}

.help-field {
  display: grid;
  gap: 10px;
  border: none;
  margin: 0;
  padding: 0;
}

.help-field > label,
.help-field > legend {
  padding: 0;
  font-size: 13px;
  color: var(--fg-3);
}

.help-radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.help-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.help-radio span {
  display: inline-block;
  border: 1px solid var(--edge-strong);
  border-radius: 999px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13.5px;
  color: var(--fg-2);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.help-radio input:checked + span {
  border-color: transparent;
  background: linear-gradient(135deg, var(--cta-grad-start), var(--cta-grad-end));
  color: var(--fg);
}

.help-radio input:focus-visible + span {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

.help-form textarea,
.help-form input[type="email"] {
  width: 100%;
  border: 1px solid var(--edge-strong);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.8;
  resize: vertical;
}

.help-form textarea::placeholder,
.help-form input::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.help-attach {
  border: 1px dashed var(--edge-strong);
  border-radius: 14px;
  padding: 18px 20px;
}

.help-attach ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.help-attach li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
}

.help-attach li span {
  color: var(--fg-4);
}

.help-attach li b {
  font-weight: 500;
  color: var(--fg-2);
  overflow-wrap: anywhere;
}

.help-form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 20px;
}

.help-form-submit {
  padding: 15px 32px;
  font-size: 14px;
}

.help-form-foot p {
  margin: 0;
  font-size: 12.5px;
  color: var(--fg-4);
}

.help-form-status {
  margin: 0;
  border-left: 2px solid var(--edge-strong);
  border-radius: 4px 12px 12px 4px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--fg-2);
}

.help-form-status[data-tone="success"] {
  border-left-color: var(--grad-1);
}

.help-form-status[data-tone="error"] {
  border-left-color: var(--grad-4);
}

.help-form-submit:disabled {
  cursor: progress;
  opacity: 0.6;
}

.help-contact-aside {
  border: 1px solid var(--edge);
  border-radius: 18px;
  padding: 22px;
  background: var(--surface);
}

.help-contact-note {
  margin: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 16px;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--fg-4);
}

.help-contact-note a {
  color: var(--liked);
}

/* ---------- Contact band ---------- */

.help-band {
  position: relative;
  overflow: hidden;
  margin-top: clamp(40px, 6vw, 64px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: clamp(36px, 5vw, 56px) 0;
}

.help-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(142, 45, 226, 0.28), rgba(74, 0, 224, 0.1) 55%, transparent);
  pointer-events: none;
}

.help-band-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--help-pad);
}

.help-band h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 3.6vw, 26px);
  font-weight: 800;
}

.help-band p {
  margin: 0;
  font-size: 14px;
  color: var(--fg-3);
}

.help-band-cta {
  padding: 16px 28px;
  background: var(--fg);
  color: #0b0b18;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- Footer ---------- */

.help-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: clamp(40px, 6vw, 72px);
}

.help-footer-inner {
  flex-wrap: wrap;
  padding-block: 32px;
}

.help-footer-logo img {
  width: auto;
  height: 22px;
  opacity: 0.7;
}

.help-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
  color: var(--fg-3);
}

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

.help-footer-note {
  width: 100%;
  margin: 0;
  font-size: 12px;
  color: var(--fg-4);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .help-with-side,
  .help-article-layout,
  .help-contact,
  .help-guide-step {
    grid-template-columns: minmax(0, 1fr);
  }

  .help-side-nav,
  .help-aside {
    position: static;
  }

  .help-side-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .help-side-nav .help-side-title {
    width: 100%;
  }

  .help-side-nav a,
  .help-side-nav button {
    border: 1px solid var(--edge);
    border-radius: 999px;
    padding: 9px 16px;
  }

  .help-side-nav a[aria-current="page"],
  .help-side-nav button[aria-pressed="true"] {
    border-color: var(--tag-accent);
  }

  .help-side-contact {
    border-top: none;
    padding-top: 9px !important;
  }

  .help-guide-step:nth-child(even) .help-guide-copy {
    order: 0;
  }

  .help-guide-shot {
    max-width: 320px;
  }

  .help-article-layout .help-aside {
    order: 2;
  }
}

@media (max-width: 720px) {
  .help-nav-toggle {
    display: block;
  }

  .help-nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    margin: 12px 0 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 12px;
    font-size: 15px;
  }

  .help-nav-links.is-open {
    display: flex;
  }

  .help-nav-links a {
    padding: 10px 2px;
  }

  .help-nav-links .help-cta {
    justify-content: center;
    margin-top: 8px;
  }

  .help-nav-inner {
    flex-wrap: wrap;
  }

  .help-search {
    flex-wrap: wrap;
    border-radius: 22px;
    padding: 12px 14px;
  }

  .help-search-submit {
    width: 100%;
    justify-content: center;
  }

  .help-page-count strong {
    font-size: 34px;
  }
}
