/* 2xN — Service detail page template (loads after styles.css + services.css).
   Reusable across every individual service page: swap copy + icons, keep classes. */

/* ===========================================================
   HERO — left-lead editorial, icon tile + CTAs
   =========================================================== */
.sd-hero__inner { position: relative; padding-block: 72px 96px; }
.sd-hero__icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: rgba(168, 85, 247, 0.16);
  color: var(--purple-bright);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 26px;
}
.sd-hero__icon svg { width: 32px; height: 32px; }
.sd-hero__inner .eyebrow { margin-bottom: 18px; }
.sd-hero__h1 {
  font-size: clamp(44px, 5.8vw, 76px);
  font-weight: 700; line-height: 1.03; letter-spacing: -0.02em;
  margin: 0 0 26px; color: #fff; max-width: 20ch;
}
.sd-hero__h1 .amplified { color: var(--purple); }
.sd-hero__deck {
  font-size: 18px; line-height: 1.7; color: var(--text-on-dark-muted);
  max-width: 60ch; margin: 0 0 20px; text-wrap: pretty;
}
.sd-hero__deck strong { color: #fff; font-weight: 600; }
.sd-hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 16px; }

/* ===========================================================
   NARRATIVE (reuses .section__grid + .svc-detail__body from services.css)
   plain lede-style intro rows
   =========================================================== */
.sd-body { max-width: 64ch; }
.sd-body p { font-size: 16px; line-height: 1.75; margin: 0 0 22px; }
.section--light .sd-body p { color: var(--text-on-light-muted); }
.section--dark  .sd-body p { color: var(--text-on-dark-muted); }
.sd-body p strong { font-weight: 600; }
.section--light .sd-body p strong { color: var(--text-on-light); }
.section--dark  .sd-body p strong { color: #fff; }
.sd-body p:last-child { margin-bottom: 0; }

/* ===========================================================
   PACKAGE CARDS — "What we build"
   =========================================================== */
.sd-packages { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sd-pkg {
  position: relative; display: flex; flex-direction: column;
  padding: 36px 34px; border-radius: var(--radius-lg);
  background: var(--bg-dark-2); border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.section--light .sd-pkg { background: var(--card-light); border-color: var(--border-light); }
.sd-pkg:hover { transform: translateY(-3px); border-color: rgba(168, 85, 247, 0.4); box-shadow: 0 24px 50px -28px rgba(126, 34, 206, 0.5); }
.sd-pkg__ic {
  width: 52px; height: 52px; border-radius: 13px;
  background: rgba(168, 85, 247, 0.16); color: var(--purple-bright);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.section--light .sd-pkg__ic { background: var(--icon-tile); color: var(--purple-deep); }
.sd-pkg__ic svg { width: 26px; height: 26px; }
.sd-pkg__eyebrow {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--purple-bright); margin: 0 0 10px;
}
.section--light .sd-pkg__eyebrow { color: var(--purple-deep); }
.sd-pkg__title { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 14px; color: #fff; }
.section--light .sd-pkg__title { color: var(--text-on-light); }
.sd-pkg__body { font-size: 15px; line-height: 1.65; margin: 0; color: var(--text-on-dark-muted); }
.section--light .sd-pkg__body { color: var(--text-on-light-muted); }

/* ===========================================================
   FEATURE GRID — "What's included as standard" (icon + title + body)
   =========================================================== */
.sd-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 36px; }
.sd-feat { display: flex; flex-direction: column; gap: 8px; }
.sd-feat__ic {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--icon-tile); color: var(--purple-deep);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px;
}
.section--dark .sd-feat__ic { background: rgba(168, 85, 247, 0.16); color: var(--purple-bright); }
.sd-feat__ic svg { width: 24px; height: 24px; }
.sd-feat__title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin: 0; color: var(--text-on-light); }
.section--dark .sd-feat__title { color: #fff; }
.sd-feat__body { font-size: 14px; line-height: 1.6; margin: 0; color: var(--text-on-light-muted); }
.section--dark .sd-feat__body { color: var(--text-on-dark-muted); }

/* ===========================================================
   DIFFERENCE CARDS — "The 2xN difference" (2x2 bordered cards)
   =========================================================== */
.sd-diffs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sd-diff {
  display: grid; grid-template-columns: 52px 1fr; gap: 20px; align-items: start;
  padding: 30px 32px; border-radius: var(--radius-lg);
  background: var(--card-light); border: 1px solid var(--border-light);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.section--dark .sd-diff { background: var(--bg-dark-2); border-color: rgba(255, 255, 255, 0.08); }
.sd-diff:hover { transform: translateY(-2px); border-color: rgba(168, 85, 247, 0.4); box-shadow: 0 18px 40px -24px rgba(126, 34, 206, 0.4); }
.sd-diff__ic {
  width: 52px; height: 52px; border-radius: 13px;
  background: var(--icon-tile); color: var(--purple-deep);
  display: inline-flex; align-items: center; justify-content: center;
}
.section--dark .sd-diff__ic { background: rgba(168, 85, 247, 0.16); color: var(--purple-bright); }
.sd-diff__ic svg { width: 26px; height: 26px; }
.sd-diff__title { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 8px; color: var(--text-on-light); }
.section--dark .sd-diff__title { color: #fff; }
.sd-diff__body { font-size: 14.5px; line-height: 1.65; margin: 0; color: var(--text-on-light-muted); }
.section--dark .sd-diff__body { color: var(--text-on-dark-muted); }

/* ===========================================================
   BUILT TO PERFORM — editorial split, oversized lead
   =========================================================== */
.sd-perform { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.sd-perform__head { position: sticky; top: 110px; }
.sd-perform__title {
  font-size: clamp(34px, 3.6vw, 50px); font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.05; margin: 14px 0 28px; color: var(--text-on-light);
}
.section--dark .sd-perform__title { color: #fff; }
.sd-perform__title .accent { color: var(--purple); }
.sd-perform__sub { font-size: 15.5px; line-height: 1.65; margin: 20px 0 0; max-width: 34ch; color: var(--text-on-light-muted); }
.section--dark .sd-perform__sub { color: var(--text-on-dark-muted); }
.sd-perform__body {
  padding: 40px 44px; border-radius: var(--radius-lg);
  background: #f0eaf8; border: 1px solid var(--border-light);
}
.section--dark .sd-perform__body { background: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.08); }
.section--dark .sd-perform__title .accent { color: var(--purple-bright); }
.sd-perform__since {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-size: clamp(40px, 4.4vw, 60px); font-weight: 800; letter-spacing: -0.03em;
  color: var(--purple-deep); margin: 0; font-variant-numeric: tabular-nums;
}
.section--dark .sd-perform__since { color: var(--purple-bright); }
.sd-perform__since span {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-on-light-muted);
}
.section--dark .sd-perform__since span { color: var(--text-on-dark-muted); }
.sd-perform__lead {
  font-size: clamp(22px, 2.2vw, 28px); font-weight: 500; line-height: 1.4;
  letter-spacing: -0.01em; margin: 0 0 40px; color: var(--text-on-light); text-wrap: pretty;
}
.section--dark .sd-perform__lead { color: #fff; }
.sd-perform__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding-top: 32px; border-top: 1px solid var(--border-light); }
.section--dark .sd-perform__cols { border-color: rgba(255, 255, 255, 0.1); }
.sd-perform__cols p { font-size: 15.5px; line-height: 1.72; margin: 0; color: var(--text-on-light-muted); }
.section--dark .sd-perform__cols p { color: var(--text-on-dark-muted); }
.sd-perform__cols strong { font-weight: 600; color: var(--text-on-light); }
.section--dark .sd-perform__cols strong { color: #fff; }
@media (max-width: 900px) {
  .sd-perform { grid-template-columns: 1fr; gap: 32px; }
  .sd-perform__head { position: static; display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px 24px; }
  .sd-perform__title { margin: 8px 0 0; }
}
@media (max-width: 640px) {
  .sd-perform__cols { grid-template-columns: 1fr; gap: 24px; }
}

/* ===========================================================
   CHECKLIST BOX — "What's included" ticked panel
   =========================================================== */
.sd-checklist {
  margin: 30px 0; padding: 34px 36px; border-radius: var(--radius-lg);
  background: var(--card-light); border: 1px solid var(--border-light);
}
.section--dark .sd-checklist { background: var(--bg-dark-2); border-color: rgba(255, 255, 255, 0.08); }
.sd-checklist__eyebrow {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-on-light-muted); margin: 0 0 22px;
}
.section--dark .sd-checklist__eyebrow { color: var(--text-on-dark-muted); }
.sd-checklist__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px;
}
.sd-checklist__grid li {
  display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start;
  font-size: 15.5px; line-height: 1.5; color: var(--text-on-light);
}
.section--dark .sd-checklist__grid li { color: #fff; }
.sd-check {
  width: 24px; height: 24px; border-radius: 50%; margin-top: 1px;
  background: var(--purple); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sd-check svg { width: 13px; height: 13px; }
@media (max-width: 640px) { .sd-checklist { padding: 26px 24px; } .sd-checklist__grid { grid-template-columns: 1fr; gap: 16px; } }

/* ===========================================================
   INCLUDED AS STANDARD — interactive list + detail split
   =========================================================== */
.sd-inc__head { max-width: 640px; margin: 0 0 44px; }
.sd-inc__head .section__lede { margin-bottom: 0; }
.sd-inc {
  display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 28px; align-items: start;
  padding: 24px; border-radius: var(--radius-lg);
  background: #f0eaf8; border: 1px solid var(--border-light);
}
.section--dark .sd-inc { background: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.08); }
.sd-inc__list { display: flex; flex-direction: column; gap: 4px; }
.sd-inc__item {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 16px;
  width: 100%; text-align: left; font: inherit;
  padding: 14px 16px; border: 1px solid transparent; border-radius: var(--radius-md);
  background: transparent; color: var(--text-on-light);
  cursor: pointer; transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.sd-inc__item:hover { background: rgba(168, 85, 247, 0.06); }
.sd-inc__item.is-active { background: var(--card-light); border-color: var(--border-light); }
.section--dark .sd-inc__item { color: #fff; }
.section--dark .sd-inc__item:hover { background: rgba(168, 85, 247, 0.1); }
.section--dark .sd-inc__item.is-active { background: var(--bg-dark-2); border-color: rgba(255, 255, 255, 0.08); }
.sd-inc__ic {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--icon-tile); color: var(--purple-deep);
  display: inline-flex; align-items: center; justify-content: center; transition: background 160ms ease, color 160ms ease;
}
.section--dark .sd-inc__ic { background: rgba(168, 85, 247, 0.16); color: var(--purple-bright); }
.sd-inc__item.is-active .sd-inc__ic { background: var(--purple); color: #fff; }
.sd-inc__ic svg { width: 21px; height: 21px; }
.sd-inc__label { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.sd-inc__arr { color: rgba(13, 5, 24, 0.25); opacity: 0; transform: translateX(-4px); transition: opacity 160ms ease, transform 160ms ease, color 160ms ease; }
.section--dark .sd-inc__arr { color: rgba(255, 255, 255, 0.35); }
.sd-inc__item.is-active .sd-inc__arr { opacity: 1; transform: translateX(0); color: var(--purple); }

.sd-inc__detail {
  position: sticky; top: 110px;
  display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: start;
  padding: 40px; border-radius: var(--radius-lg);
  background: var(--card-light); border: 1px solid var(--border-light);
  overflow: hidden;
}
.section--dark .sd-inc__detail { background: var(--bg-dark-2); border-color: rgba(255, 255, 255, 0.08); }
.sd-inc__detail::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--purple) 0%, var(--purple-bright) 100%); }
.sd-inc__detail-ic {
  width: 68px; height: 68px; border-radius: 16px;
  background: var(--icon-tile); color: var(--purple-deep);
  display: inline-flex; align-items: center; justify-content: center;
}
.section--dark .sd-inc__detail-ic { background: rgba(168, 85, 247, 0.16); color: var(--purple-bright); }
.sd-inc__detail-ic svg { width: 34px; height: 34px; }
.sd-inc__detail-eyebrow {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--purple-deep); margin: 6px 0 12px;
}
.section--dark .sd-inc__detail-eyebrow { color: var(--purple-bright); }
.sd-inc__detail-title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 14px; color: var(--text-on-light); }
.section--dark .sd-inc__detail-title { color: #fff; }
.sd-inc__detail-desc { font-size: 16px; line-height: 1.7; margin: 0; color: var(--text-on-light-muted); }
.section--dark .sd-inc__detail-desc { color: var(--text-on-dark-muted); }
/* crossfade on swap */
.sd-inc__detail-ic svg, .sd-inc__detail-body > * { transition: opacity 200ms ease; }
.sd-inc__detail.is-swapping .sd-inc__detail-ic svg,
.sd-inc__detail.is-swapping .sd-inc__detail-body > * { opacity: 0; }

@media (max-width: 900px) {
  .sd-inc { grid-template-columns: 1fr; gap: 20px; }
  .sd-inc__detail { position: static; }
  .sd-inc__arr { display: none; }
}
@media (max-width: 640px) {
  .sd-inc__detail { grid-template-columns: 1fr; gap: 18px; padding: 28px; }
  .sd-inc__detail-ic { width: 56px; height: 56px; }
}

/* ===========================================================
   THE 2xN DIFFERENCE — numbered accordion
   =========================================================== */
.sd-acc { display: flex; flex-direction: column; gap: 12px; }
.sd-acc__item {
  border-radius: var(--radius-lg); border: 1px solid var(--border-light);
  background: var(--card-light); overflow: hidden;
  transition: border-color 200ms ease, background 200ms ease;
}
.section--dark .sd-acc__item { background: var(--bg-dark-2); border-color: rgba(255, 255, 255, 0.08); }
.sd-acc__item.is-open { border-color: rgba(168, 85, 247, 0.4); }
.sd-acc__head {
  display: grid; grid-template-columns: auto 44px 1fr auto; align-items: center; gap: 20px;
  width: 100%; text-align: left; font: inherit; cursor: pointer;
  padding: 22px 28px; background: transparent; border: 0; color: var(--text-on-light);
}
.section--dark .sd-acc__head { color: #fff; }
.sd-acc__num {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 14px; font-weight: 600; letter-spacing: 0.04em; color: var(--purple-deep);
  font-variant-numeric: tabular-nums;
}
.section--dark .sd-acc__num { color: var(--purple-bright); }
.sd-acc__ic {
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--icon-tile); color: var(--purple-deep);
  display: inline-flex; align-items: center; justify-content: center;
}
.section--dark .sd-acc__ic { background: rgba(168, 85, 247, 0.16); color: var(--purple-bright); }
.sd-acc__item.is-open .sd-acc__ic { background: var(--purple); color: #fff; }
.sd-acc__ic svg { width: 22px; height: 22px; }
.sd-acc__title { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.sd-acc__toggle {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--border-light); color: var(--text-on-light-muted);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 260ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.section--dark .sd-acc__toggle { border-color: rgba(255, 255, 255, 0.16); color: #fff; }
.sd-acc__toggle svg { width: 16px; height: 16px; }
.sd-acc__item.is-open .sd-acc__toggle { transform: rotate(135deg); background: var(--purple); border-color: var(--purple); color: #fff; }
.sd-acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms ease; }
.sd-acc__item.is-open .sd-acc__panel { grid-template-rows: 1fr; }
.sd-acc__panelinner { overflow: hidden; min-height: 0; }
.sd-acc__body {
  font-size: 15.5px; line-height: 1.72; margin: 0;
  padding: 0 28px 26px 116px; color: var(--text-on-light-muted);
}
.section--dark .sd-acc__body { color: var(--text-on-dark-muted); }
@media (max-width: 640px) {
  .sd-acc__head { grid-template-columns: auto 1fr auto; gap: 14px; padding: 18px 20px; }
  .sd-acc__ic { display: none; }
  .sd-acc__body { padding: 0 20px 22px 20px; }
}

/* ===========================================================
   PROCESS — interactive horizontal rail, forced dark styling
   (the base component is light-themed; these mirror the dark-mode
    overrides so it reads correctly inside an always-dark section)
   =========================================================== */
.section--dark .process__title { color: #fff; }
.sd-process7 .process-steps { grid-template-columns: repeat(7, 1fr); }
.sd-process6 .process-steps { grid-template-columns: repeat(6, 1fr); }
.sd-process5 .process-steps { grid-template-columns: repeat(5, 1fr); }
.section--dark .step__node { background: var(--bg-dark-2); color: var(--text-on-dark-muted); border-color: rgba(168, 85, 247, 0.3); }
.section--dark .step:hover .step__node { border-color: var(--purple); color: var(--purple-bright); }
.section--dark .step.is-done .step__node,
.section--dark .step.is-active .step__node { background: var(--purple); color: #fff; border-color: var(--purple); }
.section--dark .step__num { color: var(--text-on-dark-muted); }
.section--dark .step.is-active .step__num,
.section--dark .step.is-done .step__num { color: var(--purple-bright); }
.section--dark .step__title { color: #fff; }
.section--dark .step.is-active .step__title { color: var(--purple-bright); }
.section--dark .step__body { color: var(--text-on-dark-muted); }
.section--dark .process-detail { background: var(--bg-dark-2); border-color: rgba(255, 255, 255, 0.08); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35); }
.section--dark .process-detail__num { color: var(--purple-bright); }
.section--dark .process-detail__label { color: var(--text-on-dark-muted); }
.section--dark .process-detail__title { color: #fff; }
.section--dark .process-detail__copy { color: var(--text-on-dark-muted); }
.section--dark .process-detail__btn { background: var(--bg-dark); border-color: rgba(255, 255, 255, 0.12); color: #fff; }
.section--dark .process-detail__btn:hover { background: var(--purple); border-color: var(--purple); }
.section--dark .process-detail__progress { background: rgba(168, 85, 247, 0.18); }
@media (max-width: 1080px) { .sd-process7 .process-steps, .sd-process6 .process-steps, .sd-process5 .process-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .sd-process7 .process-steps, .sd-process6 .process-steps, .sd-process5 .process-steps { grid-template-columns: 1fr; } }

@media (max-width: 1080px) {
  .sd-body { max-width: none; }
  .sd-packages { grid-template-columns: 1fr; }
  .sd-features { grid-template-columns: 1fr 1fr; gap: 32px 28px; }
  .sd-diffs { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sd-hero__inner { padding-block: 44px 60px; }
  .sd-hero__deck { font-size: 16px; }
  .sd-features { grid-template-columns: 1fr; gap: 28px; }
  .sd-diff { grid-template-columns: 44px 1fr; gap: 16px; padding: 24px; }
  .sd-diff__ic { width: 44px; height: 44px; }
}
