/* Sibelle FAQ & /support Help Center styles
   Extends Sibelle Design System B tokens from styles.css.
   Pure white canvas, tactile B1 controls, B2 linen/mint cards, zero decorative divider lines. */

/* ==================== HOMEPAGE FAQ SECTION ==================== */
.faq-section {
  padding: 108px 0 96px;
  background: var(--bg);
}

.faq-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.faq-head-copy {
  max-width: 720px;
}

.faq-lead {
  margin-top: 14px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
}

.faq-head-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 960px;
}

.faq-item {
  border-radius: 22px;
  background: var(--soft-mint);
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(18, 63, 53, 0.04);
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.faq-item[open] {
  background: #ffffff;
  border-color: rgba(8, 127, 101, 0.28);
  box-shadow: var(--sibelle-card-elevation);
}

.faq-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 60px;
  padding: 18px 24px;
  font-family: 'Nunito', 'Inter', sans-serif;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--forest);
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--action);
  transition: transform 0.22s var(--ease-out), background-color 0.2s var(--ease-out);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  background: var(--mint);
}

.faq-body {
  padding: 0 24px 22px;
  font-size: 16px;
  line-height: 1.65;
  color: #24473f;
}

.faq-body p + p {
  margin-top: 12px;
}

.faq-body strong {
  color: var(--forest);
}

.faq-caution {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--amber-bg);
  color: var(--amber-ink);
  font-size: 14.5px;
  line-height: 1.55;
}

.faq-deep-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--action);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (hover: hover) {
  .faq-deep-link:hover {
    color: var(--action-hover);
  }
}

/* ==================== SUPPORT HUB & ARTICLE LAYOUT ==================== */
.support-hero {
  padding: 44px 0 40px;
  background: var(--bg);
}

.support-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

.support-article-container {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 32px;
}

.support-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 8px;
  row-gap: 0;
  font-size: 14px;
  color: var(--muted);
  list-style: none;
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--forest);
  text-decoration: underline;
}

.breadcrumb-sep {
  color: #93aca5;
  user-select: none;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--soft-mint);
  border: 1px solid var(--border);
}

.lang-switch a,
.lang-switch span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
}

.lang-switch a {
  color: var(--muted);
}

.lang-switch .is-current {
  background: #ffffff;
  color: var(--forest);
  box-shadow: 0 1px 4px rgba(18, 63, 53, 0.1);
}

.support-h1 {
  font-family: 'Nunito', 'Inter', sans-serif;
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--forest);
  max-width: 18ch;
}

.support-article-h1 {
  font-family: 'Nunito', 'Inter', sans-serif;
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: var(--forest);
}

.support-sub {
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 64ch;
}

.support-search-wrap {
  margin-top: 28px;
  max-width: 620px;
}

.support-search-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 8px;
}

.support-search-input {
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  background: var(--soft-mint);
  color: var(--forest);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.support-search-input::placeholder {
  color: #6b8780;
}

.support-search-input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--action);
  box-shadow: 0 0 0 4px rgba(8, 127, 101, 0.14);
}

.support-search-status {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  min-height: 20px;
}

.silo-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.silo-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--soft-mint);
  border: 1px solid var(--border);
  color: var(--forest);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
}

@media (hover: hover) {
  .silo-pill:hover {
    background: var(--mint);
    border-color: rgba(8, 127, 101, 0.35);
  }
}

/* ==================== SILOS GRID ON HUB ==================== */
.silos-section {
  padding: 20px 0 72px;
}

.silos-stack {
  display: grid;
  gap: 44px;
}

.silo-block {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.silo-header {
  margin-bottom: 18px;
}

.silo-kicker {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--action);
  margin-bottom: 6px;
}

.silo-title {
  font-family: 'Nunito', 'Inter', sans-serif;
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 900;
  color: var(--forest);
  line-height: 1.2;
}

.silo-desc {
  margin-top: 6px;
  font-size: 15.5px;
  color: var(--muted);
  max-width: 68ch;
}

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

.article-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(18, 63, 53, 0.04);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s var(--ease-out), border-color 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}

@media (hover: hover) {
  .article-card:hover {
    transform: translateY(-2px);
    border-color: rgba(8, 127, 101, 0.36);
    box-shadow: var(--sibelle-card-elevation);
  }
}

.article-card h3 {
  font-family: 'Nunito', 'Inter', sans-serif;
  font-size: 18.5px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--forest);
}

.article-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.article-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--action);
}

/* ==================== ARTICLE PAGE CONTENT ==================== */
.direct-answer-card {
  margin-top: 28px;
  padding: 24px 26px;
  border-radius: 24px;
  background: var(--linen);
  border: 1px solid #eadfcd;
}

.direct-answer-label {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--action);
  margin-bottom: 10px;
}

.direct-answer-text {
  font-size: 18px;
  line-height: 1.6;
  color: var(--forest);
  font-weight: 500;
}

.article-body {
  padding: 36px 0 44px;
}

.article-section + .article-section {
  margin-top: 36px;
}

.article-section h2 {
  font-family: 'Nunito', 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--forest);
  line-height: 1.25;
  margin-bottom: 14px;
}

.article-section p {
  font-size: 16.5px;
  line-height: 1.68;
  color: #21443c;
}

.article-section p + p {
  margin-top: 12px;
}

.steps-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 16px;
  counter-reset: step-counter;
}

.steps-list li {
  counter-increment: step-counter;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--soft-mint);
  border: 1px solid var(--border);
}

.steps-list li::before {
  content: counter(step-counter);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--forest);
  color: #ffffff;
  font-family: 'Nunito', 'Inter', sans-serif;
  font-weight: 900;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.step-content strong {
  display: block;
  font-family: 'Nunito', 'Inter', sans-serif;
  font-size: 17.5px;
  font-weight: 800;
  color: var(--forest);
  margin-bottom: 4px;
}

.step-content p {
  font-size: 15.5px;
  line-height: 1.58;
  color: #2d5148;
}

.safety-box {
  margin-top: 32px;
  padding: 22px 24px;
  border-radius: 22px;
  background: var(--coral-bg);
  border: 1px solid var(--coral-border);
}

.safety-box-title {
  font-family: 'Nunito', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--coral-ink);
  margin-bottom: 8px;
}

.safety-box p {
  font-size: 15.5px;
  line-height: 1.6;
  color: #5c271d;
}

.safety-box p + p {
  margin-top: 8px;
}

.article-faq {
  margin-top: 40px;
}

.article-faq h2 {
  font-family: 'Nunito', 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--forest);
  margin-bottom: 16px;
}

.related-box {
  margin-top: 44px;
}

.related-box h2 {
  font-family: 'Nunito', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--forest);
  margin-bottom: 16px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.related-link {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--soft-mint);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--forest);
  font-family: 'Nunito', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  min-height: 92px;
  transition: background-color 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
}

@media (hover: hover) {
  .related-link:hover {
    background: var(--mint);
    border-color: rgba(8, 127, 101, 0.35);
  }
}

.related-silo {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--action);
}

/* ==================== LOT 3: QUESTION / FEEDBACK WIDGET ==================== */
.faq-widget {
  margin-top: 44px;
  padding: 28px 30px;
  border-radius: 26px;
  background: var(--soft-mint);
  border: 1px solid var(--border);
  max-width: 960px;
}

.faq-helpful-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.faq-helpful-label {
  font-family: 'Nunito', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--forest);
}

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

.faq-vote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--sibelle-btn-secondary-bg);
  box-shadow: var(--sibelle-btn-secondary-shadow);
  color: var(--forest);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s var(--ease-out), border-color 0.18s var(--ease-out), color 0.18s var(--ease-out);
}

.faq-vote-btn[aria-pressed='true'] {
  background: var(--sibelle-btn-primary-bg);
  border-color: transparent;
  color: #ffffff;
  box-shadow: var(--sibelle-btn-primary-shadow);
}

.faq-helpful-msg {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--action);
  margin: -10px 0 18px;
}

.faq-form-card {
  padding: 24px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--border);
}

.faq-form-title {
  font-family: 'Nunito', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--forest);
}

.faq-form-sub {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.faq-form {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.faq-field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 6px;
}

.faq-textarea,
.faq-email {
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: #ffffff;
  color: var(--forest);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}

.faq-textarea {
  min-height: 96px;
  resize: none;
  field-sizing: content;
}

.faq-email {
  min-height: 48px;
}

.faq-textarea:focus,
.faq-email:focus {
  outline: none;
  border-color: var(--action);
  box-shadow: 0 0 0 4px rgba(8, 127, 101, 0.14);
}

.faq-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.faq-form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}

.faq-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  background: var(--sibelle-btn-primary-bg);
  box-shadow: var(--sibelle-btn-primary-shadow);
  color: #ffffff;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s var(--ease-out), filter 0.18s var(--ease-out);
}

.faq-submit-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

@media (hover: hover) {
  .faq-submit-btn:hover:not(:disabled) {
    background: var(--sibelle-btn-primary-hover);
    transform: translateY(-1px);
  }
}

.faq-privacy-note {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
}

.faq-feedback-status {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.5;
}

.faq-feedback-status.is-success {
  background: var(--mint);
  color: var(--forest);
  font-weight: 600;
}

.faq-feedback-status.is-fallback {
  background: var(--linen);
  color: var(--forest);
}

.faq-feedback-status.is-error {
  background: var(--coral-bg);
  color: var(--coral-ink);
  font-weight: 600;
}

.faq-fallback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.faq-fallback-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--forest);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 860px) {
  .faq-section {
    padding: 72px 0 64px;
  }

  .support-container,
  .support-article-container {
    padding: 0 20px;
  }

  .article-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .faq-summary {
    padding: 16px 18px;
    font-size: 17px;
  }

  .faq-body {
    padding: 0 18px 18px;
    font-size: 15.5px;
  }

  .faq-widget {
    padding: 20px 18px;
    border-radius: 22px;
  }

  .faq-form-card {
    padding: 18px 16px;
  }

  .direct-answer-card {
    padding: 20px 18px;
  }

  .direct-answer-text {
    font-size: 16.5px;
  }

  .steps-list li {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .steps-list li::before {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item,
  .faq-chevron,
  .article-card,
  .faq-vote-btn,
  .faq-submit-btn {
    transition: none;
  }
}


/* ==================== LEGAL PAGES (PRIVACY, TERMS, LEGAL NOTICE) ==================== */
.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.legal-tab {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--forest);
  font-family: 'Nunito', 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.legal-tab.is-current {
  background: var(--forest);
  border-color: var(--forest);
  color: #ffffff;
}

@media (hover: hover) {
  .legal-tab:not(.is-current):hover {
    border-color: var(--action);
    background: var(--soft-mint);
    color: var(--action);
  }
}

.legal-version-meta {
  margin-top: 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.legal-summary-card {
  margin-top: 28px;
  padding: 24px 26px;
  border-radius: 22px;
  background: var(--soft-mint);
  border: 1px solid var(--border);
}

.legal-summary-list {
  margin-top: 10px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15.5px;
  line-height: 1.54;
  color: var(--forest);
}

.legal-section h2 {
  font-family: 'Nunito', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--forest);
}

.legal-inline-link {
  color: var(--action);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-contact-box {
  margin-top: 40px;
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--linen);
  border: 1px solid #e8dfd0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--forest);
}
