/**
 * Help & Support page styles — extends public/site/css/site.css
 * to match the marketing landing chrome (white header, brand tokens).
 */

.support-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface-page);
  color: var(--text-body);
}

.support-main {
  flex: 1;
  width: 100%;
  max-width: var(--prose-max);
  margin: 0 auto;
  padding: 40px var(--page-gutter) 80px;
}

/* Sticky white header — mirrors marketing Nav */
.lm-site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid var(--border-default);
}

.lm-site-header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lm-site-header a.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.lm-site-header a.logo-link:hover {
  opacity: 0.85;
  text-decoration: none;
}

.lm-site-header .logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.lm-nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.lm-nav-links a {
  color: var(--lykmnd-brand);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.lm-nav-links a:hover {
  color: var(--lykmnd-brand);
  opacity: 0.85;
  text-decoration: none;
}

.lm-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--control-height-compact);
  padding: 0 16px;
  border-radius: var(--radius-button-compact);
  background: var(--lykmnd-brand);
  color: #ffffff !important;
  font-size: var(--text-app-button);
  font-weight: 600;
  font-family: var(--font-ui);
  text-decoration: none !important;
  border: 0;
  cursor: pointer;
}

.lm-btn-primary:hover,
.lm-btn-primary:focus,
.lm-btn-primary:visited {
  opacity: 0.9;
  color: #ffffff !important;
  text-decoration: none !important;
}

.lm-nav-compact {
  display: none;
}

/* Hero */
.support-hero {
  text-align: center;
  margin-bottom: 40px;
}

.support-hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lykmnd-pulse);
  margin-bottom: 12px;
}

.support-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--lykmnd-brand);
  margin: 0 0 14px;
}

.support-hero-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto;
}

/* Overview */
.section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lykmnd-muted);
  text-align: center;
  margin-bottom: 20px;
}

.overview {
  margin-bottom: 40px;
}

.overview-card {
  background: var(--surface-sunken);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.overview-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 4px 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-default);
}

.overview-row:last-child {
  border-bottom: none;
}

.overview-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lykmnd-white);
  border: 1px solid var(--border-default);
  align-self: start;
  margin-top: 2px;
}

.overview-icon .fav-star {
  width: 22px;
  height: 22px;
  border-radius: 11px;
  background: var(--lykmnd-favorites);
  color: white;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overview-icon .bi-lightning-fill {
  color: var(--lykmnd-pulse);
  font-size: 18px;
}

.overview-icon .bi-lightbulb-fill,
.overview-icon .bi-people-fill {
  color: var(--lykmnd-brand);
  font-size: 16px;
}

.overview-icon .bi-share-fill {
  color: var(--lykmnd-favorites);
  font-size: 16px;
}

.overview-category {
  font-size: 15px;
  font-weight: 700;
  color: var(--lykmnd-brand);
  margin-bottom: 4px;
}

.overview-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--lykmnd-brand);
}

.overview-body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 2px;
}

/* Topic pills */
.pill-dock {
  position: sticky;
  top: 72px;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0 14px;
  margin: 0 0 8px;
  border-bottom: 1px solid transparent;
}

.pill-dock.is-stuck {
  border-bottom-color: var(--border-default);
  box-shadow: var(--shadow-card);
}

.pill-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0 4px;
}

.pill-scroll::-webkit-scrollbar {
  display: none;
}

.pill {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: var(--radius-chip);
  border: 1px solid var(--border-default);
  background: var(--surface-sunken);
  color: var(--lykmnd-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-ui);
  white-space: nowrap;
}

.pill:hover {
  color: var(--lykmnd-brand);
}

.pill.is-active {
  background: var(--lykmnd-brand);
  border-color: var(--lykmnd-brand);
  color: var(--lykmnd-white);
  font-weight: 600;
}

/* FAQ panels */
.help-panel {
  display: none;
  margin-bottom: 40px;
}

.help-panel.is-active {
  display: block;
}

.topic-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--lykmnd-brand);
  margin: 16px 0 8px;
}

.accordion {
  border-top: 1px solid var(--border-strong);
}

.accordion-item {
  border-bottom: 1px solid var(--border-strong);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-ui);
}

.accordion-q {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  color: var(--lykmnd-brand);
  line-height: 1.4;
}

.accordion-chevron {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-sunken);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lykmnd-muted);
  font-size: 12px;
  transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}

.accordion-item.is-open .accordion-chevron {
  transform: rotate(180deg);
  background: var(--lykmnd-brand);
  color: var(--lykmnd-white);
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}

.accordion-item.is-open .accordion-panel {
  grid-template-rows: 1fr;
}

.accordion-panel-inner {
  overflow: hidden;
}

.answer {
  padding: 0 28px 18px 0;
}

.answer p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.55;
  margin-bottom: 10px;
}

.answer p:last-child {
  margin-bottom: 0;
}

.answer ul {
  margin: 8px 0 12px 2px;
  padding: 0;
  list-style: none;
}

.answer li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.5;
}

.answer li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--lykmnd-favorites);
  font-weight: 700;
}

.pro-tip {
  margin-top: 24px;
  padding: 18px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-default);
  background: var(--surface-sunken);
  position: relative;
  overflow: hidden;
}

.pro-tip::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--lykmnd-favorites), var(--lykmnd-pulse));
}

.pro-tip-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.pro-tip-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lykmnd-brand);
}

.pro-tip-body {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.55;
}

.contact-band {
  background: var(--surface-sunken);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: 36px 28px;
  text-align: center;
  margin: 16px 0 0;
}

.contact-band h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--lykmnd-brand);
  margin-bottom: 10px;
}

.contact-band p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 22px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-button);
  background: var(--lykmnd-brand);
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 15px;
}

.contact-email:hover,
.contact-email:focus,
.contact-email:visited {
  opacity: 0.9;
  color: #ffffff !important;
  text-decoration: none !important;
}

.legal-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 22px;
}

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

.legal-links a:hover {
  color: var(--lykmnd-brand);
}

/* Dark footer — mirrors marketing Footer */
.lm-site-footer {
  background: #060a22;
  color: rgba(255, 255, 255, 0.55);
  padding: 40px 0;
  margin-top: 64px;
}

.lm-site-footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  flex-wrap: wrap;
}

.lm-site-footer img {
  height: 28px;
  width: auto;
  display: block;
  /* Same header wordmark file; invert for navy footer */
  filter: brightness(0) invert(1);
}

.lm-site-footer a:has(img) {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.lm-site-footer-links {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.lm-site-footer a {
  color: inherit;
  text-decoration: none;
}

.lm-site-footer a:hover {
  color: #fff;
  text-decoration: none;
}

.lm-site-footer a.footer-strong {
  color: #fff;
  font-weight: 600;
}

@media (max-width: 960px) {
  .lm-nav-links {
    display: none;
  }
  .lm-nav-compact {
    display: block;
  }
}

@media (max-width: 640px) {
  .support-main {
    padding: 28px 16px 64px;
  }
  .contact-email {
    width: 100%;
    justify-content: center;
  }
  .overview-row {
    padding: 16px 14px;
  }
}
