/* Stella Fire technical support page (build 1.7). Loaded on support/index.php only. Scoped under .sp. */

.sp {
    --sp-ink: #1a1f24;
    --sp-steel: #5f6a73;
    --sp-line: #dde1e4;
    --sp-ceiling: #f2f3f1;
    --sp-panel: #161b20;
    --sp-red: #e52329;
    --sp-red-deep: #b8151b;
    --sp-ok: #2f855a;
    color: var(--sp-ink);
    background: #fff;
}
.sp h1, .sp h2, .sp h3 {
    font-family: "Outfit", Inter, ui-sans-serif, system-ui, sans-serif;
    text-wrap: balance;
    margin: 0;
}
.sp :focus-visible { outline: 3px solid var(--sp-red); outline-offset: 3px; border-radius: 4px; }
.sp a { color: inherit; }
.sp svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.sp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 26px;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.sp .sp-btn--red { background: var(--sp-red); color: #fff; }
.sp .sp-btn--red:hover { background: var(--sp-red-deep); transform: translateY(-1px); }
.sp .sp-btn--ghost { border: 1.5px solid rgba(255, 255, 255, .5); color: #fff; }
.sp .sp-btn--ghost:hover { background: #fff; color: var(--sp-ink); }

/* ---------- Hero ---------- */
.sp-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(48px, 7vw, 96px) 0;
    background: var(--sp-panel);
    color: #fff;
}
.sp-hero::before {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 90%);
    mask-image: linear-gradient(100deg, transparent 30%, #000 90%);
}
.sp-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 60vw;
    height: 60vw;
    max-width: 820px;
    max-height: 820px;
    right: -14vw;
    bottom: -30vw;
    background: radial-gradient(closest-side, rgba(229, 35, 41, .32), transparent);
}
.sp-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 40px 64px;
    align-items: center;
}
.sp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #ff8a8d;
}
.sp-eyebrow::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #42d17c;
    box-shadow: 0 0 0 0 rgba(66, 209, 124, .6);
    animation: sp-pulse 2.4s ease-out infinite;
}
@keyframes sp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(66, 209, 124, .6); }
    70%, 100% { box-shadow: 0 0 0 12px rgba(66, 209, 124, 0); }
}
.sp-hero__title {
    font-size: clamp(2.4rem, 5vw, 3.9rem);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.02;
}
.sp-hero__lede { max-width: 36em; margin: 18px 0 0; color: #c3cad0; font-size: 1.1rem; line-height: 1.55; }

.sp-routes { display: grid; gap: 12px; }
.sp .sp-route {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
    color: #fff;
    text-decoration: none;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: border-color .2s ease, background-color .2s ease, transform .25s cubic-bezier(.2, .7, .2, 1);
}
.sp .sp-route:hover { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .08); transform: translateX(4px); }
.sp .sp-route--red { border-color: var(--sp-red); background: rgba(229, 35, 41, .16); }
.sp .sp-route--red:hover { border-color: #ff6b6f; background: rgba(229, 35, 41, .26); }
.sp-route__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .1);
}
.sp-route--red .sp-route__icon { background: var(--sp-red); }
.sp-route__icon svg { width: 22px; height: 22px; }
.sp-route strong { display: block; font-size: 1.02rem; }
.sp-route > span:last-child > span { display: block; margin-top: 2px; color: #aab3ba; font-size: .9rem; }

/* ---------- Sections ---------- */
.sp-section { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
.sp-section__head {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 12px 64px;
    align-items: end;
    margin-bottom: clamp(26px, 3.5vw, 40px);
}
.sp-section__head h2, .sp-ask h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.05;
}
.sp-section__head p { margin: 0; color: var(--sp-steel); font-size: 1.06rem; line-height: 1.55; max-width: 36em; }

.sp-help {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 22px);
}
.sp-help li {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 24px 22px;
    border: 1.5px solid var(--sp-line);
    border-radius: 14px;
    transition: border-color .2s ease, transform .3s cubic-bezier(.2, .7, .2, 1);
}
.sp-help li:hover { border-color: var(--sp-ink); transform: translateY(-3px); }
.sp-help__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 6px;
    border-radius: 12px;
    background: #fdecec;
    color: var(--sp-red-deep);
}
.sp-help__icon svg { width: 24px; height: 24px; }
.sp-help h3 { font-size: 1.18rem; font-weight: 700; line-height: 1.2; }
.sp-help p { margin: 0; color: var(--sp-steel); font-size: .95rem; line-height: 1.55; }

/* ---------- Ask ---------- */
.sp-ask { padding: clamp(48px, 6vw, 88px) 0; background: var(--sp-ceiling); scroll-margin-top: 80px; }
.sp-ask__grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 32px clamp(32px, 5vw, 72px);
    align-items: start;
}
.sp-ask__lede { margin: 12px 0 0; color: var(--sp-steel); font-size: 1.06rem; }
.sp-alert {
    margin: 20px 0 0;
    padding: 14px 16px;
    border-radius: 10px;
    background: #fdecec;
    color: var(--sp-red-deep);
    font-weight: 600;
}
.sp-form {
    display: grid;
    gap: 20px;
    margin-top: 26px;
    padding: clamp(20px, 3vw, 32px);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 0 var(--sp-line), 0 18px 40px rgba(26, 31, 36, .06);
}
.sp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sp-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sp-field { display: grid; gap: 7px; align-content: start; }
.sp-field label, .sp-topics legend { font-weight: 700; font-size: .92rem; }
.sp-field label span { color: var(--sp-steel); font-weight: 500; font-size: .84rem; }
.sp-field input, .sp-field select, .sp-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1.5px solid var(--sp-line);
    border-radius: 10px;
    background: #fff;
    color: var(--sp-ink);
    font: inherit;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.sp-field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.sp-field input:focus, .sp-field select:focus, .sp-field textarea:focus {
    outline: none;
    border-color: var(--sp-ink);
    box-shadow: 0 0 0 3px rgba(26, 31, 36, .1);
}
.sp-field [aria-invalid="true"] { border-color: var(--sp-red); }
.sp-field__error { color: var(--sp-red-deep); font-size: .86rem; font-weight: 600; }

.sp-topics { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; }
.sp-topics legend { padding: 0; margin-bottom: 10px; }
.sp-topics__list { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-chip { position: relative; cursor: pointer; }
.sp-chip input { position: absolute; opacity: 0; top: 0; right: 0; bottom: 0; left: 0; margin: 0; cursor: pointer; }
.sp-chip span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1.5px solid var(--sp-line);
    border-radius: 999px;
    font-size: .92rem;
    font-weight: 600;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.sp-chip:hover span { border-color: var(--sp-ink); }
.sp-chip input:checked + span { border-color: var(--sp-red); background: var(--sp-red); color: #fff; }
.sp-chip input:focus-visible + span { outline: 3px solid var(--sp-red); outline-offset: 2px; }
.sp-chip input[aria-invalid="true"] + span { border-color: #f0a5a8; }
.sp-form .sp-btn { justify-self: start; min-width: 200px; }

.sp-sent {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    margin-top: 26px;
    padding: 24px;
    border-radius: 16px;
    background: #fff;
    animation: sp-in .5s cubic-bezier(.2, .8, .2, 1) both;
}
.sp-sent__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--sp-ok);
    color: #fff;
}
.sp-sent__icon svg { width: 24px; height: 24px; stroke-width: 2.4; }
.sp-sent strong { font-size: 1.2rem; }
.sp-sent p { margin: 4px 0 0; color: var(--sp-steel); line-height: 1.55; }
.sp-sent a { color: var(--sp-red-deep); font-weight: 600; }
@keyframes sp-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.sp-ask__side { display: grid; gap: 16px; position: sticky; top: 140px; }
.sp-ready, .sp-contact { padding: 24px; border-radius: 16px; background: #fff; }
.sp-ready h3, .sp-contact h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 14px; }
.sp-ready ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sp-ready li { position: relative; padding-left: 28px; color: #3d474f; line-height: 1.45; }
.sp-ready li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .2em;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--sp-red);
}
.sp-contact p { display: grid; gap: 2px; margin: 0 0 12px; }
.sp-contact p span { color: var(--sp-steel); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.sp-contact a { font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.sp-contact a:hover { color: var(--sp-red-deep); }

/* ---------- FAQ ---------- */
.sp-faq { display: grid; gap: 10px; max-width: 900px; }
.sp-faq details {
    border: 1.5px solid var(--sp-line);
    border-radius: 12px;
    transition: border-color .2s ease;
}
.sp-faq details[open] { border-color: var(--sp-ink); }
.sp-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    font-family: "Outfit", Inter, sans-serif;
    font-size: 1.12rem;
    font-weight: 650;
    cursor: pointer;
    list-style: none;
}
.sp-faq summary::-webkit-details-marker { display: none; }
.sp-faq summary::after {
    content: "";
    flex: none;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--sp-red);
    border-bottom: 2px solid var(--sp-red);
    transform: rotate(45deg) translateY(-3px);
    transition: transform .25s ease;
}
.sp-faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.sp-faq details p { margin: 0; padding: 0 20px 20px; color: #3d474f; line-height: 1.6; max-width: 62ch; }
.sp-faq details a { color: var(--sp-red-deep); font-weight: 600; }

/* ---------- Band ---------- */
.sp-band { padding: clamp(48px, 6vw, 80px) 0; background: #1d2329; color: #fff; }
.sp-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.sp-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; letter-spacing: -.02em; }
.sp-band p { max-width: 36em; margin: 10px 0 0; color: #c3cad0; line-height: 1.55; }
.sp-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Smaller screens ---------- */
@media (max-width: 1000px) {
    .sp-hero__inner, .sp-ask__grid, .sp-section__head { grid-template-columns: 1fr; }
    .sp-help { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sp-ask__side { position: static; }
}
@media (max-width: 600px) {
    .sp-help, .sp-row { grid-template-columns: 1fr; }
    .sp-form .sp-btn { justify-self: stretch; }
    .sp-band__actions .sp-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .sp-eyebrow::before, .sp-sent { animation: none; }
    .sp-route, .sp-help li { transition: none; }
}
