/* ===========================================================
   Services page — tightened layout
   =========================================================== */

/* HERO */
.svc-hero {
  padding: 48px 0 64px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.svc-hero::before {
  content: "";
  position: absolute;
  right: -160px; top: -120px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 22%, transparent), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.svc-hero-inner { max-width: 1100px; position: relative; z-index: 2; }
.svc-hero h1 { margin: 20px 0 20px; }
.svc-hero .lede { margin: 0 0 28px; }
.jump-nav {
  display: flex; flex-wrap: wrap; gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.jump-nav a {
  display: inline-flex; align-items: center;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--bg-elev);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2);
  transition: all .2s;
}
.jump-nav a:hover { border-color: var(--ink); color: var(--ink); background: var(--bg); }

/* SECTIONS */
.svc-section     { padding: clamp(56px, 7vw, 96px) 0; }
.svc-section.dark { background: var(--bg-sunken); }
.svc-section-alt { padding: clamp(56px, 7vw, 96px) 0; background: var(--ink); color: var(--bg); }
.svc-section-alt .eyebrow { color: color-mix(in oklab, var(--bg) 55%, transparent); }
.svc-section-alt h2,
.svc-section-alt .display,
.svc-section-alt b { color: var(--bg); }
.svc-section-alt .lede,
.svc-section-alt .body-m,
.svc-section-alt .body-s { color: color-mix(in oklab, var(--bg) 78%, transparent); }

/* SECTION HEAD — big numeral + content, tighter */
.svc-head {
  display: grid;
  grid-template-columns: minmax(140px, 180px) 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.svc-section-alt .svc-head { border-color: color-mix(in oklab, var(--bg) 20%, transparent); }
.svc-head .num {
  font-family: var(--font-display);
  font-weight: 580;
  font-size: clamp(88px, 10vw, 140px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--ink-4);
  opacity: 0.45;
}
.svc-head > div:last-child { max-width: 40ch; }
.svc-head h2 { margin: 14px 0 18px; }
.svc-head .lede { margin: 0; }
@media (max-width: 820px) {
  .svc-head { grid-template-columns: 1fr; gap: 8px; padding-bottom: 20px; margin-bottom: 28px; }
  .svc-head .num { font-size: 64px; opacity: 0.5; }
  .svc-head > div:last-child { max-width: none; }
}

/* CARD GRID */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .svc-grid { grid-template-columns: 1fr; } }

.svc-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 24px;
  display: flex; flex-direction: column;
  gap: 14px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.svc-card:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-m);
}
.svc-card > .mono {
  color: var(--ink-4);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2px;
}
.svc-card h3 {
  margin: 0;
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.svc-card .body-m {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}
.svc-card .pillar-list {
  list-style: none;
  padding: 14px 0 0;
  margin: auto 0 0;
  display: grid; gap: 8px;
  border-top: 1px solid var(--line);
}
.svc-card .pillar-list li {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.svc-card .pillar-list li .mono {
  color: var(--accent);
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
  width: auto;
}

a.svc-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
a.svc-card:hover { border-color: var(--accent); }
a.svc-card:hover h3 { color: var(--accent); }
.svc-card-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
  margin-top: auto; padding-top: 16px;
  transition: color .18s ease, gap .18s ease;
}
.svc-card-arrow svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
a.svc-card:hover .svc-card-arrow { color: var(--accent); gap: 12px; }

/* ===========================================================
   DEFENCE STACK (security layers) — cards, not rows
   =========================================================== */
.defence-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) { .defence-stack { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .defence-stack { grid-template-columns: 1fr; } }

.layer {
  background: color-mix(in oklab, var(--bg) 6%, transparent);
  border: 1px solid color-mix(in oklab, var(--bg) 14%, transparent);
  border-radius: var(--radius-l);
  padding: 22px;
  display: flex; flex-direction: column;
  gap: 12px;
  transition: border-color .2s ease, background .2s ease;
}
.layer:hover {
  border-color: color-mix(in oklab, var(--accent) 50%, transparent);
  background: color-mix(in oklab, var(--bg) 10%, transparent);
}
.l-num {
  color: color-mix(in oklab, var(--bg) 55%, transparent);
  padding-bottom: 10px;
  border-bottom: 1px solid color-mix(in oklab, var(--bg) 14%, transparent);
}
.l-body { flex: 1; }
.l-body h4 {
  margin: 0 0 8px;
  color: var(--bg);
  font-size: clamp(19px, 1.5vw, 22px);
  line-height: 1.2;
}
.l-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: color-mix(in oklab, var(--bg) 75%, transparent);
}
.l-tags {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid color-mix(in oklab, var(--bg) 12%, transparent);
}
.svc-section-alt .chip {
  height: 24px; padding: 0 10px;
  background: transparent;
  border-color: color-mix(in oklab, var(--bg) 22%, transparent);
  color: color-mix(in oklab, var(--bg) 80%, transparent);
  font-size: 10px;
}

/* SOC strip — three stats on dark */
.soc-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid color-mix(in oklab, var(--bg) 18%, transparent);
}
.soc-cell {
  padding: 0 24px;
  border-left: 1px solid color-mix(in oklab, var(--bg) 14%, transparent);
}
.soc-cell:first-child { padding-left: 0; border-left: 0; }
.soc-cell .mono {
  color: color-mix(in oklab, var(--bg) 55%, transparent);
  margin-bottom: 10px;
  display: block;
}
.soc-cell .display { margin-bottom: 10px; line-height: 0.95; }
.soc-cell p { max-width: 32ch; margin: 0; font-size: 13px; }
@media (max-width: 820px) {
  .soc-strip { grid-template-columns: 1fr; gap: 24px; }
  .soc-cell  { padding: 24px 0 0; border-left: 0; border-top: 1px solid color-mix(in oklab, var(--bg) 14%, transparent); }
  .soc-cell:first-child { padding-top: 0; border-top: 0; }
}

/* ===========================================================
   DEFENCE — diagram + list
   =========================================================== */
.defence-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
@media (max-width: 1280px) {
  .defence-wrap { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 900px) {
  .defence-list { grid-template-columns: 1fr; }
}

/* Diagram card */
.defence-diagram {
  position: sticky;
  top: 88px;
  margin: 0;
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid color-mix(in oklab, var(--bg) 14%, transparent);
  background: color-mix(in oklab, var(--bg) 4%, transparent);
  color: color-mix(in oklab, var(--bg) 85%, transparent);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  transition: opacity .25s ease;
}
.dd-caption { padding-bottom: 12px; border-bottom: 1px solid color-mix(in oklab, var(--bg) 12%, transparent); }
.dd-caption .mono { color: color-mix(in oklab, var(--bg) 55%, transparent); display: block; margin-bottom: 12px; }
.dd-caption h3 { margin: 0 0 10px; color: var(--bg); }
.dd-caption p { margin: 0; color: color-mix(in oklab, var(--bg) 75%, transparent); max-width: 40ch; }
.dd-svg { width: 100%; height: auto; display: block; color: color-mix(in oklab, var(--bg) 90%, transparent); }
.dd-foot { text-align: center; color: color-mix(in oklab, var(--bg) 55%, transparent); letter-spacing: 0.14em; }

/* Orbit dot on the outermost ring */
@keyframes dd-orbit {
  from { transform: rotate(0) translate(0, -240px); }
  to   { transform: rotate(360deg) translate(0, -240px); }
}
.dd-dot {
  transform-origin: 260px 260px;
  animation: dd-orbit 16s linear infinite;
  filter: drop-shadow(0 0 8px var(--accent));
}

/* Layer list */
.defence-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 640px) { .defence-list { grid-template-columns: 1fr; } }
.defence-list li {
  background: color-mix(in oklab, var(--bg) 5%, transparent);
  border: 1px solid color-mix(in oklab, var(--bg) 14%, transparent);
  border-radius: var(--radius-l);
  padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.defence-list li:hover {
  border-color: color-mix(in oklab, var(--accent) 55%, transparent);
  background: color-mix(in oklab, var(--bg) 9%, transparent);
  transform: translateY(-2px);
}
.dl-meta { display: flex; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid color-mix(in oklab, var(--bg) 12%, transparent); }
.dl-meta .mono { color: color-mix(in oklab, var(--bg) 55%, transparent); font-size: 10px; }
.dl-ring { color: var(--accent) !important; }
.defence-list h4 { margin: 0; color: var(--bg); font-size: 18px; line-height: 1.2; }
.defence-list p  { margin: 0; color: color-mix(in oklab, var(--bg) 72%, transparent); font-size: 13px; line-height: 1.5; }
.dl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; border-top: 1px solid color-mix(in oklab, var(--bg) 10%, transparent); }

/* Clickable defence-list items */
.defence-list li.dl-clickable { position: relative; cursor: pointer; }
.dl-clickable .dl-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.dl-clickable > * { position: relative; z-index: 0; }
.dl-clickable h4 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dl-clickable .dl-arrow { font-size: 18px; color: var(--accent); opacity: 0; transform: translateX(-4px); transition: opacity .2s ease, transform .2s ease; }
.dl-clickable:hover .dl-arrow { opacity: 1; transform: translateX(0); }
.dl-clickable:hover { cursor: pointer; }

/* ===========================================================
   ONBOARDING TIMELINE
   =========================================================== */
.onb-timeline {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  border-top: 1px solid var(--line);
}
.onb-timeline::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.7;
}
.onb-timeline > li {
  padding: 26px 22px 24px;
  border-left: 1px solid var(--line);
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
}
.onb-timeline > li:first-child { border-left: 0; }
.onb-timeline > li header {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 10px;
}
.onb-timeline > li header .mono {
  font-size: 10px; letter-spacing: 0.14em;
  color: var(--ink-3);
}
.onb-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ink-4);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--ink-4) 20%, transparent);
}
.onb-timeline > li.onb-now .onb-dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 22%, transparent);
}
.onb-timeline > li header h3 {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
}
.onb-timeline > li p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
}
.onb-out {
  list-style: none; margin: auto 0 0; padding: 14px 0 0;
  border-top: 1px dashed var(--line);
  display: grid; gap: 8px;
}
.onb-out li {
  font-size: 12px;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.onb-out li::before { content: "—  "; color: var(--accent); font-family: var(--font-mono); }
.onb-timeline > li.onb-now header .mono { color: var(--accent); }

@media (max-width: 1040px) {
  .onb-timeline { grid-template-columns: repeat(2, 1fr); }
  .onb-timeline > li:nth-child(3) { border-left: 0; }
  .onb-timeline > li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .onb-timeline { grid-template-columns: 1fr; }
  .onb-timeline > li { border-left: 0; }
  .onb-timeline > li + li { border-top: 1px solid var(--line); }
}

/* ===========================================================
   PLAN CARDS (on dark section)
   =========================================================== */
.plan-deck {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 980px)  { .plan-deck { grid-template-columns: 1fr; gap: 14px; } }

.plan-card {
  position: relative;
  background: color-mix(in oklab, var(--bg) 5%, transparent);
  border: 1px solid color-mix(in oklab, var(--bg) 16%, transparent);
  border-radius: var(--radius-xl);
  padding: 28px 26px;
  display: flex; flex-direction: column;
  gap: 18px;
  color: var(--bg);
  transition: border-color .2s ease, transform .2s ease;
}
.plan-card:hover { border-color: color-mix(in oklab, var(--bg) 30%, transparent); transform: translateY(-2px); }
.plan-card.pc-feature {
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 18%, transparent), color-mix(in oklab, var(--bg) 6%, transparent) 60%);
  border-color: color-mix(in oklab, var(--accent) 70%, transparent);
  box-shadow: 0 20px 60px -20px color-mix(in oklab, var(--accent) 55%, transparent);
}
.pc-badge {
  position: absolute; top: -11px; left: 22px;
  background: var(--accent);
  color: var(--bg-elev);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px; letter-spacing: 0.14em;
}
.pc-head { padding-bottom: 16px; border-bottom: 1px solid color-mix(in oklab, var(--bg) 14%, transparent); }
.pc-head .mono { color: color-mix(in oklab, var(--bg) 55%, transparent); display: block; margin-bottom: 12px; }
.pc-head h3 { margin: 0 0 10px; color: var(--bg); font-size: clamp(26px, 2.4vw, 34px); line-height: 1.05; }
.pc-head p { margin: 0; color: color-mix(in oklab, var(--bg) 72%, transparent); font-size: 13px; line-height: 1.5; }
.pc-line {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed color-mix(in oklab, var(--bg) 14%, transparent);
}
.pc-line .mono { color: color-mix(in oklab, var(--bg) 55%, transparent); font-size: 10px; letter-spacing: 0.14em; }
.pc-line strong { color: var(--bg); font-weight: 500; font-size: 13px; text-align: right; }
.pc-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.pc-list li {
  display: grid; grid-template-columns: 20px 1fr;
  gap: 10px; align-items: baseline;
  font-size: 13px;
  color: color-mix(in oklab, var(--bg) 85%, transparent);
}
.pc-list li.muted { color: color-mix(in oklab, var(--bg) 45%, transparent); text-decoration: line-through; text-decoration-color: color-mix(in oklab, var(--bg) 25%, transparent); }
.pc-list .tick {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 12px;
  line-height: 1;
}
.pc-list li.muted .tick { color: color-mix(in oklab, var(--bg) 30%, transparent); }
.pc-feature .pc-list .tick { color: var(--accent); filter: brightness(1.4); }
.pc-cta { margin-top: auto; justify-content: center; width: 100%; }
.plan-card .btn-accent { background: var(--accent); color: var(--bg-elev); border-color: transparent; }
.plan-card .btn-accent:hover { transform: translateY(-1px); filter: brightness(1.05); }
.plans-note { margin-top: 32px; text-align: center; color: color-mix(in oklab, var(--bg) 55%, transparent); letter-spacing: 0.14em; }

/* Buttons on dark alt section */
.svc-section-alt .btn-ghost {
  color: var(--bg);
  border-color: color-mix(in oklab, var(--bg) 30%, transparent);
}
.svc-section-alt .btn-ghost:hover {
  background: color-mix(in oklab, var(--bg) 10%, transparent);
  border-color: color-mix(in oklab, var(--bg) 55%, transparent);
}

/* Mobile tightening */
@media (max-width: 560px) {
  .svc-hero { padding: 32px 0 44px; }
  .svc-hero h1 { margin: 14px 0 16px; }
  .svc-hero .lede { margin-bottom: 20px; }
  .jump-nav { padding-top: 16px; gap: 6px; }
  .jump-nav a { padding: 6px 10px; font-size: 10px; }

  .svc-card { padding: 20px; border-radius: var(--radius-m); }
  .layer { padding: 18px; }
  .defence-diagram { padding: 20px; }
  .dd-caption h3 { font-size: 22px; }

  .onb-timeline > li { padding: 22px 2px 20px 18px; gap: 10px; }

  .plan-card { padding: 24px 20px; border-radius: var(--radius-l); }
  .pc-head h3 { font-size: 26px; }

  .soc-strip { margin-top: 36px; padding-top: 28px; }
}

/* ==========================================================================
   Defence section — iPad/tablet fixes (placed LAST so they beat the
   cascade-order of .defence-diagram / .defence-list li earlier in file).
   ========================================================================== */
@media (max-width: 1280px) {
  .defence-diagram {
    position: static;
    padding: 24px;
    background: color-mix(in oklab, var(--ink) 94%, var(--bg));
    border-color: color-mix(in oklab, var(--bg) 18%, transparent);
  }
  .defence-diagram .dd-svg { max-width: 420px; margin: 0 auto; }
  .defence-list li {
    background: color-mix(in oklab, var(--ink) 92%, var(--bg));
  }
  .defence-list li:hover {
    background: color-mix(in oklab, var(--ink) 88%, var(--bg));
  }
}


/* Certifications strip (services page) */
.certs-strip { padding: 80px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-base); }
.certs-strip-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.certs-strip-head .body-m { color: var(--ink-2); max-width: 50ch; }
.certs-strip-row { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.certs-strip-row li { display: flex; flex-direction: column; gap: 8px; padding: 22px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-raised); }
.certs-strip-row .mono { font-size: 11px; letter-spacing: 1.4px; color: var(--accent); }
.certs-strip-row b { font-family: var(--font-display); font-weight: 500; font-size: 15px; color: var(--ink-1); }
@media (max-width: 1080px) { .certs-strip-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .certs-strip-row { grid-template-columns: repeat(2, 1fr); } }
