.support-main {
  padding-bottom: clamp(45px, 7vw, 88px);
}

.support-intro {
  padding-bottom: clamp(24px, 4vw, 50px);
}

.support-intro h1 {
  max-width: 20ch;
}

.support-columns {
  display: grid;
  grid-template-columns: minmax(180px, 235px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 75px);
  align-items: start;
}

.support-nav {
  display: block;
  margin: 0;
  padding: clamp(12px, 2vw, 18px);
  border: 1px solid #c8bedf;
  border-radius: 14px;
  background: var(--lilac);
  color: var(--indigo-deep);
}

.support-nav p {
  margin: 3px 8px 8px;
  font-size: .9375rem;
  font-weight: 760;
}

.support-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.support-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px;
  border-radius: 7px;
  color: var(--indigo-deep);
  font-size: .9375rem;
  line-height: 1.4;
  font-weight: 630;
  text-underline-offset: .2em;
  overflow-wrap: anywhere;
}

.support-nav a:hover, .support-nav a:focus-visible {
  background: #ded7f1;
  text-decoration-thickness: .12em;
}

.help-search {
  margin-bottom: clamp(22px, 4vw, 34px);
  padding: clamp(14px, 3vw, 22px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #edf5ef;
}

.help-search label {
  display: block;
  margin-bottom: 8px;
  color: var(--indigo-deep);
  font-weight: 720;
}

.help-search-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.help-search-controls input {
  flex: 1 1 12rem;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--control-line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: 450 1rem/1.45 var(--sans);
}

.help-search p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .9375rem;
}

#support-assistant button,
#support-assistant #support-assistant-privacy,
#support-assistant :is(.support-assistant-contact, .support-assistant-priority-label),
#support-assistant :is(.support-assistant-suggestions, .support-assistant-followups) > p {
  font-size: .9375rem;
}

#help-search-status:empty {
  margin: 0;
}

#help-search-status {
  color: var(--indigo-deep);
  font-weight: 650;
}

.help-group + .help-group {
  margin-top: clamp(28px, 4vw, 45px);
}

.help-group > h2,
.support-card h2,
.policy-content h2 {
  margin-bottom: 13px;
  font-size: clamp(1.42rem, 3.2vw, 2.18rem);
  letter-spacing: -.045em;
}

.help-group > p {
  margin-bottom: 13px;
  color: var(--muted);
}

.help-group .help-topic {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #edf5ef;
}

.help-group .help-topic + .help-topic {
  margin-top: 9px;
}

.help-group .help-topic:is([open], :target) {
  border-color: #adc6b8;
}

.help-group summary {
  min-height: 48px;
  padding: 13px 16px;
  border-radius: 9px;
  font-weight: 710;
  font-size: 1rem;
}

.help-group summary:hover {
  background: #e0efe6;
}

.help-group .help-topic > :is(p, ol, ul) {
  margin: 0;
  padding: 0 16px 16px;
  font-size: 1rem;
  line-height: 1.66;
  color: var(--ink);
}

.help-group .help-topic :is(p, li) a { font-weight: 620; text-underline-offset: .18em; }
.help-group .help-topic :is(p, li) a:hover { color: var(--indigo); }

.help-group .help-topic > :is(ol, ul) {
  margin-inline-start: 1.2em;
}

.help-group .help-topic li + li,
.beta-session li + li {
  margin-top: .38em;
}

.support-contact {
  margin-top: 28px;
  padding: clamp(18px, 4vw, 30px);
}

.support-contact h2 {
  margin-bottom: 7px;
  font-size: 1.35rem;
  letter-spacing: -.025em;
}

.support-notice {
  max-width: 75ch;
  margin-bottom: 20px;
}

.support-notice p {
  margin-top: 4px;
}

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

.support-card,
.policy-content {
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.support-card > p,
.beta-session li,
.policy-content section > p {
  color: var(--muted);
}

#beta-prepare {
  margin-top: 20px;
}

#beta-prepare fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

#beta-prepare legend {
  margin-bottom: 8px;
  padding: 0;
  font-size: .9375rem;
  font-weight: 750;
}

.check-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 48px;
  margin-bottom: 7px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf8;
  line-height: 1.45;
  cursor: pointer;
}

.check-option:hover {
  border-color: #adc6b8;
}

.check-option:has(input:checked) {
  border-color: #a4c5b4;
  background: var(--mint);
}

.check-option input,
.demo-import-row input {
  flex: none;
  width: 19px;
  height: 19px;
  margin: 2px 0 0;
  accent-color: var(--emerald);
}

#beta-download {
  margin-top: 11px;
  cursor: pointer;
}

#beta-status {
  margin-top: 9px;
}

.beta-session {
  background: #f7f5fc;
  border-color: #e2ddef;
}

.beta-session ol {
  padding-inline-start: 1.4em;
  margin: 0 0 14px;
}

.beta-session li::marker {
  color: var(--indigo);
  font-weight: 740;
}

.beta-guidance {
  margin-top: 27px;
}

.policy-content {
  max-width: 76ch;
  background: #edf5ef;
  font-size: clamp(1rem, .96rem + .25vw, 1.0625rem);
  line-height: 1.74;
  overflow-wrap: anywhere;
}

.policy-content .notice {
  background: var(--lilac);
  border-color: #d9d0ef;
  border-inline-start: 3px solid #7464ac;
  color: var(--indigo-deep);
}

.policy-content section > p { color: var(--ink); }
.policy-content section > p + p { margin-top: .75em; }
.policy-content a { font-weight: 650; text-decoration-thickness: .08em; text-underline-offset: .18em; }
.policy-content a:hover { color: var(--indigo); }

.policy-content section,
.policy-content > p:last-child {
  margin-top: 24px;
}

.policy-content section + section {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.policy-content h2 {
  margin-bottom: 8px;
}

.marketing-demo {
  padding-block: clamp(30px, 5vw, 62px) clamp(39px, 6vw, 75px);
}

.marketing-demo .demo-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(220px, .82fr);
  align-items: center;
  gap: clamp(20px, 4vw, 58px);
  padding: clamp(22px, 4.5vw, 54px);
  border-radius: clamp(14px, 3vw, 24px);
  background: url("/assets/marketing/flight-trail.svg") center / cover, linear-gradient(113deg, #093d33, #144b43 59%, #43336d);
  color: var(--white);
}

.marketing-demo .demo-banner h1 {
  max-width: 17ch;
  margin: 8px 0 14px;
  font-size: clamp(2.15rem, 5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -.068em;
}

.marketing-demo .demo-banner .eyebrow {
  margin: 0;
  color: #c4ecd6;
}

.demo-lede {
  max-width: 43ch;
  color: #edfaf0;
  font-size: clamp(.98rem, 2vw, 1.14rem);
}

.marketing-demo .demo-catalogue-status {
  margin-block: 12px 0;
  color: #cdecdb;
  font-size: .9375rem;
}

.demo-secondary {
  border-color: #a3c0ae;
  color: #f1fbf3;
}

.demo-secondary:hover {
  border-color: #c5e6cc;
  background: #ffffff17;
  color: #fff;
}

.demo-banner :focus-visible {
  outline-color: #d8f2c8;
}

.demo-start {
  padding: clamp(15px, 3vw, 28px);
  border: 1px solid #d5eadba3;
  border-radius: 14px;
  background: #edf5ef;
  color: var(--ink);
}

.demo-start h2 {
  font-size: 1.35rem;
  letter-spacing: -.035em;
}

.demo-start ol {
  padding-inline-start: 1.4em;
  margin-block: 12px;
}

.demo-start li + li {
  margin-top: 4px;
}

.demo-start li::marker {
  color: var(--emerald);
  font-weight: 760;
}

.demo-start #demo-tutorial {
  margin-block: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9375rem;
}

/* A light reading panel nested inside the dark, animated demo banner. */
body.marketing-page[data-aurora-intensity="professional"] .demo-banner .demo-start :is(h2, strong) { color: var(--ink); }
body.marketing-page[data-aurora-intensity="professional"] .demo-banner .demo-start a:not(.button) { color: var(--emerald); }
body.marketing-page[data-aurora-intensity="professional"] .demo-banner .demo-start a:not(.button):hover { color: var(--indigo); }
body.marketing-page[data-aurora-intensity="professional"] .demo-banner .demo-start :focus-visible { outline-color: var(--focus); }

.demo-grid {
  display: grid;
  grid-template-columns: minmax(225px, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 16px;
  margin-top: 18px;
}

.marketing-demo .demo-panel {
  min-width: 0;
  padding: clamp(16px, 3.5vw, 31px);
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
  color: var(--ink);
  overflow-wrap: anywhere;
}

.demo-panel h2 {
  font-size: clamp(1.27rem, 2.7vw, 2rem);
  letter-spacing: -.04em;
  text-wrap: initial;
}

.demo-panel h3 {
  font-size: 1.12rem;
  letter-spacing: -.025em;
}

.demo-panel .mini,
.demo-catalogue > p {
  color: var(--muted);
  font-size: .9375rem;
}

.demo-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.demo-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 54px;
  padding: 9px;
  border: 1px solid #c8d8ce;
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
  font: 650 .87rem/1.3 var(--sans);
  text-align: left;
  cursor: pointer;
}

.demo-item:hover {
  background: #f6faf7;
  border-color: #9ab9a8;
}

.demo-item[aria-pressed="true"] {
  border-color: var(--emerald);
  background: var(--mint);
  box-shadow: inset 2px 0 var(--emerald);
}

.demo-item-name small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 500;
}

.demo-thumb {
  display: block;
  width: 39px;
  height: 39px;
}

.demo-illustration {
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-illustration .demo-thumb {
  width: 60px;
  height: 60px;
  flex: none;
}

.demo-score {
  color: var(--emerald);
  font-weight: 780;
  font-variant-numeric: tabular-nums;
}

#demo-delta {
  padding: 10px 13px;
  border-radius: 8px;
  background: var(--lilac);
  color: var(--indigo);
}

.demo-actions,
.demo-resources {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-block: 17px 4px;
}

.demo-actions .button {
  cursor: pointer;
}

.demo-actions .button:not(.secondary):not(.ghost) {
  background: var(--emerald);
  border-color: var(--emerald);
  color: var(--white);
}

.demo-actions .button:not(.secondary):not(.ghost):hover {
  background: var(--forest);
  border-color: var(--forest);
}

.demo-actions .secondary {
  background: var(--lilac);
  color: var(--indigo);
}

.demo-actions .secondary:hover {
  background: #e4dff9;
}

.demo-actions .ghost {
  background: var(--white);
  border-color: #bad0c1;
  color: var(--emerald);
}

.demo-actions .ghost:hover {
  background: var(--mint);
}

.demo-actions .button:disabled {
  opacity: .64;
  cursor: not-allowed;
}

#demo-import {
  margin-top: 16px;
}

.demo-import-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 48px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.demo-import-row small {
  display: block;
  color: var(--muted);
}

#demo-import-status {
  color: var(--emerald);
  font-size: .91rem;
  font-weight: 670;
}

.demo-resources {
  gap: 10px 20px;
}

.support-status {
  margin-top: 14px;
}

@media (min-width: 761px) {
  .demo-catalogue {
    position: sticky;
    top: 24px;
  }
}

@media (min-width: 761px) and (min-height: 46rem) {
  .support-nav { position: sticky; top: 24px; }
}

@media (max-width: 760px) {
  .support-columns,
  .beta-columns,
  .marketing-demo .demo-banner,
  .demo-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .support-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 6px;
  }
}

@media (max-width: 420px) {
  .demo-banner .actions .button,
  .demo-actions .button {
    flex: 1 1 140px;
  }

  .support-nav a { padding-inline: 6px; }
}

/* Interactive audit and tag relevance inside the fictional sample shop. */
.demo-exercise-link {
  display: inline-block;
  margin-top: 9px;
}

.demo-start .demo-exercise-link:focus-visible {
  outline-color: var(--focus);
}

.demo-comparison-grid,
.demo-edit-diff {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.demo-comparison {
  padding: clamp(11px, 2.3vw, 18px);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f6f8f5;
}

.demo-comparison-current {
  border-color: #bbd8c9;
  background: var(--mint);
}

.demo-comparison h4 {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.35;
}

.demo-comparison strong {
  color: var(--forest);
  font-size: clamp(1.16rem, 2.5vw, 1.55rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

.marketing-demo .demo-comparison p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .875rem;
}

.demo-edit {
  margin-top: 17px;
  padding: clamp(12px, 2.7vw, 20px);
  border: 1px solid #ded7ee;
  border-radius: 12px;
  background: #f8f6fc;
}

.marketing-demo .demo-edit h3 {
  margin-top: 0;
}

.demo-edit-diff {
  margin: 10px 0 13px;
}

.demo-edit-diff div {
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid #e2dcf0;
  border-radius: 7px;
  background: white;
}

.demo-edit-diff dt {
  color: var(--indigo);
  font-size: .875rem;
  font-weight: 750;
}

.demo-edit-diff dd {
  margin: 2px 0 0;
  line-height: 1.45;
}

.demo-edit .button,
#demo-tag-apply {
  cursor: pointer;
}

.demo-edit-applied {
  border-color: #b9d9c9;
  background: #f0f8f2;
}

.marketing-demo #demo-relevance {
  margin-block: 16px;
}

.demo-exercise-intro {
  max-width: 62ch;
}

.demo-relevance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin-top: 14px;
}

.demo-relevance-grid > div {
  min-width: 0;
  padding: clamp(13px, 3vw, 22px);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.demo-relevance-grid .demo-tag-result {
  background: #f6f8f5;
}

.marketing-demo .demo-relevance-grid .eyebrow,
.marketing-demo .demo-relevance-grid h3 {
  margin: 0 0 5px;
}

.demo-relevance-grid p {
  color: var(--muted);
}

.demo-candidates {
  min-width: 0;
  margin: 15px 0 0;
  padding: 0;
  border: 0;
}

.demo-candidates legend {
  padding: 0;
  margin-bottom: 7px;
  font-weight: 730;
}

.demo-candidates label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin-bottom: 5px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
}

.demo-candidates label:has(input:checked) {
  background: var(--mint);
  border-color: #8bbbab;
}

.demo-candidates input {
  width: 18px;
  height: 18px;
  flex: none;
  margin: 0;
  accent-color: var(--emerald);
}

.demo-tag-result #demo-tag-status {
  margin-top: 14px;
  color: var(--ink);
  font-weight: 680;
}

.demo-tag-evidence {
  font-size: .92rem;
}

.marketing-demo .demo-exercise-foot {
  margin-bottom: 0;
}

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

@media (max-width: 680px) {
  .demo-relevance-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
