/* ==========================================================================
   AI & Software sub-pages (Web Dev, E-Commerce, Custom Software, AI/ML)
   Shared layout + blue/cyan theme matching ai-software.html.
   Scoped to body.ai-sub. Light mode is default; body.dark-theme flips tokens.
   ========================================================================== */

body.ai-sub {
    --sp-bg: #f8fafc;
    --sp-bg-alt: #ffffff;
    --sp-surface: #ffffff;
    --sp-border: #e2e8f0;
    --sp-border-strong: #cbd5e1;
    --sp-text: #0f172a;
    --sp-body: #334155;
    --sp-muted: #64748b;
    --sp-accent: #00e5ff;
    --sp-accent-dark: #00b8d4;
    --sp-accent-ink: #0284c7;          /* readable cyan-blue for text on light bg */
    --sp-blue: #2563eb;
    --sp-violet: #7c4dff;
    --sp-tint: rgba(2, 132, 199, 0.08);
    --sp-tint-border: rgba(2, 132, 199, 0.22);
    --sp-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
    --sp-shadow-hover: 0 18px 40px rgba(2, 132, 199, 0.12), 0 0 0 1px rgba(0, 229, 255, 0.25);
    --sp-hero-bg: linear-gradient(160deg, #f0f9ff 0%, #e0f2fe 45%, #eef2ff 100%);
    --sp-hero-grid: rgba(2, 132, 199, 0.07);
    --sp-grad-text: linear-gradient(135deg, #0284c7, #2563eb, #7c4dff);
    --sp-field-bg: #f8fafc;
    background-color: var(--sp-bg) !important;
    color: var(--sp-body);
}

body.ai-sub.dark-theme {
    --sp-bg: #0b0f17;
    --sp-bg-alt: #0e131d;
    --sp-surface: #111827;
    --sp-border: #1f2937;
    --sp-border-strong: #334155;
    --sp-text: #f1f5f9;
    --sp-body: #cbd5e1;
    --sp-muted: #94a3b8;
    --sp-accent-ink: #00e5ff;
    --sp-tint: rgba(0, 229, 255, 0.08);
    --sp-tint-border: rgba(0, 229, 255, 0.25);
    --sp-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    --sp-shadow-hover: 0 20px 44px rgba(0, 229, 255, 0.1), 0 0 0 1px rgba(0, 229, 255, 0.3);
    --sp-hero-bg: linear-gradient(135deg, #070b14 0%, #0b1a30 45%, #0a2540 72%, #04354f 100%);
    --sp-hero-grid: rgba(0, 229, 255, 0.05);
    --sp-grad-text: linear-gradient(135deg, #00e5ff, #60a5fa, #a78bfa);
    --sp-field-bg: #0b1220;
}

/* ---------- Section rhythm ---------- */
.ai-sub .sp-section {
    padding: 96px 0;
    position: relative;
}
.ai-sub .sp-section.sp-alt {
    background: var(--sp-bg-alt);
    border-top: 1px solid var(--sp-border);
    border-bottom: 1px solid var(--sp-border);
}
@media (max-width: 767.98px) {
    .ai-sub .sp-section { padding: 64px 0; }
}

.ai-sub .sp-head {
    max-width: 680px;
    margin: 0 auto 48px;
    text-align: center;
}
.ai-sub .sp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sp-accent-ink);
    background: var(--sp-tint);
    border: 1px solid var(--sp-tint-border);
    margin-bottom: 16px;
}
.ai-sub .sp-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sp-accent);
    box-shadow: 0 0 10px var(--sp-accent);
}
.ai-sub .sp-title {
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    line-height: 1.2;
    font-weight: 700;
    color: var(--sp-text);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}
.ai-sub .sp-lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--sp-muted);
    margin: 0;
}
.ai-sub .sp-grad {
    background: var(--sp-grad-text);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: spGradShift 7s ease-in-out infinite;
}
@keyframes spGradShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ---------- Buttons ---------- */
.ai-sub .sp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
}
.ai-sub .sp-btn-primary {
    background: linear-gradient(135deg, var(--sp-accent), var(--sp-accent-dark));
    color: #04121a;
}
.ai-sub .sp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 229, 255, 0.35);
    color: #04121a;
}
.ai-sub .sp-btn-ghost {
    background: var(--sp-surface);
    color: var(--sp-text);
    border-color: var(--sp-border-strong);
}
.ai-sub .sp-btn-ghost:hover {
    border-color: var(--sp-accent-ink);
    color: var(--sp-accent-ink);
    transform: translateY(-2px);
}

/* ---------- Hero ---------- */
.ai-sub .sp-hero {
    position: relative;
    overflow: hidden;
    background: var(--sp-hero-bg);
    padding: 150px 0 90px;
    border-bottom: 1px solid var(--sp-border);
}
.ai-sub .sp-hero::before,
.ai-sub .sp-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: spFloat 9s ease-in-out infinite;
}
.ai-sub .sp-hero::before {
    width: 520px;
    height: 520px;
    top: -160px;
    right: -120px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.22) 0%, transparent 68%);
}
.ai-sub .sp-hero::after {
    width: 420px;
    height: 420px;
    bottom: -200px;
    left: -140px;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.14) 0%, transparent 68%);
    animation-direction: reverse;
    animation-duration: 12s;
}
@keyframes spFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-24px, 18px); }
}
.ai-sub .sp-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--sp-hero-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--sp-hero-grid) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%);
    mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%);
    pointer-events: none;
}
.ai-sub .sp-hero .container { position: relative; z-index: 2; }

.ai-sub .sp-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    font-size: 14px;
    font-weight: 500;
}
.ai-sub .sp-crumbs a {
    color: var(--sp-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
.ai-sub .sp-crumbs a:hover { color: var(--sp-accent-ink); }
.ai-sub .sp-crumbs .sep { color: var(--sp-border-strong); }
.ai-sub .sp-crumbs [aria-current] { color: var(--sp-accent-ink); font-weight: 600; }

.ai-sub .sp-hero h1 {
    font-size: clamp(2.2rem, 4.6vw, 3.5rem);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--sp-text);
    margin: 0 0 20px;
}
.ai-sub .sp-hero .sp-hero-lead {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--sp-body);
    max-width: 580px;
    margin: 0 0 32px;
}
.ai-sub .sp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
@media (max-width: 575.98px) {
    .ai-sub .sp-hero { padding: 120px 0 64px; }
    .ai-sub .sp-hero-actions .sp-btn { width: 100%; }
}

/* Hero highlight panel */
.ai-sub .sp-hero-panel {
    background: var(--sp-surface);
    border: 1px solid var(--sp-border);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    position: relative;
}
body.ai-sub.dark-theme .sp-hero-panel {
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.ai-sub .sp-hero-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 28px;
    right: 28px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, var(--sp-accent), var(--sp-blue), var(--sp-violet));
}
.ai-sub .sp-hero-panel-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sp-muted);
    margin: 4px 0 18px;
}
.ai-sub .sp-hl {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 0;
    border-top: 1px solid var(--sp-border);
}
.ai-sub .sp-hl:first-of-type { border-top: 0; padding-top: 0; }
.ai-sub .sp-hl:last-child { padding-bottom: 0; }
.ai-sub .sp-hl-icon {
    flex: 0 0 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sp-tint);
    border: 1px solid var(--sp-tint-border);
    color: var(--sp-accent-ink);
}
.ai-sub .sp-hl strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--sp-text);
    margin-bottom: 2px;
}
.ai-sub .sp-hl span {
    display: block;
    font-size: 14px;
    line-height: 1.55;
    color: var(--sp-muted);
}

/* ---------- Service cards ---------- */
.ai-sub .sp-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--sp-surface);
    border: 1px solid var(--sp-border);
    border-radius: 16px;
    padding: 30px 28px;
    box-shadow: var(--sp-shadow);
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.ai-sub .sp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sp-accent), var(--sp-blue), var(--sp-violet));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.ai-sub .sp-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sp-shadow-hover);
    border-color: transparent;
}
.ai-sub .sp-card:hover::before { transform: scaleX(1); }

.ai-sub .sp-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.14), rgba(37, 99, 235, 0.1));
    border: 1px solid var(--sp-tint-border);
    color: var(--sp-accent-ink);
    margin-bottom: 22px;
    transition: transform 0.35s ease;
}
.ai-sub .sp-icon svg { stroke: currentColor; }
.ai-sub .sp-card:hover .sp-icon { transform: scale(1.06); }

.ai-sub .sp-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--sp-text);
    margin: 0 0 10px;
}
.ai-sub .sp-card p {
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--sp-muted);
    margin: 0;
}
.ai-sub .sp-checks {
    list-style: none;
    padding: 18px 0 0;
    margin: 18px 0 0;
    border-top: 1px dashed var(--sp-border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ai-sub .sp-checks li {
    position: relative;
    padding-left: 28px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--sp-body);
}
.ai-sub .sp-checks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--sp-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230284c7' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
    border: 1px solid var(--sp-tint-border);
}
body.ai-sub.dark-theme .sp-checks li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300e5ff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* ---------- Tech stack ---------- */
.ai-sub .sp-stack {
    background: var(--sp-surface);
    border: 1px solid var(--sp-border);
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: var(--sp-shadow);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 960px;
    margin: 0 auto;
}
.ai-sub .sp-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--sp-body);
    background: var(--sp-bg);
    border: 1px solid var(--sp-border);
    transition: all 0.25s ease;
}
.ai-sub .sp-chip::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sp-accent), var(--sp-blue));
}
.ai-sub .sp-chip:hover {
    color: var(--sp-accent-ink);
    border-color: var(--sp-tint-border);
    background: var(--sp-tint);
    transform: translateY(-2px);
}

/* ---------- Process ---------- */
.ai-sub .sp-steps {
    position: relative;
}
@media (min-width: 992px) {
    .ai-sub .sp-steps::before {
        content: '';
        position: absolute;
        top: 58px;
        left: 12.5%;
        right: 12.5%;
        height: 2px;
        background: linear-gradient(90deg, var(--sp-accent), var(--sp-blue), var(--sp-violet));
        opacity: 0.35;
    }
}
.ai-sub .sp-step {
    height: 100%;
    text-align: center;
    background: var(--sp-surface);
    border: 1px solid var(--sp-border);
    border-radius: 16px;
    padding: 30px 24px 28px;
    box-shadow: var(--sp-shadow);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ai-sub .sp-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--sp-shadow-hover);
}
.ai-sub .sp-step-num {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #04121a;
    background: linear-gradient(135deg, var(--sp-accent), var(--sp-accent-dark));
    box-shadow: 0 0 0 6px var(--sp-surface), 0 0 0 7px var(--sp-tint-border);
    position: relative;
    z-index: 1;
}
.ai-sub .sp-step h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--sp-text);
    margin: 0 0 8px;
}
.ai-sub .sp-step p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--sp-muted);
    margin: 0;
}

/* ---------- Projects (AI/ML page) ---------- */
.ai-sub .sp-project {
    height: 100%;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, var(--sp-accent), var(--sp-blue), var(--sp-violet), var(--sp-accent));
    background-size: 300% 300%;
    animation: spGradShift 8s ease infinite;
}
.ai-sub .sp-project-inner {
    height: 100%;
    border-radius: 18px;
    padding: 32px;
    background: var(--sp-surface);
}
.ai-sub .sp-project-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}
.ai-sub .sp-project .sp-icon { margin-bottom: 0; }
.ai-sub .sp-soon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sp-accent-ink);
    background: var(--sp-tint);
    border: 1px solid var(--sp-tint-border);
}
.ai-sub .sp-soon i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sp-accent);
    animation: spBlink 1.5s ease-in-out infinite;
}
@keyframes spBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.ai-sub .sp-project h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--sp-text);
    margin: 0 0 10px;
}
.ai-sub .sp-project p {
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--sp-muted);
    margin: 0 0 20px;
}
.ai-sub .sp-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-sub .sp-pills span {
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 999px;
    color: var(--sp-accent-ink);
    background: var(--sp-tint);
    border: 1px solid var(--sp-tint-border);
}

/* ---------- Contact ---------- */
.ai-sub .sp-contact {
    position: relative;
    overflow: hidden;
    background: var(--sp-hero-bg);
    border-top: 1px solid var(--sp-border);
}
.ai-sub .sp-contact .container { position: relative; z-index: 2; }
.ai-sub .sp-contact-intro h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    line-height: 1.2;
    font-weight: 700;
    color: var(--sp-text);
    margin: 0 0 14px;
}
.ai-sub .sp-contact-intro > p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--sp-body);
    margin: 0 0 30px;
}
.ai-sub .sp-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--sp-surface);
    border: 1px solid var(--sp-border);
    text-decoration: none;
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.ai-sub .sp-info + .sp-info { margin-top: 12px; }
a.sp-info:hover {
    border-color: var(--sp-tint-border);
    transform: translateX(4px);
}
.ai-sub .sp-info .sp-hl-icon { flex-basis: 44px; height: 44px; border-radius: 12px; }
.ai-sub .sp-info small {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sp-muted);
}
.ai-sub .sp-info span {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--sp-text);
}

.ai-sub .sp-form {
    background: var(--sp-surface);
    border: 1px solid var(--sp-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    position: relative;
}
body.ai-sub.dark-theme .sp-form { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.ai-sub .sp-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    right: 40px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, var(--sp-accent), var(--sp-blue), var(--sp-violet));
}
@media (max-width: 575.98px) {
    .ai-sub .sp-form { padding: 28px 20px; }
    .ai-sub .sp-form::before { left: 20px; right: 20px; }
}
.ai-sub .sp-form h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sp-text);
    margin: 0 0 6px;
}
.ai-sub .sp-form > p {
    color: var(--sp-muted);
    margin: 0 0 26px;
}
.ai-sub .sp-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--sp-text);
    margin-bottom: 8px;
}
.ai-sub .sp-form .form-control,
.ai-sub .sp-form .form-select {
    background-color: var(--sp-field-bg);
    border: 1px solid var(--sp-border-strong);
    color: var(--sp-text);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15.5px;
    min-height: 50px;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ai-sub .sp-form .form-control::placeholder { color: var(--sp-muted); opacity: 0.8; }
.ai-sub .sp-form .form-control:focus,
.ai-sub .sp-form .form-select:focus {
    border-color: var(--sp-accent-ink);
    box-shadow: 0 0 0 4px var(--sp-tint);
    background-color: var(--sp-field-bg);
    color: var(--sp-text);
}
.ai-sub .sp-form textarea.form-control { min-height: 130px; resize: vertical; }
.ai-sub .sp-form .sp-btn { width: 100%; padding: 16px 26px; }
.ai-sub .sp-form-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 14px 0 0;
    font-size: 13px;
    color: var(--sp-muted);
}

/* ---------- Related services ---------- */
.ai-sub .sp-related {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
    padding: 24px 26px;
    border-radius: 16px;
    background: var(--sp-surface);
    border: 1px solid var(--sp-border);
    box-shadow: var(--sp-shadow);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.ai-sub .sp-related:hover {
    transform: translateY(-4px);
    box-shadow: var(--sp-shadow-hover);
    border-color: transparent;
}
.ai-sub .sp-related h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--sp-text);
    margin: 0 0 4px;
}
.ai-sub .sp-related p {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--sp-muted);
    margin: 0;
}
.ai-sub .sp-related-arrow {
    flex: 0 0 42px;
    height: 42px;
    margin-left: auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sp-accent-ink);
    background: var(--sp-tint);
    border: 1px solid var(--sp-tint-border);
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.ai-sub .sp-related:hover .sp-related-arrow {
    transform: translateX(4px);
    background: linear-gradient(135deg, var(--sp-accent), var(--sp-accent-dark));
    color: #04121a;
    border-color: transparent;
}

/* Form result alerts */
.ai-sub #formResult .alert { border-radius: 10px; margin: 0; }

/* ---------- FAQ ---------- */
.ai-sub .sp-faq .accordion-item {
    background: var(--sp-surface);
    border: 1px solid var(--sp-border) !important;
    border-radius: 14px !important;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.ai-sub .sp-faq .accordion-item + .accordion-item { margin-top: 12px; }
.ai-sub .sp-faq .accordion-item:has(.accordion-button:not(.collapsed)) {
    border-color: var(--sp-tint-border) !important;
    box-shadow: var(--sp-shadow);
}
.ai-sub .sp-faq .accordion-button,
.ai-sub .sp-faq .accordion-button:not(.collapsed) {
    background: transparent !important;
    border-left: 0 !important;             /* neutralise site-wide green accordion accent */
    box-shadow: none !important;
    color: var(--sp-text) !important;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    padding: 20px 22px;
    gap: 14px;
}
.ai-sub .sp-faq .accordion-button:not(.collapsed) { background: var(--sp-tint) !important; }
.ai-sub .sp-faq .accordion-button:focus { box-shadow: 0 0 0 3px var(--sp-tint) !important; }
.ai-sub .sp-q {
    flex: 0 0 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--sp-accent-ink);
    background: var(--sp-tint);
}
.ai-sub .sp-faq .accordion-button::after {
    background-image: none;
    content: '+';
    font-size: 22px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
    color: var(--sp-accent-ink);
    transform: none;
    transition: transform 0.25s ease;
}
.ai-sub .sp-faq .accordion-button:not(.collapsed)::after { transform: rotate(45deg); }
.ai-sub .sp-faq .accordion-body {
    padding: 0 22px 22px 66px;
    color: var(--sp-muted);
    font-size: 15.5px;
    line-height: 1.7;
}
@media (max-width: 575.98px) { .ai-sub .sp-faq .accordion-body { padding-left: 22px; } }
/* keep FAQ on theme surfaces (site-wide dark rules paint accordions grey) */
body.ai-sub .sp-faq.accordion { background: transparent !important; --bs-accordion-bg: transparent; }
.ai-sub .sp-faq .accordion-item,
.ai-sub .sp-faq .accordion-collapse,
.ai-sub .sp-faq .accordion-body { background-color: var(--sp-surface) !important; }
