/* ==========================================================================
   Luseed — /support
   Loaded only on the support page, on top of site.css. Deliberately quiet:
   no hero, no artwork, no background plate. Flat #07050f throughout.
   Class names follow the design reference (sp-*) so the two stay comparable.
   ========================================================================== */

/* flat backdrop, replacing the homepage's gradient + star field */
body.page-flat { background: #07050f }

.sp-main { display: block }

/* ---------- header band ---------------------------------------------- */

.sp-head {
  padding: clamp(38px, 5vw, 76px) clamp(20px, 4vw, 56px) clamp(30px, 3.6vw, 54px);
  border-bottom: 1px solid #15102a;
}
.sp-head__inner {
  display: flex; flex-direction: column; gap: 18px;
  max-width: 1328px; margin-inline: auto;
}

.sp-eyebrow {
  display: flex; align-items: center; gap: 14px; margin: 0;
  color: var(--violet); font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
}
.sp-eyebrow__rule { width: 26px; height: 1px; background: #5b47a6 }

.sp-head__title {
  margin: 0; color: #f3effc;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(33px, 3.4vw, 46px); line-height: 1.18;
}
.sp-head__lede {
  margin: 0; max-width: 64ch; color: #a79fc2;
  font-size: 16.5px; line-height: 1.7; text-wrap: pretty;
}

/* ---------- routes ---------------------------------------------------- */

.sp-routes { padding: clamp(24px, 3.4vw, 52px) clamp(20px, 4vw, 56px) 8px }
.sp-routes__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  max-width: 1328px; margin-inline: auto;
}

.sp-route {
  display: grid; grid-template-columns: 52px 1fr; gap: 20px;
  padding: 26px 28px;
  border: 1px solid #1e1735; border-radius: 16px; background: #0a0716;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease;
}
.sp-route:hover, .sp-route:focus-visible { border-color: #33275c; background: #0c0819 }

.sp-route__ring {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid #33275c;
  color: var(--violet); font-size: 23px;
  background: radial-gradient(circle at 50% 40%, rgba(120, 86, 220, .2), rgba(10, 8, 22, 0));
}
.sp-route__body { display: flex; flex-direction: column; gap: 8px }
.sp-route__name {
  color: #ede8fa; font-size: 15px; letter-spacing: .1em; text-transform: uppercase;
}
.sp-route__note { color: #948ab4; font-size: 14.5px; line-height: 1.6; text-wrap: pretty }
.sp-note--short { display: none }
.sp-route__cta {
  display: flex; align-items: center; gap: 9px; padding-top: 4px;
  color: #9a85d6; font-size: 12.5px; letter-spacing: .13em; text-transform: uppercase;
}
.sp-route__cta .icon { font-size: 15px; stroke-width: 1.7 }

/* the security card reads as its own thing, not another contact link */
.sp-route--security {
  border-color: #2a2149;
  background: linear-gradient(180deg, rgba(30, 22, 58, .42), #0a0716);
}
.sp-route--security:hover, .sp-route--security:focus-visible { border-color: #3d2f6b }
.sp-route--security .sp-route__ring {
  border-color: #4a3a82; color: #c4b5fd;
  background: radial-gradient(circle at 50% 40%, rgba(120, 86, 220, .28), rgba(10, 8, 22, 0));
}
.sp-route--security .sp-route__name { color: #f0ebff }
.sp-route--security .sp-route__note { color: #9e94c2 }
.sp-route--security .sp-route__cta { color: #c4b5fd }

/* ---------- shared section shell -------------------------------------- */

.sp-section { padding: clamp(34px, 4.6vw, 72px) clamp(20px, 4vw, 56px) 8px }
.sp-section__inner {
  display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: start;
  max-width: 1328px; margin-inline: auto;
}
.sp-section__aside { display: flex; flex-direction: column; gap: 14px }
.sp-section__aside--sticky { position: sticky; top: 32px }
.sp-section__title {
  margin: 0; color: #f3effc;
  font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.1vw, 28px);
}
.sp-section__note { margin: 0; color: #8c83ac; font-size: 14.5px; line-height: 1.7; text-wrap: pretty }

/* ---------- FAQ -------------------------------------------------------- */

.sp-faq { display: flex; flex-direction: column; border-top: 1px solid #191330 }
.sp-faq__item { border-bottom: 1px solid #191330 }

.sp-faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: 100%; padding: 19px 4px;
  border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 15.5px; line-height: 1.45; text-align: left; color: #b7aed2;
  transition: color .18s ease;
}
.sp-faq__q:hover { color: #d6ceeb }
.sp-faq__q[aria-expanded="true"] { color: #ede8fa }

/* plus -> x, two bars, no icon file */
.sp-faq__plus {
  position: relative; flex: none; width: 15px; height: 15px; transition: transform .18s ease;
}
.sp-faq__plus:before, .sp-faq__plus:after { content: ""; position: absolute; background: #6f659a }
.sp-faq__plus:before { left: 0; top: 7px; width: 15px; height: 1.5px }
.sp-faq__plus:after { left: 7px; top: 0; width: 1.5px; height: 15px }
.sp-faq__q[aria-expanded="true"] .sp-faq__plus { transform: rotate(45deg) }
.sp-faq__q[aria-expanded="true"] .sp-faq__plus:before,
.sp-faq__q[aria-expanded="true"] .sp-faq__plus:after { background: var(--violet) }

.sp-faq__a {
  padding: 0 60px 22px 4px;
  color: #8c83ac; font-size: 14.5px; line-height: 1.72; text-wrap: pretty;
}

/* ---------- contact ---------------------------------------------------- */

.sp-contact { display: flex; flex-direction: column; gap: 22px }

.sp-form {
  display: flex; flex-direction: column; gap: 20px;
  padding: 30px 32px;
  border: 1px solid #1e1735; border-radius: 16px; background: #0a0716;
}
.sp-field {
  display: flex; flex-direction: column; gap: 9px;
  margin: 0; padding: 0; border: 0; min-width: 0;
}
.sp-label {
  padding: 0; color: #7e71a6; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase;
}
.sp-label__opt { color: #4e4670 }

.sp-chips { display: flex; flex-wrap: wrap; gap: 10px }
.sp-chip { position: relative }
.sp-chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer }
.sp-chip span {
  display: block; padding: 10px 18px; border-radius: 999px;
  border: 1px solid #241c42; background: #080614;
  color: #7e75a0; font-size: 12.5px; letter-spacing: .06em; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.sp-chip input:checked + span {
  border-color: #6e56c8; background: rgba(110, 86, 200, .18); color: #cbbcff;
}
.sp-chip input:focus-visible + span { outline: 2px solid #6e56c8; outline-offset: 2px }

.sp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px }

.sp-input {
  height: 46px; padding: 0 14px;
  border: 1px solid #241c42; border-radius: 10px; background: #080614;
  font: inherit; font-size: 14px; color: #e8e4f5;
}
.sp-input::placeholder { color: #5d5580 }
.sp-input:focus { outline: none; border-color: #6e56c8 }
.sp-input--area { height: 132px; padding: 14px; line-height: 1.6; resize: vertical }

.sp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0 }

.sp-form__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 2px;
}
.sp-form__privacy { margin: 0; max-width: 46ch; color: #6f6595; font-size: 12.5px; line-height: 1.6 }

.sp-submit {
  padding: 14px 30px; white-space: nowrap; cursor: pointer;
  border: 1px solid #6e56c8; border-radius: 999px; background: rgba(110, 86, 200, .16);
  font: inherit; font-size: 12.5px; letter-spacing: .15em; text-transform: uppercase; color: #cbbcff;
  transition: background .18s ease, color .18s ease;
}
.sp-submit:hover, .sp-submit:focus-visible { background: rgba(110, 86, 200, .28); color: #e4dbff }

.sp-meta {
  display: flex; align-items: center; gap: 12px; margin: 0;
  color: #6f6595; font-size: 13px;
}
.sp-meta .icon { font-size: 16px; color: #5b5182 }

/* ---------- security --------------------------------------------------- */

.sp-security {
  display: flex; flex-direction: column; gap: 20px;
  padding: 30px 32px;
  border: 1px solid #2a2149; border-radius: 16px;
  background: linear-gradient(180deg, rgba(30, 22, 58, .42), #0a0716);
}
.sp-security__head { display: flex; align-items: flex-start; gap: 16px }
.sp-security__head .icon { flex: none; margin-top: 2px; font-size: 22px; color: #c4b5fd }
.sp-security__kicker {
  margin: 0 0 6px; color: #8577b8;
  font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase;
}
.sp-security__mail {
  color: #dccbff; font-family: var(--serif); font-size: 26px; text-decoration: none;
  transition: color .18s ease;
}
.sp-security__mail:hover, .sp-security__mail:focus-visible { color: #f0e9ff }

.sp-security__list {
  display: flex; flex-direction: column; gap: 11px;
  margin: 0; padding: 16px 0 0; list-style: none; border-top: 1px solid #241c42;
}
.sp-security__list li {
  display: flex; align-items: flex-start; gap: 12px;
  color: #9e94c2; font-size: 14px; line-height: 1.65;
}
.sp-security__list li:before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; background: #7c6bb4;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.2 12.6l5.1 5.1L19.8 7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.2 12.6l5.1 5.1L19.8 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- contribute (hidden until the repos are public) -------------- */

.sp-contribute { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px }
.sp-tile {
  display: flex; flex-direction: column; gap: 11px;
  padding: 24px 24px 26px;
  border: 1px solid #1e1735; border-radius: 16px; background: #0a0716; text-decoration: none;
  transition: border-color .18s ease, background .18s ease;
}
.sp-tile:hover, .sp-tile:focus-visible { border-color: #33275c; background: #0c0819 }
.sp-tile .icon { font-size: 22px; color: var(--violet) }
.sp-tile__name { color: #ede8fa; font-size: 14px; letter-spacing: .1em; text-transform: uppercase }
.sp-tile__note { color: #8c83ac; font-size: 13.5px; line-height: 1.6 }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .sp-section__inner { grid-template-columns: 1fr; gap: 24px }
  .sp-section__aside--sticky { position: static }
  .sp-routes__grid { grid-template-columns: 1fr }
  .sp-contribute { grid-template-columns: 1fr }
}

@media (max-width: 640px) {
  .sp-head__lede { font-size: 14.5px }
  .sp-eyebrow { font-size: 10.5px; letter-spacing: .26em }
  .sp-eyebrow__rule { width: 20px }

  .sp-routes__grid { gap: 10px }

  /* routes become compact rows with a trailing chevron */
  .sp-route {
    grid-template-columns: 40px 1fr 18px; align-items: center;
    gap: 14px; padding: 18px; border-radius: 14px;
  }
  .sp-route__ring { width: 40px; height: 40px; font-size: 19px }
  .sp-route__body { gap: 5px }
  .sp-route__name { font-size: 13px; letter-spacing: .09em }
  .sp-route__note { font-size: 12.5px; line-height: 1.5 }
  .sp-note--full { display: none }
  .sp-note--short { display: inline }
  .sp-route__cta { display: none }
  .sp-route:after {
    content: ""; width: 18px; height: 18px; background: #6f659a;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.2 4.8l7.2 7.2-7.2 7.2'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.2 4.8l7.2 7.2-7.2 7.2'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .sp-faq__q { padding: 15px 0; font-size: 13.5px }
  .sp-faq__a { padding: 0 0 17px; font-size: 12.5px }

  .sp-form { padding: 22px 20px; border-radius: 14px; gap: 16px }
  .sp-row { grid-template-columns: 1fr }
  .sp-input { height: 44px; font-size: 13.5px }
  .sp-input--area { height: 112px }
  /* submit goes full width, below the privacy line */
  .sp-form__foot { flex-direction: column-reverse; align-items: stretch; gap: 14px }
  .sp-submit { width: 100%; padding: 15px 0; font-size: 12px }
  .sp-chips { gap: 8px }
  .sp-chip span { padding: 9px 14px; font-size: 12px }

  .sp-security { padding: 22px 20px; border-radius: 14px }
  .sp-security__mail { font-size: 21px; word-break: break-all }
}

/* ==========================================================================
   Contact form states — sending · success · error · invalid
   All four happen inside the same card; the page never navigates.
   ========================================================================== */

/* ---------- sending: only the button changes -------------------------- */

.sp-submit.is-sending {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border-color: #3d3168; background: rgba(110, 86, 200, .08); color: #8e85b8;
  cursor: default;
}
.sp-spinner {
  width: 14px; height: 14px; flex: none; border-radius: 50%;
  border: 1.5px solid rgba(203, 188, 255, .28); border-top-color: #cbbcff;
  animation: sp-spin .7s linear infinite;
}
@keyframes sp-spin { to { transform: rotate(360deg) } }

.sp-submit:disabled {
  border-color: #2a2247; background: #0b0818; color: #5f5684; cursor: default;
}

/* ---------- success: replaces the form in the same card ---------------- */

@keyframes sp-rise {
  from { opacity: 0; transform: translate3d(0, 8px, 0) }
  to   { opacity: 1; transform: none }
}

.sp-result {
  display: flex; flex-direction: column; gap: 22px;
  padding: 36px 32px 32px;
  border: 1px solid #33275c; border-radius: 16px;
  background: linear-gradient(180deg, rgba(30, 22, 58, .42), #0a0716);
  animation: sp-rise .26s ease both;
}
.sp-result:focus { outline: none }
.sp-result__head { display: flex; align-items: center; gap: 18px }
.sp-result__ring {
  display: flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; flex: none; border-radius: 50%;
}
/* lime is already the site's "yes" from the comparison table — no new green */
.sp-result__ring--ok {
  border: 1px solid #3f5c24; color: var(--lime);
  background: radial-gradient(circle at 50% 40%, rgba(120, 180, 50, .2), rgba(10, 8, 22, 0));
}
.sp-result__ring svg { width: 26px; height: 26px }
.sp-result__title {
  margin: 0 0 7px; color: #f3effc;
  font-family: var(--serif); font-weight: 400; font-size: 28px;
}
.sp-result__to { margin: 0; color: #9a90b8; font-size: 14.5px }
.sp-result__to span { color: #cbbcff }

.sp-result__list {
  display: flex; flex-direction: column; gap: 13px;
  margin: 0; padding: 20px 0 0; list-style: none; border-top: 1px solid #241c42;
}
.sp-result__list li {
  display: flex; align-items: flex-start; gap: 12px;
  color: #9e94c2; font-size: 14px; line-height: 1.65;
}
.sp-result__list li:before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; background: #7c6bb4;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.2 12.6l5.1 5.1L19.8 7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.2 12.6l5.1 5.1L19.8 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sp-result__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 18px; border-top: 1px solid #241c42;
}
.sp-ref { display: flex; flex-direction: column; gap: 5px }
.sp-ref__label { color: #5f5684; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase }
.sp-ref__code {
  color: #a79fc2; font-family: ui-monospace, Menlo, monospace;
  font-size: 14px; letter-spacing: .08em;
}
.sp-ghost {
  padding: 12px 24px; white-space: nowrap; cursor: pointer; text-align: center;
  border: 1px solid #2a2247; border-radius: 999px; background: transparent;
  font: inherit; font-size: 12.5px; letter-spacing: .15em; text-transform: uppercase;
  color: #9a90b8; text-decoration: none;
  transition: border-color .18s ease, color .18s ease;
}
.sp-ghost:hover, .sp-ghost:focus-visible { border-color: #3d3168; color: #c6bce2 }

/* ---------- error: banner above the form, values kept ------------------ */
/* desaturated rose, chosen to sit beside the violet — never a saturated red */

.sp-alert {
  display: grid; grid-template-columns: 20px 1fr; gap: 14px;
  padding: 18px 20px;
  border: 1px solid #5c2f3a; border-radius: 12px; background: rgba(92, 47, 58, .18);
  animation: sp-rise .22s ease both;
}
.sp-alert:focus { outline: none }
.sp-alert svg { width: 20px; height: 20px; margin-top: 1px; color: #de9aa4 }
.sp-alert__body { display: flex; flex-direction: column; gap: 7px }
.sp-alert__title { margin: 0; color: #f0dfe3; font-size: 14px }
.sp-alert__note { margin: 0; color: #bfa3ab; font-size: 13.5px; line-height: 1.65; text-wrap: pretty }
.sp-alert__note a { color: #ebb6be }
.sp-alert__note a:hover, .sp-alert__note a:focus-visible { color: #f6d3d8 }

/* ---------- invalid: inline, under the offending field ----------------- */

.sp-input.is-invalid { border-color: #7a3f4e; background: rgba(92, 47, 58, .16); color: #e8dce0 }
.sp-input.is-invalid:focus { border-color: #a5586a }
.sp-fielderr {
  display: flex; align-items: center; gap: 8px; margin: 0;
  color: #de9aa4; font-size: 12.5px;
}
.sp-fielderr[hidden] { display: none }
.sp-fielderr svg { width: 14px; height: 14px; flex: none }

/* ---------- live region ------------------------------------------------ */

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

@media (prefers-reduced-motion: reduce) {
  .sp-spinner, .sp-result, .sp-alert { animation: none }
}

@media (max-width: 640px) {
  .sp-result { padding: 26px 20px 24px; border-radius: 14px; gap: 18px }
  .sp-result__head { gap: 14px }
  .sp-result__ring { width: 44px; height: 44px }
  .sp-result__ring svg { width: 21px; height: 21px }
  .sp-result__title { font-size: 22px }
  .sp-result__to { font-size: 13.5px; word-break: break-word }
  .sp-result__list li { font-size: 13px }
  .sp-result__foot { flex-direction: column; align-items: stretch; gap: 16px }
  .sp-ghost { width: 100%; padding: 13px 0 }
  .sp-alert { padding: 15px 16px; gap: 12px }
  .sp-alert__note { font-size: 12.5px }
}
