/* ══ Service page ════════════════════════════════════════════════════
   Scoped to .sp so the shared nav and footer keep their own styles.
   Tokens are the brand palette from /brand-guidelines.
   ════════════════════════════════════════════════════════════════════ */
.sp {
    --bg:        #0a1628;
    --surface:   #142b49;
    --raised:    #1a375d;
    --line:      #334155;
    --line-soft: rgba(51, 65, 85, 0.55);
    --rose:      #ba5663;
    --rose-lt:   #db6574;
    --rose-wash: rgba(186, 86, 99, 0.12);
    --rose-text: #e58a96;   /* small rose text on surfaces: AA contrast */
    --text:      #ffffff;
    --body:      #b4c0d0;   /* body copy: brand secondary, lifted for long-form legibility */
    --muted:     #94a3b8;
    --ok:        #22c55e;
    --bad:       #ef4444;
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    background: var(--bg);
    color: var(--body);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
html body { background: #0a1628; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.sp *, .sp *::before, .sp *::after { box-sizing: border-box; }
.sp h1, .sp h2, .sp h3, .sp h4 { font-family: var(--sans); color: var(--text); margin: 0; letter-spacing: -0.02em; }
.sp :where(p) { margin: 0; font-family: inherit; }   /* zero specificity so component margins win */
.sp a { text-decoration: none; }
.sp em { font-style: normal; color: var(--rose-lt); }

.sp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* One continuous ground; sections are separated by spacing and a hairline,
   never by hard colour bands. */
.sp-sec { padding: 96px 0; border-top: 1px solid var(--line-soft); }
.sp-head { max-width: 760px; margin-bottom: 44px; }
.sp-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sp-eyebrow {
    display: inline-block;
    font-size: 0.8125rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--rose-lt);
    margin-bottom: 14px;
}
.sp-h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; line-height: 1.2; }
.sp-lede { margin-top: 16px; font-size: 1.0625rem; line-height: 1.7; color: var(--body); }

/* Buttons */
.sp-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.sp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 24px; border-radius: 10px;
    font-family: var(--sans); font-size: 0.9375rem; font-weight: 600;
    border: 1px solid transparent;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.sp-btn:hover { transform: translateY(-1px); }
.sp-btn-solid { background: var(--rose); color: #fff !important; }
.sp-btn-solid:hover { background: #a64a57; }
.sp-btn-ghost { border-color: var(--line); color: var(--text) !important; background: transparent; }
.sp-btn-ghost:hover { border-color: var(--rose); background: var(--rose-wash); }
.sp-btn:focus-visible, .sp-faq-q:focus-visible, .sp-card-link:focus-visible { outline: 2px solid var(--rose-lt); outline-offset: 3px; }

/* ── Hero ───────────────────────────────────────────────────────── */
.sp-hero { position: relative; padding: 148px 0 72px; }
.sp-hero::before {
    content: ''; position: absolute; pointer-events: none;
    top: -200px; right: -160px; width: 760px; height: 760px; border-radius: 50%;
    background: radial-gradient(circle, rgba(186, 86, 99, 0.14) 0%, transparent 62%);
}
.sp-crumb { position: relative; display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.875rem; color: var(--muted); margin-bottom: 28px; }
.sp-crumb a { color: var(--muted); }
.sp-crumb a:hover { color: var(--text); }
.sp-crumb .now { color: var(--body); }
.sp-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
.sp-hero h1 { font-size: clamp(2.25rem, 4.6vw, 3.2rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.03em; }
.sp-hero-sub { margin-top: 22px; font-size: 1.125rem; line-height: 1.7; color: var(--body); max-width: 600px; }
.sp-hero .sp-btns { margin-top: 32px; }
.sp-hero-checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-size: 0.9375rem; color: var(--body); }
.sp-hero-checks i { color: var(--ok); margin-right: 7px; }
.sp-hero-art { display: flex; justify-content: center; }
.sp-hero-art img { width: 100%; max-width: 380px; height: auto; filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.5)); }
.sp-hero-icon {
    width: 220px; height: 220px; border-radius: 40px;
    display: grid; place-items: center;
    background: linear-gradient(145deg, var(--surface), var(--bg));
    border: 1px solid var(--line);
    font-size: 5rem; color: var(--rose);
}
.sp-stats {
    position: relative; margin-top: 64px;
    display: grid; grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line-soft); border-radius: 14px;
    background: rgba(20, 43, 73, 0.45);
}
.sp-stats > div { padding: 20px 24px; border-left: 1px solid var(--line-soft); }
.sp-stats > div:first-child { border-left: 0; }
.sp-stats b { display: block; color: var(--text); font-size: 1.0625rem; font-weight: 700; line-height: 1.35; }
.sp-stats span { display: block; margin-top: 4px; font-size: 0.875rem; color: var(--muted); }

/* ── Cards ──────────────────────────────────────────────────────── */
.sp-card {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    padding: 28px;
    transition: border-color .25s ease, transform .25s ease, background-color .25s ease;
}
.sp-card:hover { border-color: rgba(186, 86, 99, 0.45); }
.sp-card h3 { font-size: 1.1875rem; font-weight: 700; line-height: 1.35; }
.sp-card p { margin-top: 10px; font-size: 0.975rem; line-height: 1.7; color: var(--body); }
.sp-icon {
    width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0;
    display: grid; place-items: center;
    background: var(--rose-wash); color: var(--rose-lt); font-size: 1.05rem;
    margin-bottom: 18px;
}
.sp-tag {
    display: inline-block; margin-top: 10px;
    font-family: var(--mono); font-size: 0.8125rem; font-weight: 500;
    color: var(--muted); line-height: 1.5;
}
.sp-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sp-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

/* Overview */
.sp-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.sp-overview { align-items: start; }
.sp-overview .sp-card p { font-size: 1.0625rem; line-height: 1.75; }
.sp-scope { list-style: none; margin: 14px 0 0; padding: 0; }
.sp-scope li { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.sp-scope li:first-child { border-top: 0; padding-top: 4px; }
.sp-scope strong { color: var(--text); font-size: 0.975rem; font-weight: 600; }
.sp-scope span { color: var(--body); font-size: 0.95rem; line-height: 1.55; }

/* Testing modes */
.sp-mode-badge {
    display: inline-block; margin-bottom: 14px;
    font-size: 0.8125rem; font-weight: 600;
    padding: 4px 10px; border-radius: 999px;
    background: rgba(148, 163, 184, 0.12); color: var(--body);
}
.sp-mode.featured { border-color: rgba(186, 86, 99, 0.55); background: linear-gradient(160deg, rgba(186, 86, 99, 0.12), var(--surface) 55%); }
.sp-mode.featured .sp-mode-badge { background: var(--rose); color: #fff; }

/* Methodology */
.sp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sp-step { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; align-items: start; }
.sp-step-n {
    width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--bg); border: 1px solid rgba(186, 86, 99, 0.55);
    color: var(--rose-lt); font-weight: 700; font-size: 0.9375rem;
}
.sp-step h3 { font-size: 1.0625rem; margin-top: 2px; }
.sp-step p { margin-top: 8px; font-size: 0.95rem; line-height: 1.7; }

/* Deliverables + findings */
.sp-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 20px; align-items: start; }
.sp-checks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.sp-checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 0.975rem; line-height: 1.6; color: var(--body); }
.sp-checks li i { color: var(--ok); margin-top: 5px; }
.sp-findings { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.sp-findings span {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 9px 14px; border-radius: 10px;
    background: rgba(10, 22, 40, 0.6); border: 1px solid var(--line-soft);
    font-size: 0.9375rem; color: var(--text); line-height: 1.4;
}
.sp-findings span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--rose-lt); flex-shrink: 0; }

/* Tables */
.sp-table-wrap { border: 1px solid var(--line-soft); border-radius: 14px; overflow-x: auto; background: var(--surface); }
.sp-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.sp-table th, .sp-table td { padding: 18px 22px; text-align: left; vertical-align: top; border-top: 1px solid var(--line-soft); font-size: 0.95rem; line-height: 1.6; }
.sp-table thead th { border-top: 0; background: var(--raised); color: var(--text); font-weight: 700; font-size: 0.9375rem; }
.sp-table td { color: var(--body); }
.sp-table td:first-child { color: var(--text); font-weight: 600; }
.sp-table .mono { font-family: var(--mono); font-size: 0.875rem; color: var(--rose-text); font-weight: 500; }
.sp-table .us { color: var(--text); }
.sp-table th.us { color: var(--rose-text); }
.sp-table td i { margin-right: 8px; }
.sp-table .yes i { color: var(--ok); }
.sp-table .no i { color: var(--bad); }

.sp-fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin-top: 28px; }
.sp-fit div { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 0.975rem; color: var(--body); line-height: 1.55; }
.sp-fit i { color: var(--rose-lt); margin-top: 5px; font-size: 0.8rem; }
.sp-standards { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.sp-standards span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.875rem; color: var(--body); }

/* Pricing */
.sp-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.sp-tier { display: flex; flex-direction: column; position: relative; }
.sp-tier.featured { border-color: var(--rose); box-shadow: 0 20px 50px rgba(186, 86, 99, 0.16); }
.sp-tier-flag {
    position: absolute; top: -12px; left: 28px;
    background: var(--rose); color: #fff;
    font-size: 0.8125rem; font-weight: 700; padding: 4px 12px; border-radius: 999px;
}
.sp-tier h3 { font-size: 1.25rem; }
.sp-tier .desc { margin-top: 8px; font-size: 0.95rem; }
.sp-price { margin-top: 22px; font-size: 2.5rem; font-weight: 800; color: var(--text); letter-spacing: -0.03em; line-height: 1; }
.sp-price small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.sp-cadence { margin-top: 8px; font-size: 0.875rem; color: var(--muted); }
.sp-tier .sp-checks { margin: 24px 0 28px; flex: 1; align-content: start; }
.sp-tier .sp-btn { width: 100%; }
.sp-free {
    margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
    padding: 22px 28px; border-radius: 14px; border: 1px dashed var(--line);
}
.sp-free strong { color: var(--text); font-size: 1.0625rem; }
.sp-free p { margin-top: 4px; font-size: 0.95rem; }

/* Research */
.sp-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.sp-card-link:hover { transform: translateY(-3px); }
.sp-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 0.8125rem; font-weight: 600; color: var(--rose-text); text-transform: uppercase; letter-spacing: 0.06em; }
.sp-meta span:last-child { color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 500; }
.sp-card-link h3 { margin-top: 14px; font-size: 1.125rem; }
.sp-card-link p { flex: 1; }
.sp-read { margin-top: 20px; font-size: 0.9375rem; font-weight: 600; color: var(--text); }
.sp-read i { margin-left: 6px; color: var(--rose-lt); transition: transform .2s ease; }
.sp-card-link:hover .sp-read i { transform: translateX(3px); }

/* FAQ */
.sp-faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.sp-faq-item { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px; transition: border-color .2s ease; }
.sp-faq-item.open { border-color: rgba(186, 86, 99, 0.45); }
.sp-faq-q {
    width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
    padding: 20px 24px; background: none; border: 0; cursor: pointer; text-align: left;
    font-family: var(--sans); font-size: 1.0625rem; font-weight: 600; color: var(--text); line-height: 1.45;
}
.sp-faq-q i { color: var(--rose-lt); transition: transform .3s ease; flex-shrink: 0; }
.sp-faq-item.open .sp-faq-q i { transform: rotate(45deg); }
/* grid-template-rows 0fr -> 1fr animates to the content's real height */
.sp-faq-a { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .3s ease, visibility 0s linear .3s; }
.sp-faq-item.open .sp-faq-a { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .3s ease, visibility 0s; }
.sp-faq-a > div { overflow: hidden; }
.sp-faq-a p { padding: 0 24px 22px; font-size: 1rem; line-height: 1.75; color: var(--body); }

/* Related + CTA */
.sp-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sp-related a {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 20px; border-radius: 12px;
    background: var(--surface); border: 1px solid var(--line-soft);
    color: var(--text); font-weight: 600; font-size: 0.975rem;
    transition: border-color .2s ease, transform .2s ease;
}
.sp-related a:hover { border-color: rgba(186, 86, 99, 0.45); transform: translateY(-2px); }
.sp-related a i { color: var(--rose-lt); width: 18px; text-align: center; }
.sp-related a .go { margin-left: auto; color: var(--muted); font-size: 0.8rem; }
.sp-cta {
    margin-top: 72px; text-align: center;
    padding: 56px 32px; border-radius: 20px;
    background: radial-gradient(ellipse at top, rgba(186, 86, 99, 0.2), transparent 65%), var(--surface);
    border: 1px solid rgba(186, 86, 99, 0.35);
}
.sp-cta .sp-lede { max-width: 620px; margin-left: auto; margin-right: auto; }
.sp-cta .sp-btns { justify-content: center; margin-top: 30px; }

/* Reveal: content is visible by default; JS opts sections into a gentle
   fade only when motion is allowed, so nothing is ever stuck invisible. */
.sp.js-reveal .sp-rv { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.sp.js-reveal .sp-rv.in { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .sp-hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .sp-hero-art { order: -1; }
    .sp-hero-art img { max-width: 240px; }
    .sp-hero-icon { width: 150px; height: 150px; font-size: 3.4rem; border-radius: 28px; }
    .sp-grid-3, .sp-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sp-grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
    .sp-split, .sp-overview { grid-template-columns: 1fr; }
    .sp-stats { grid-template-columns: repeat(2, 1fr); }
    .sp-stats > div:nth-child(3) { border-left: 0; }
    .sp-stats > div:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
}
@media (max-width: 860px) {
    .sp-tiers { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 720px) {
    .sp-sec { padding: 64px 0; }
    .sp-hero { padding: 116px 0 56px; }
    .sp-grid-2, .sp-grid-3, .sp-tiers, .sp-related, .sp-steps, .sp-fit { grid-template-columns: 1fr; }
    .sp-card { padding: 22px; }
    .sp-btns .sp-btn { flex: 1 1 100%; }
    .sp-tiers { gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    .sp *, .sp *::before, .sp *::after { transition: none !important; }
    .sp-btn:hover, .sp-card-link:hover, .sp-related a:hover { transform: none; }
}
.sp-related a:focus-visible, .sp-crumb a:focus-visible { outline: 2px solid var(--rose-lt); outline-offset: 3px; }

/* ── Directory (/service-areas) ────────────────────────────────── */
.sp-dir-hero .sp-hero-sub { max-width: 720px; }
.sp-dir-hero h1 { max-width: 820px; }
.sp-dir-group { margin-top: 56px; }
.sp-dir-group:first-of-type { margin-top: 0; }
.sp-dir-group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.sp-dir-group-head h3 { font-size: 1.375rem; font-weight: 700; }
.sp-dir-group-head p { color: var(--muted); font-size: 0.975rem; }
.sp-dir-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sp-dir-card { display: flex; flex-direction: column; color: inherit; padding: 24px; }
.sp-dir-card:hover { transform: translateY(-3px); }
.sp-dir-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sp-dir-card .sp-icon { margin-bottom: 16px; }
.sp-dir-card h4 { font-size: 1.125rem; font-weight: 700; }
.sp-dir-card p { flex: 1; margin-top: 8px; font-size: 0.95rem; }
.sp-dir-card .sp-read { margin-top: 18px; }
.sp-dir-card:hover .sp-read i { transform: translateX(3px); }
.sp-dir-plan { font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; border: 1px solid var(--line); color: var(--body); }
.sp-dir-plan-professional { border-color: rgba(34, 197, 94, 0.4); color: #86efac; }
.sp-dir-plan-enterprise { border-color: rgba(186, 86, 99, 0.5); color: var(--rose-text); }
.sp-dir-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.sp-dir-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.sp-dir-chips a { padding: 10px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-soft); color: var(--text); font-weight: 600; font-size: 0.95rem; transition: border-color .2s ease, background-color .2s ease; }
.sp-dir-chips a:hover { border-color: var(--rose); background: var(--rose-wash); }
.sp-dir-chips a:focus-visible, .sp-dir-card:focus-visible { outline: 2px solid var(--rose-lt); outline-offset: 3px; }
.sp-dir-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sp-dir-steps .sp-step { grid-template-columns: 1fr; }
.sp-dir-lory { margin-top: 28px; display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 22px; align-items: center; }
.sp-dir-lory img { display: block; width: 96px; height: 96px; border-radius: 50%; background: var(--bg); border: 1px solid rgba(186, 86, 99, 0.45); }
.sp-dir-lory p { margin-top: 6px; }
@media (max-width: 1024px) {
    .sp-dir-grid, .sp-dir-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sp-dir-split { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 720px) {
    .sp-dir-grid, .sp-dir-steps { grid-template-columns: 1fr; }
    .sp-dir-lory { grid-template-columns: 1fr; }
}
