/* ============================================================
   Service detail pages — shared layout
   Loaded after styles.css. Reuses brand tokens defined there.
   ============================================================ */

/* Page hero (compact, no canvas animation) */
.sp-hero {
  position: relative;
  background: linear-gradient(135deg, #0b1220 0%, #002048 100%);
  color: var(--white);
  padding: 160px 0 100px;
  overflow: hidden;
}
.sp-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 85% 10%, rgba(32, 112, 232, 0.18), transparent 60%),
    radial-gradient(600px 400px at 10% 90%, rgba(32, 112, 232, 0.10), transparent 60%);
  pointer-events: none;
}
.sp-hero .container { position: relative; z-index: 1; }

.sp-hero .breadcrumb {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55); font-weight: 600; margin-bottom: 24px;
}
.sp-hero .breadcrumb a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.sp-hero .breadcrumb a:hover { color: var(--white); }

.sp-hero h1 {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(34px, 5vw, 56px); font-weight: 700;
  line-height: 1.08; letter-spacing: -0.02em;
  color: var(--white); margin: 0 0 24px; max-width: 900px;
}
.sp-hero h1 .accent { color: var(--blue-soft); }

.sp-hero .lede {
  font-size: clamp(16px, 1.4vw, 19px); line-height: 1.65;
  color: rgba(255, 255, 255, 0.78); max-width: 720px; margin: 0 0 36px;
}

.sp-hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.sp-cta-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--blue); color: var(--white); font-weight: 600; font-size: 15px;
  padding: 14px 24px; border-radius: 8px; text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}
.sp-cta-primary:hover { transform: translateY(-1px); background: #2a6bff; }
.sp-cta-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--white); font-weight: 600; font-size: 15px;
  padding: 14px 24px; border-radius: 8px; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background 0.2s, border-color 0.2s;
}
.sp-cta-secondary:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.5); }

/* Why-it-matters band (light) */
.sp-band {
  background: var(--white); padding: 100px 0; border-bottom: 1px solid #e2e8f0;
}
.sp-band.alt { background: var(--bg-light); }
.sp-band .section-eyebrow {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy); font-weight: 700; margin-bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
}
.sp-band .section-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--blue);
}
.sp-band h2 {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; line-height: 1.15;
  letter-spacing: -0.02em; color: var(--navy); margin: 0 0 20px; max-width: 820px;
}
.sp-band h2 .accent { color: var(--blue); }
.sp-band .lede {
  font-size: 17px; line-height: 1.7; color: #2d3a5f; max-width: 780px; margin: 0 0 40px;
}

/* Why-it-matters quote / impact block */
.sp-impact {
  background: var(--bg-light); border-left: 4px solid var(--navy);
  padding: 28px 32px; border-radius: 4px; margin-top: 32px;
  font-size: 17px; line-height: 1.65; color: var(--navy);
}
.sp-impact strong { color: var(--navy); }

/* Capabilities grid */
.sp-caps {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 16px;
}
.sp-cap {
  background: var(--white); border: 1px solid #e2e8f0;
  border-radius: 12px; padding: 32px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.sp-cap:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 32, 72, 0.10);
  border-color: rgba(0, 32, 72, 0.15);
}
.sp-cap .icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: rgba(0, 32, 72, 0.08); color: var(--navy);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.sp-cap h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px; font-weight: 700; color: var(--navy);
  margin: 0 0 10px; letter-spacing: -0.01em;
}
.sp-cap p { font-size: 14.5px; line-height: 1.65; color: #475569; margin: 0; }

/* Stats strip */
.sp-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px;
}
.sp-stat {
  background: var(--white); border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 28px;
}
.sp-stat .v {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 38px; font-weight: 700; color: var(--navy); letter-spacing: -0.02em;
  line-height: 1; margin-bottom: 8px;
}
.sp-stat .l {
  font-size: 13px; line-height: 1.5; color: #64748b;
}

/* Modern-business through-line block (navy) */
.sp-pitch {
  background: var(--navy); color: var(--white); padding: 90px 0;
  position: relative; overflow: hidden;
}
.sp-pitch::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 350px at 90% 50%, rgba(32, 112, 232, 0.18), transparent 60%);
  pointer-events: none;
}
.sp-pitch .container { position: relative; z-index: 1; }
.sp-pitch .eyebrow {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue-soft); font-weight: 700; margin-bottom: 16px;
}
.sp-pitch h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.2vw, 38px); font-weight: 700;
  line-height: 1.2; letter-spacing: -0.02em;
  color: var(--white); margin: 0 0 20px; max-width: 880px;
}
.sp-pitch p {
  font-size: 17px; line-height: 1.7; color: rgba(255, 255, 255, 0.78);
  max-width: 780px; margin: 0;
}

/* FAQ */
.sp-faq { display: grid; gap: 14px; margin-top: 32px; max-width: 880px; }
.sp-faq details {
  background: var(--white); border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 22px 24px;
}
.sp-faq details[open] { border-color: rgba(0, 32, 72, 0.25); }
.sp-faq summary {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px; font-weight: 600; color: var(--navy);
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.sp-faq summary::-webkit-details-marker { display: none; }
.sp-faq summary::after {
  content: "+"; font-size: 22px; color: var(--blue); font-weight: 400;
  transition: transform 0.2s;
}
.sp-faq details[open] summary::after { content: "−"; }
.sp-faq details p {
  margin: 14px 0 0; font-size: 15px; line-height: 1.7; color: #475569;
}

/* Final CTA card */
.sp-final-cta {
  background: var(--bg-light); padding: 100px 0;
}
.sp-final-card {
  background: var(--navy); border-radius: 16px; padding: 56px;
  color: var(--white); display: grid;
  grid-template-columns: 1.4fr auto; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.sp-final-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 300px at 90% 30%, rgba(32, 112, 232, 0.22), transparent 60%);
  pointer-events: none;
}
.sp-final-card > * { position: relative; z-index: 1; }
.sp-final-card h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(26px, 3vw, 34px); font-weight: 700; color: var(--white);
  margin: 0 0 14px; letter-spacing: -0.02em; line-height: 1.2;
}
.sp-final-card p {
  font-size: 16px; line-height: 1.65; color: rgba(255, 255, 255, 0.78); margin: 0;
}

/* Nav: services dropdown */
.nav .has-dropdown {
  position: relative;
  display: inline-flex; align-items: center;
}
.nav .has-dropdown > a {
  display: inline-flex; align-items: center; gap: 6px;
  /* invisible padding closes the hover gap so the panel stays open */
  padding-bottom: 18px; margin-bottom: -18px;
}
.nav .has-dropdown .caret {
  display: inline-block; width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  opacity: 0.55; transition: transform 0.2s, opacity 0.2s;
  flex-shrink: 0;
}
.nav .has-dropdown:hover .caret,
.nav .has-dropdown:focus-within .caret {
  opacity: 0.9;
  transform: rotate(225deg) translate(-2px, -2px);
}
.nav .dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--white); border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0, 32, 72, 0.14), 0 4px 12px rgba(0, 32, 72, 0.06);
  padding: 10px; min-width: 320px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 200;
}
.nav .has-dropdown:hover .dropdown,
.nav .has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(2px);
}
.nav .dropdown a {
  display: block; padding: 12px 14px; border-radius: 8px;
  font-size: 14.5px; font-weight: 600; color: var(--navy);
  text-decoration: none; line-height: 1.35;
  position: relative;
}
.nav .dropdown a small {
  display: block; font-size: 12px; font-weight: 400; color: #64748b;
  margin-top: 3px; letter-spacing: 0;
}
.nav .dropdown a:hover { background: var(--bg-light); color: var(--navy); }
.nav .dropdown a .new-tag {
  display: inline-block; background: var(--blue); color: var(--white);
  font-size: 9px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 2px 6px; border-radius: 3px;
  margin-left: 8px; vertical-align: 2px;
}

/* Header on service pages must be solid from page-load (no transparent overlay) */
body.is-service-page .header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
}
body.is-service-page .header .nav a { color: var(--navy); }
body.is-service-page .header .logo-white { display: none; }
body.is-service-page .header .logo-color { display: inline-block; }

/* Responsive */
@media (max-width: 900px) {
  .sp-hero { padding: 140px 0 80px; }
  .sp-band { padding: 72px 0; }
  .sp-pitch { padding: 72px 0; }
  .sp-final-cta { padding: 72px 0; }
  .sp-caps { grid-template-columns: 1fr; gap: 16px; }
  .sp-cap { padding: 26px; }
  .sp-stats { grid-template-columns: 1fr; gap: 14px; }
  .sp-final-card {
    grid-template-columns: 1fr; padding: 36px; gap: 24px; text-align: left;
  }
  /* Mobile dropdown behaviour is handled in styles.css (@media max-width 768px) */
}
@media (max-width: 600px) {
  .sp-hero h1 { font-size: 32px; }
  .sp-band h2, .sp-pitch h2 { font-size: 26px; }
  .sp-hero .cta-row { flex-direction: column; align-items: stretch; }
  .sp-cta-primary, .sp-cta-secondary { justify-content: center; }
}

/* ============================================================
   1-Week Website Standup — web-design.html only
   ============================================================ */
.sp-standup {
  position: relative;
  padding: 96px 0;
  background:
    radial-gradient(900px 500px at 90% -10%, rgba(32, 112, 232, 0.07), transparent 60%),
    radial-gradient(700px 400px at 5% 110%, rgba(32, 112, 232, 0.05), transparent 60%),
    var(--white);
  overflow: hidden;
}
.sp-standup::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 32, 72, 0.04) 0%, transparent 12%, transparent 88%, rgba(0, 32, 72, 0.04) 100%);
  pointer-events: none;
}
.sp-standup .container { position: relative; z-index: 1; }

.sp-standup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.sp-standup-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blue);
  background: rgba(32, 112, 232, 0.08);
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 18px;
}
.sp-standup-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(32, 112, 232, 0.18);
  animation: cardTagPulse 2s ease-in-out infinite;
}
.sp-standup h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700; line-height: 1.12; letter-spacing: -0.02em;
  color: var(--navy); margin: 0 0 18px;
}
.sp-standup h2 .accent { color: var(--blue); }
.sp-standup .lede {
  font-size: 17px; line-height: 1.65; color: #475569;
  margin: 0 0 32px; max-width: 640px;
}

/* Numbered "what's included" tiles */
.sp-standup-includes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}
.sp-standup-tile {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px;
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.sp-standup-tile:hover {
  border-color: rgba(32, 112, 232, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 32, 72, 0.08);
}
.sp-standup-tile .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px; font-weight: 700;
  color: var(--blue);
  background: rgba(32, 112, 232, 0.10);
  width: 44px; height: 44px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  letter-spacing: -0.02em;
}
.sp-standup-tile h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px; font-weight: 700; color: var(--navy);
  margin: 0 0 6px; letter-spacing: -0.01em;
}
.sp-standup-tile p {
  font-size: 14px; line-height: 1.55; color: #475569; margin: 0;
}

.sp-standup-cta-row {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center;
}
.sp-standup-meta {
  font-size: 13px; color: #64748b; letter-spacing: 0.01em;
}

/* Day-by-day timeline aside */
.sp-standup-card {
  position: sticky; top: 96px;
  padding: 32px 28px;
  border-radius: 18px;
  background: linear-gradient(160deg, #001633 0%, #0b1220 100%);
  color: var(--white);
  box-shadow: 0 30px 60px rgba(8, 33, 79, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.sp-standup-card-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  padding: 5px 11px; border-radius: 999px;
  margin-bottom: 16px;
}
.sp-standup-card-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #a8c0ff;
  box-shadow: 0 0 0 3px rgba(168, 192, 255, 0.18);
}
.sp-standup-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px; font-weight: 700; color: var(--white);
  margin: 0 0 22px; letter-spacing: -0.01em; line-height: 1.2;
}
.sp-standup-timeline {
  list-style: none; padding: 0; margin: 0 0 22px;
  display: grid; gap: 10px;
}
.sp-standup-timeline li {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}
.sp-standup-timeline li:first-child { border-top: none; padding-top: 4px; }
.sp-standup-timeline strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #a8c0ff;
}
.sp-standup-timeline span { color: rgba(255, 255, 255, 0.82); line-height: 1.45; }
.sp-standup-timeline span.hl {
  color: var(--white); font-weight: 600;
  background: linear-gradient(90deg, rgba(32, 112, 232, 0.55), rgba(32, 112, 232, 0.18));
  padding: 4px 10px; border-radius: 6px;
  display: inline-block;
}
.sp-standup-card-foot {
  font-size: 13px; line-height: 1.55;
  color: rgba(255, 255, 255, 0.65); margin: 0;
  padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Responsive */
@media (max-width: 1024px) {
  .sp-standup-grid { grid-template-columns: 1fr; gap: 36px; }
  .sp-standup-card { position: static; }
}
@media (max-width: 720px) {
  .sp-standup { padding: 72px 0; }
  .sp-standup-includes { grid-template-columns: 1fr; gap: 14px; }
  .sp-standup-tile { padding: 18px; }
  .sp-standup-card { padding: 26px 22px; }
  .sp-standup-timeline li { grid-template-columns: 56px 1fr; gap: 10px; font-size: 13.5px; }
  .sp-standup-cta-row { flex-direction: column; align-items: stretch; }
  .sp-standup-cta-row .sp-cta-primary { justify-content: center; }
  .sp-standup-meta { text-align: center; }
}

/* ============================================================
   Legal/content page typography (privacy, terms, process)
   ============================================================ */
.sp-content {
  padding: 64px 0 96px;
  background: var(--white, #fff);
}
.sp-content .container {
  max-width: 860px;
}
.sp-content .legal-meta {
  font-size: 13.5px;
  color: #64748b;
  margin: 0 0 36px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.sp-content h2 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 26px;
  line-height: 1.25;
  color: var(--navy, #002048);
  margin: 44px 0 14px;
  font-weight: 700;
}
.sp-content h2:first-of-type { margin-top: 0; }
.sp-content h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.35;
  color: var(--navy-deep, #001633);
  margin: 28px 0 10px;
  font-weight: 600;
}
.sp-content p,
.sp-content li {
  font-size: 16px;
  line-height: 1.7;
  color: #334155;
}
.sp-content p { margin: 0 0 16px; }
.sp-content ul,
.sp-content ol { margin: 0 0 18px; padding-left: 22px; }
.sp-content li { margin-bottom: 6px; }
.sp-content a {
  color: var(--blue, #2070e8);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sp-content a:hover { color: #2a6bff; }
.sp-content .legal-callout {
  background: #f4f6fb;
  border-left: 3px solid var(--blue, #2070e8);
  padding: 18px 22px;
  border-radius: 6px;
  margin: 24px 0 28px;
}
.sp-content .legal-callout p:last-child { margin-bottom: 0; }

/* ============================================================
   Process page step blocks
   ============================================================ */
.process-step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  align-items: start;
  padding: 32px 0;
  border-top: 1px solid #e2e8f0;
}
.process-step:first-of-type { border-top: 0; padding-top: 0; }
.process-step .step-num {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  color: var(--blue, #2070e8);
  letter-spacing: -0.02em;
}
.process-step .step-body h2 {
  margin: 0 0 8px;
  font-size: 24px;
}
.process-step .step-body .step-lede {
  font-size: 17px;
  color: var(--navy, #002048);
  margin: 0 0 16px;
  font-weight: 500;
}
.process-step .step-list {
  margin: 16px 0 0;
}
@media (max-width: 640px) {
  .process-step {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .process-step .step-num { font-size: 44px; }
}

/* ============================================================
   404 page
   ============================================================ */
.error-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #0b1220 0%, #001633 50%, #002048 100%);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.error-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(32, 112, 232, 0.18), transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(32, 112, 232, 0.12), transparent 50%);
  pointer-events: none;
}
.error-hero .container { position: relative; z-index: 1; max-width: 720px; }
.error-hero .err-code {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(96px, 18vw, 180px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0 0 12px;
  color: #fff;
  background: linear-gradient(180deg, #ffffff 0%, #93b4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.error-hero h1 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.2;
  margin: 0 0 16px;
  color: #fff;
}
.error-hero p {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 32px;
}
.error-hero .err-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.error-hero .err-links {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 14.5px;
}
.error-hero .err-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.error-hero .err-links a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
