/* ==========================================================================
   Skills Panda — inner pages (About, Impact, Accreditation, Privacy)
   Loaded by resources/views/layouts/site.blade.php. The home page does not
   use this file.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Theme variables expected by assets/new/css/style.css (header, buttons) */
  --font-body--family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body--style: normal;
  --font-body--weight: 400;
  --font-heading--family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading--style: normal;
  --font-heading--weight: 600;
  --font-button--family: "Poppins", system-ui, sans-serif;
  --font-button--style: normal;
  --font-button--weight: 600;
  --font-h1--size: 60px;
  --font-h2--size: 48px;
  --font-h3--size: 36px;
  --font-h4--size: 24px;
  --font-h5--size: 20px;
  --font-h6--size: 16px;
  --font-nav-main: 16px;
  --color-background: #fff;
  --color-foreground: rgba(28, 37, 57, 1);
  --color-foreground-heading: #1c2539;
  --color-foreground-subheading: rgba(93, 102, 111, 1);
  --color-background-subheading: rgba(255, 255, 255, 0.1);
  --color-border-subheading-bg: rgba(32, 40, 45, 0.1);
  --color-primary: rgba(28, 37, 57, 1);
  --color-primary-background: rgba(28, 37, 57, 1);
  --color-primary-hover: rgba(28, 37, 57, 1);
  --color-primary-background-hover: rgba(28, 37, 57, 1);
  --color-border: rgba(255, 255, 255, 0.3);
  --color-border-hover: rgba(93, 102, 111, 0.5);
  --color-shadow: #fff;
  --font-button-size: 16px;
  --font-button-size-mobile: 16px;
  --style-button-height: 56px;
  --style-button-height-mobile: 48px;
  --style-button-slim-height: 52px;
  --style-button-slim-height-mobile: 40px;
  --style-cta-underline-offset: 5px;
  --style-cta-underline-thickness: 1px;
  --color-primary-button-text: #267A6F;
  --color-primary-button-background: #fff;
  --color-primary-button-border: #43B0A1;
  --color-primary-button-hover-text: #267A6F;
  --color-primary-button-hover-background: #fff;
  --color-primary-button-hover-border: #fff;
  --color-secondary-button-text: #fff;
  --color-secondary-button-background: #267A6F;
  --color-secondary-button-border: #267A6F;
  --color-secondary-button-hover-text: #fff;
  --color-secondary-button-hover-background: #1c2539;
  --color-secondary-button-hover-border: #1c2539;
  --style-border-width-buttons-primary: 1px;
  --style-border-width-buttons-secondary: 1px;
  --style-border-radius-buttons-primary: 40px;
  --style-border-radius-buttons-secondary: 40px;
  --style-border-width: 1px;
  --focus-outline-width: 2px;
  --focus-outline-offset: 3px;

  /* Brand */
  --sp-green: #43B0A1;
  --sp-green-ink: #267A6F;      /* 5.1:1 on white — safe for text */
  --sp-green-deep: #1F6E64;
  --sp-blue: #5BC6D7;
  --sp-pink: #C973AE;
  --sp-pink-ink: #A3478A;
  --sp-yellow: #FBCC0A;

  /* Neutrals */
  --sp-ink: #1c2539;
  --sp-ink-2: #3a4458;
  --sp-muted: #5d666f;
  --sp-line: #e6eaef;
  --sp-surface: #ffffff;
  --sp-tint: #f5f8f9;
  --sp-night: #0f1a2b;
  --sp-night-2: #16243a;

  /* Shape & depth */
  --sp-radius-sm: 10px;
  --sp-radius: 16px;
  --sp-radius-lg: 24px;
  --sp-shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --sp-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px -6px rgba(16, 24, 40, .08);
  --sp-shadow-lg: 0 2px 4px rgba(16, 24, 40, .04), 0 24px 48px -12px rgba(16, 24, 40, .18);

  /* Layout */
  --sp-container: 1200px;
  --sp-gutter: clamp(16px, 4vw, 32px);
  --sp-section: clamp(72px, 9vw, 128px);
  --sp-ease: cubic-bezier(.2, .7, .2, 1);
}

@media (max-width: 767px) {
  :root {
    --font-h1--size: 44px;
    --font-h2--size: 36px;
    --font-h3--size: 28px;
    --font-h4--size: 20px;
    --font-h5--size: 18px;
  }
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body.sp-page {
  font-family: var(--font-body--family);
  color: var(--sp-ink);
  background: var(--sp-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.sp-page img { max-width: 100%; height: auto; }
.sp-page :focus-visible {
  outline: 2px solid var(--sp-green-ink);
  outline-offset: 3px;
  border-radius: 4px;
}
.sp-page ::selection { background: rgba(67, 176, 161, .25); }

.sp-skip {
  position: absolute; left: 16px; top: -100px; z-index: 10000;
  background: var(--sp-ink); color: #fff; padding: 12px 18px;
  border-radius: var(--sp-radius-sm); font-weight: 600; text-decoration: none;
  transition: top .2s;
}
.sp-skip:focus { top: 16px; color: #fff; }

.sp-container {
  width: 100%;
  max-width: calc(var(--sp-container) + var(--sp-gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--sp-gutter);
}

/* Theme widgets rendered as real buttons */
button.scroll-to-top { border: 0; padding: 0; font: inherit; cursor: pointer; }
drawer-opener[role="button"] { cursor: pointer; }

/* Header tweaks (markup is the theme's header-2) */
@media (min-width: 992px) {
  .header-menu .menu-link.is-active {
    font-weight: 600; text-decoration: underline; text-decoration-color: var(--sp-yellow);
    text-decoration-thickness: 2px; text-underline-offset: 8px;
  }
}
@media (max-width: 991px) { .header-menu .menu-link.is-active { color: var(--sp-green-ink); font-weight: 700; } }

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
.sp-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sp-green-ink);
  margin: 0 0 16px;
}
.sp-eyebrow::before {
  content: ""; width: 24px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--sp-green), var(--sp-blue));
}
.sp-eyebrow--light { color: rgba(255, 255, 255, .78); }
.sp-eyebrow--center { justify-content: center; }

.sp-h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.12; letter-spacing: -.025em; font-weight: 700;
  color: var(--sp-ink); margin: 0; text-wrap: balance;
}
.sp-h2 em { font-style: normal; color: var(--sp-green-ink); }
.sp-h2--light { color: #fff; }
.sp-h2--light em { color: var(--sp-green); }

.sp-h3 { font-size: 20px; line-height: 1.35; font-weight: 600; color: var(--sp-ink); margin: 0 0 8px; letter-spacing: -.01em; }

.sp-lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.7; color: var(--sp-muted); margin: 0; max-width: 62ch; text-wrap: pretty; }
.sp-lead--light { color: rgba(255, 255, 255, .72); }
.sp-body { font-size: 16px; line-height: 1.75; color: var(--sp-muted); margin: 0; text-wrap: pretty; }
.sp-body + .sp-body { margin-top: 16px; }

/* --------------------------------------------------------------------------
   4. Hero
   -------------------------------------------------------------------------- */
.sp-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(440px, 62vh, 620px);
  display: flex; align-items: flex-end;
  padding: 160px 0 clamp(48px, 7vw, 88px);
  color: #fff; background: var(--sp-night);
}
.sp-hero__media { position: absolute; inset: 0; z-index: -2; }
.sp-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.sp-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(15, 26, 43, .55) 0%, rgba(15, 26, 43, .35) 35%, rgba(15, 26, 43, .92) 100%),
    linear-gradient(90deg, rgba(15, 26, 43, .55) 0%, rgba(15, 26, 43, 0) 70%);
}
.sp-hero--plain { min-height: 0; padding-top: 168px; }
.sp-hero--plain::before {
  background:
    radial-gradient(60% 80% at 85% 0%, rgba(67, 176, 161, .28) 0%, transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(91, 198, 215, .16) 0%, transparent 60%);
}
.sp-hero__inner { max-width: 820px; }
.sp-crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; font-size: 14px; }
.sp-crumbs li { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .7); }
.sp-crumbs li + li::before { content: "/"; color: rgba(255, 255, 255, .4); }
.sp-crumbs a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.sp-crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.sp-crumbs [aria-current] { color: #fff; }
.sp-hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .95); color: var(--sp-ink);
  padding: 8px 14px 8px 10px; border-radius: 999px; margin-bottom: 22px;
  font-size: 13px; font-weight: 600;
}
.sp-hero__badge img { height: 20px; width: auto; }
.sp-hero h1 {
  font-size: clamp(40px, 6vw, 72px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700;
  color: #fff; margin: 0; text-wrap: balance;
}
.sp-hero h1 em { font-style: normal; color: var(--sp-yellow); }
.sp-hero__lead { margin: 20px 0 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: rgba(255, 255, 255, .82); max-width: 60ch; }
.sp-hero__meta { margin-top: 18px; font-size: 14px; color: rgba(255, 255, 255, .65); }

/* --------------------------------------------------------------------------
   5. Sections & layout
   -------------------------------------------------------------------------- */
.sp-section { padding-block: var(--sp-section); position: relative; }
.sp-section--tint { background: var(--sp-tint); }
.sp-section--night { background: var(--sp-night); color: #fff; overflow: hidden; }
.sp-section--night::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40% 60% at 0% 0%, rgba(91, 198, 215, .14), transparent 70%),
    radial-gradient(40% 60% at 100% 100%, rgba(67, 176, 161, .16), transparent 70%);
}
.sp-section--night > * { position: relative; }
.sp-section--tight { padding-block: clamp(56px, 6vw, 88px); }

.sp-head { display: grid; gap: 20px 64px; margin-bottom: clamp(40px, 5vw, 64px); }
@media (min-width: 992px) {
  .sp-head--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; }
}
.sp-head--center { text-align: center; justify-items: center; }
.sp-head--center .sp-lead { margin-inline: auto; }

.sp-split { display: grid; gap: clamp(40px, 6vw, 88px); align-items: center; }
@media (min-width: 992px) { .sp-split { grid-template-columns: 1fr 1fr; } .sp-split--flip > :first-child { order: 2; } }

.sp-figure { position: relative; margin: 0; }
.sp-figure img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--sp-radius-lg); box-shadow: var(--sp-shadow-lg); }
.sp-figure figcaption {
  position: absolute; left: 20px; bottom: 20px; right: 20px; max-width: 320px;
  background: rgba(255, 255, 255, .96); color: var(--sp-ink);
  padding: 14px 18px; border-radius: var(--sp-radius-sm); box-shadow: var(--sp-shadow);
  font-size: 14px; line-height: 1.5; font-weight: 500;
}
.sp-figure figcaption strong { display: block; font-size: 22px; letter-spacing: -.02em; color: var(--sp-green-ink); }

.sp-checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.sp-checks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 16px; line-height: 1.6; color: var(--sp-ink-2); }
.sp-checks svg { color: var(--sp-green-ink); margin-top: 3px; }

.sp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* --------------------------------------------------------------------------
   6. Buttons & links
   -------------------------------------------------------------------------- */
.sp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 600 15px/1 var(--font-body--family); letter-spacing: .005em;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--sp-ease), box-shadow .2s;
}
.sp-btn svg { flex: none; transition: transform .2s var(--sp-ease); }
.sp-btn:hover svg { transform: translateX(3px); }
.sp-btn--primary { background: var(--sp-green-ink); color: #fff; }
.sp-btn--primary:hover { background: var(--sp-green-deep); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(38, 122, 111, .7); }
.sp-btn--ghost { background: transparent; color: var(--sp-ink); border-color: #cfd6de; }
.sp-btn--ghost:hover { border-color: var(--sp-ink); color: var(--sp-ink); }
.sp-btn--light { background: #fff; color: var(--sp-ink); }
.sp-btn--light:hover { background: var(--sp-yellow); color: var(--sp-ink); transform: translateY(-1px); }
.sp-btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.sp-btn--outline-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .06); }

.sp-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 15px; color: var(--sp-green-ink); text-decoration: none;
}
.sp-link svg { transition: transform .2s var(--sp-ease); }
.sp-link:hover { color: var(--sp-green-deep); }
.sp-link:hover svg { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.sp-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .sp-grid--2, .sp-grid--3, .sp-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) {
  .sp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sp-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.sp-card {
  --accent: var(--sp-green-ink);
  --accent-soft: rgba(67, 176, 161, .12);
  position: relative; display: flex; flex-direction: column;
  background: var(--sp-surface); border: 1px solid var(--sp-line); border-radius: var(--sp-radius);
  padding: 28px; box-shadow: var(--sp-shadow-sm);
  transition: transform .3s var(--sp-ease), box-shadow .3s var(--sp-ease), border-color .3s;
}
.sp-card:hover { transform: translateY(-3px); box-shadow: var(--sp-shadow); border-color: #d6dde4; }
.sp-card[data-accent="blue"]   { --accent: #2a7f8c; --accent-soft: rgba(91, 198, 215, .16); }
.sp-card[data-accent="pink"]   { --accent: var(--sp-pink-ink); --accent-soft: rgba(201, 115, 174, .14); }
.sp-card[data-accent="yellow"] { --accent: #8a6d00; --accent-soft: rgba(251, 204, 10, .2); }
.sp-card p { font-size: 15px; line-height: 1.7; color: var(--sp-muted); margin: 0; }
.sp-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 22px; flex: none;
}
.sp-card__index { position: absolute; top: 24px; right: 26px; font-size: 13px; font-weight: 600; color: #b3bcc6; font-variant-numeric: tabular-nums; }

/* Mission / vision pair */
.sp-statement {
  background: var(--sp-surface); border: 1px solid var(--sp-line); border-radius: var(--sp-radius-lg);
  padding: clamp(28px, 4vw, 48px); box-shadow: var(--sp-shadow-sm);
}
.sp-statement .sp-h2 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 18px; }

/* --------------------------------------------------------------------------
   8. Stats
   -------------------------------------------------------------------------- */
.sp-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
@media (min-width: 992px) { .sp-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sp-stat { display: flex; flex-direction: column; padding: 32px 24px 8px 0; }
@media (min-width: 992px) { .sp-stat + .sp-stat { padding-left: 32px; border-left: 1px solid rgba(255, 255, 255, .12); } }
.sp-stat__num {
  display: block; font-size: clamp(40px, 5vw, 64px); line-height: 1; font-weight: 700; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums; color: #fff;
}
.sp-stat__num sup { font-size: .5em; top: -.7em; color: var(--sp-green); margin-left: 2px; }
.sp-stat__label { display: block; margin-top: 12px; font-weight: 400; font-size: 15px; color: rgba(255, 255, 255, .68); }

/* --------------------------------------------------------------------------
   9. Documents
   -------------------------------------------------------------------------- */
.sp-doc {
  display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center;
  background: var(--sp-surface); border: 1px solid var(--sp-line); border-radius: var(--sp-radius);
  padding: 16px; text-decoration: none; color: inherit; box-shadow: var(--sp-shadow-sm);
  transition: transform .3s var(--sp-ease), box-shadow .3s var(--sp-ease), border-color .3s;
}
.sp-doc:hover { transform: translateY(-3px); box-shadow: var(--sp-shadow); border-color: #d6dde4; color: inherit; }
.sp-doc__cover { width: 96px; height: 120px; border-radius: 8px; overflow: hidden; background: var(--sp-tint); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.sp-doc__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--sp-ease); }
.sp-doc:hover .sp-doc__cover img { transform: scale(1.04); }
.sp-doc__title { display: block; font-size: 17px; font-weight: 600; color: var(--sp-ink); margin-bottom: 4px; }
.sp-doc__desc { display: block; font-size: 14px; line-height: 1.5; color: var(--sp-muted); }
.sp-doc__meta { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--sp-green-ink); }

/* --------------------------------------------------------------------------
   10. Call to action band
   -------------------------------------------------------------------------- */
.sp-cta {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #12322e 0%, var(--sp-night) 60%, #0d2240 100%);
  border-radius: var(--sp-radius-lg); padding: clamp(40px, 6vw, 80px); color: #fff;
  display: grid; gap: 32px; align-items: center;
}
@media (min-width: 992px) { .sp-cta { grid-template-columns: 1.4fr auto; } }
.sp-cta::after {
  content: ""; position: absolute; z-index: -1; right: -120px; top: -160px; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(67, 176, 161, .35), transparent 65%);
}
.sp-cta .sp-h2 { color: #fff; }
.sp-cta p:not(.sp-eyebrow) { margin: 14px 0 0; color: rgba(255, 255, 255, .72); font-size: 17px; line-height: 1.7; max-width: 56ch; }
.sp-cta .sp-actions { margin-top: 0; }

/* --------------------------------------------------------------------------
   11. Impact stories
   -------------------------------------------------------------------------- */
.sp-stories { display: grid; gap: 28px 20px; }
@media (min-width: 640px) { .sp-stories { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .sp-stories { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sp-story--featured { grid-column: 1 / -1; margin-bottom: 20px; }
@media (min-width: 992px) {
  .sp-story.sp-story--featured { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 48px; align-items: center; }
  .sp-story--featured .sp-story__body { padding: 0; }
}

.sp-story { display: flex; flex-direction: column; min-width: 0; }
.sp-story__btn {
  all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; border-radius: var(--sp-radius);
}
.sp-story__btn:focus-visible { outline: 2px solid var(--sp-green-ink); outline-offset: 4px; }
.sp-story__thumb {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--sp-radius); background: var(--sp-night-2);
  box-shadow: var(--sp-shadow-sm);
}
.sp-story__thumb img,
.sp-story__thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--sp-ease), opacity .3s; }
.sp-story__btn:hover .sp-story__thumb img,
.sp-story__btn:hover .sp-story__thumb video { transform: scale(1.04); }
.sp-story__thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 26, 43, .75) 100%);
}
.sp-story__play {
  position: absolute; z-index: 2; left: 18px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 14px; font-weight: 600;
}
.sp-story__play i {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .95); color: var(--sp-ink);
  transition: transform .3s var(--sp-ease), background-color .3s;
}
.sp-story--featured .sp-story__play i { width: 64px; height: 64px; }
.sp-story__btn:hover .sp-story__play i { transform: scale(1.08); background: var(--sp-yellow); }
.sp-story__play svg { margin-left: 3px; }
.sp-story__dur {
  position: absolute; z-index: 2; right: 14px; bottom: 16px;
  background: rgba(15, 26, 43, .8); color: #fff; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
  padding: 4px 8px; border-radius: 6px;
}
.sp-story__body { padding: 16px 2px 0; }
.sp-story__tag { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sp-green-ink); margin-bottom: 6px; }
.sp-story__title { font-size: 17px; line-height: 1.4; font-weight: 600; color: var(--sp-ink); margin: 0; }
.sp-story--featured .sp-story__title { font-size: clamp(20px, 2vw, 26px); letter-spacing: -.015em; }
.sp-story__desc { margin: 8px 0 0; font-size: 15px; line-height: 1.65; color: var(--sp-muted); }

/* Video dialog */
.sp-dialog {
  width: min(1040px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px);
  padding: 0; border: 0; border-radius: var(--sp-radius-lg); overflow: hidden;
  background: #0b1220; color: #fff; box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
}
.sp-dialog::backdrop { background: rgba(6, 10, 18, .82); backdrop-filter: blur(6px); }
.sp-dialog[open] { animation: spDialogIn .35s var(--sp-ease); }
@keyframes spDialogIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.sp-dialog__media { position: relative; aspect-ratio: 16 / 9; background: #000; }
.sp-dialog__media iframe,
.sp-dialog__media video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sp-dialog__info { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; padding: 22px 28px 26px; }
.sp-dialog__info h2 { font-size: clamp(18px, 2vw, 22px); line-height: 1.35; margin: 4px 0 6px; color: #fff; font-weight: 600; }
.sp-dialog__info p { margin: 0; font-size: 15px; line-height: 1.65; color: rgba(255, 255, 255, .68); max-width: 70ch; }
.sp-dialog__info .sp-story__tag { color: var(--sp-green); }
.sp-dialog__close {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .2); cursor: pointer;
  transition: background-color .2s;
}
.sp-dialog__close:hover { background: rgba(255, 255, 255, .2); }

/* --------------------------------------------------------------------------
   12. Qualifications directory
   -------------------------------------------------------------------------- */
.sp-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.sp-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px;
  border: 1px solid var(--sp-line); background: var(--sp-surface); color: var(--sp-ink-2);
  border-radius: 999px; font: 500 14px/1 var(--font-body--family); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.sp-chip span { font-size: 12px; color: var(--sp-muted); font-variant-numeric: tabular-nums; }
.sp-chip:hover { border-color: var(--sp-ink); }
.sp-chip[aria-pressed="true"] { background: var(--sp-ink); color: #fff; border-color: var(--sp-ink); }
.sp-chip[aria-pressed="true"] span { color: rgba(255, 255, 255, .7); }

.sp-quals { display: grid; gap: 16px; }
@media (min-width: 640px) { .sp-quals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .sp-quals { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sp-qual { padding: 24px; }
.sp-qual[hidden] { display: none; }
.sp-qual__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sp-qual__field { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.sp-nqf {
  display: inline-flex; align-items: baseline; gap: 4px; padding: 6px 10px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; white-space: nowrap;
}
.sp-nqf b { font-size: 15px; font-weight: 700; }
.sp-qual__type { display: block; font-size: 13px; color: var(--sp-muted); margin-bottom: 4px; }
.sp-qual .sp-h3 { font-size: 19px; }
.sp-qual p { flex: 1; }
.sp-qual .sp-link { margin-top: 20px; font-size: 14px; }
.sp-empty { color: var(--sp-muted); }

/* --------------------------------------------------------------------------
   13. Legal / prose
   -------------------------------------------------------------------------- */
.sp-legal { display: grid; gap: 48px; }
@media (min-width: 992px) { .sp-legal { grid-template-columns: 260px minmax(0, 1fr); gap: 72px; } }
.sp-toc { align-self: start; }
@media (min-width: 992px) { .sp-toc { position: sticky; top: 112px; } }
.sp-toc__label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sp-muted); margin: 0 0 14px; }
.sp-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; border-left: 1px solid var(--sp-line); }
.sp-toc a {
  display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent;
  font-size: 14px; line-height: 1.45; color: var(--sp-muted); text-decoration: none;
}
.sp-toc a:hover { color: var(--sp-ink); }
.sp-toc a.is-current { color: var(--sp-green-ink); border-left-color: var(--sp-green-ink); font-weight: 600; }
@media (max-width: 991px) {
  .sp-toc { background: var(--sp-tint); border-radius: var(--sp-radius); padding: 20px 22px; }
  .sp-toc ol { columns: 2; column-gap: 24px; display: block; border: 0; }
  .sp-toc a { padding: 6px 0; border: 0; margin: 0; }
}
@media (max-width: 520px) { .sp-toc ol { columns: 1; } }

.sp-prose { max-width: 72ch; font-size: 16.5px; line-height: 1.8; color: var(--sp-ink-2); }
.sp-prose > :first-child { margin-top: 0; }
.sp-prose section + section { margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--sp-line); }
.sp-prose h2 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; letter-spacing: -.015em; font-weight: 700; color: var(--sp-ink); margin: 0 0 18px; }
.sp-prose h2 span { color: var(--sp-green-ink); margin-right: 10px; font-variant-numeric: tabular-nums; }
.sp-prose h3 { font-size: 18px; font-weight: 600; color: var(--sp-ink); margin: 32px 0 12px; }
.sp-prose p { margin: 0 0 16px; }
.sp-prose ul { margin: 0 0 16px; padding-left: 0; list-style: none; display: grid; gap: 12px; }
.sp-prose ul li { position: relative; padding-left: 22px; }
.sp-prose ul li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--sp-green); }
.sp-prose strong { color: var(--sp-ink); font-weight: 600; }
.sp-prose a { color: var(--sp-green-ink); text-underline-offset: 3px; }
.sp-prose address {
  font-style: normal; background: var(--sp-tint); border-radius: var(--sp-radius); padding: 24px 28px; line-height: 1.9;
}
.sp-note { background: var(--sp-tint); border-left: 3px solid var(--sp-green); border-radius: 0 var(--sp-radius-sm) var(--sp-radius-sm) 0; padding: 18px 22px; margin-bottom: 40px; font-size: 15.5px; }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.sp-footer { background: var(--sp-green); color: #fff; font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif; }
.sp-footer a { color: #fff; text-decoration: none; }
.sp-footer__top {
  display: grid; gap: 48px 32px; padding-block: clamp(64px, 8vw, 96px);
}
@media (min-width: 640px) { .sp-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .sp-footer__top { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.sp-footer__logo { display: inline-block; }
.sp-footer__logo img { width: 170px; height: auto; }
.sp-footer__blurb { margin: 22px 0 0; max-width: 34ch; font-size: 15.5px; line-height: 1.7; color: rgba(255, 255, 255, .92); }
.sp-footer__social { display: flex; gap: 10px; list-style: none; padding: 0; margin: 28px 0 0; }
.sp-footer__social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .16); transition: background-color .2s, color .2s;
}
.sp-footer__social a:hover { background: var(--sp-yellow); color: var(--sp-ink); }
.sp-footer h2 { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .82); margin: 6px 0 20px; }
.sp-footer ul.sp-footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.sp-footer__list a, .sp-footer__list span { font-size: 15.5px; color: #fff; }
.sp-footer__list a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s var(--sp-ease); padding-bottom: 2px; }
.sp-footer__list a:hover { background-size: 100% 1px; color: #fff; }
.sp-footer .sp-footer__muted { color: rgba(255, 255, 255, .85); }
.sp-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .25); }
.sp-footer__bottom .sp-container { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-block: 22px; font-size: 14px; color: rgba(255, 255, 255, .9); }
.sp-footer__bottom ul { display: flex; gap: 24px; list-style: none; padding: 0; margin: 0; }
.sp-footer__bottom a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sp-footer :focus-visible { outline-color: #fff; }

/* --------------------------------------------------------------------------
   15. Motion
   -------------------------------------------------------------------------- */
.js .sp-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--sp-ease), transform .7s var(--sp-ease); transition-delay: var(--d, 0ms); }
.js .sp-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .sp-reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   16. Home: Panda Bot web app showcase
   -------------------------------------------------------------------------- */
.pb {
  --pb-orange: #F28A1F;
  --pb-orange-ink: #B25500; /* 5:1 on white */
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: var(--sp-section);
  background:
    radial-gradient(55% 60% at 100% 10%, rgba(242, 138, 31, .12), transparent 70%),
    radial-gradient(45% 55% at 0% 100%, rgba(67, 176, 161, .12), transparent 70%),
    #fbfaf8;
  font-family: var(--font-body--family);
}
.pb__grid { display: grid; gap: clamp(48px, 6vw, 80px); align-items: center; }
@media (min-width: 992px) { .pb__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }

.pb__badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  background: #fff; border: 1px solid #f1dcc5; color: var(--pb-orange-ink);
  font-size: 13px; font-weight: 600;
}
.pb__badge span { width: 8px; height: 8px; border-radius: 50%; background: var(--pb-orange); box-shadow: 0 0 0 4px rgba(242, 138, 31, .2); }
.pb .sp-h2 em { color: var(--pb-orange-ink); }
.pb .sp-lead { margin-top: 18px; }

.pb__features { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.pb__feature { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; font-size: 15.5px; line-height: 1.6; color: var(--sp-muted); }
.pb__feature strong { display: block; color: var(--sp-ink); font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.pb__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(67, 176, 161, .14); color: var(--sp-green-ink); }
.pb__feature[data-tone="blue"] .pb__icon { background: rgba(91, 198, 215, .18); color: #2a7f8c; }
.pb__feature[data-tone="purple"] .pb__icon { background: rgba(139, 92, 246, .13); color: #6d3fd6; }

.pb .sp-actions { align-items: center; margin-top: 36px; }
.pb__btn { background: var(--sp-ink); color: #fff; }
.pb__btn:hover { background: var(--pb-orange-ink); color: #fff; transform: translateY(-1px); box-shadow: 0 12px 28px -12px rgba(178, 85, 0, .6); }
.pb__url { font-size: 14px; font-weight: 500; color: var(--sp-muted); }

/* Device stage */
.pb__stage { position: relative; padding: 0 0 56px; margin: 0; }
@media (min-width: 992px) { .pb__stage { padding: 0 40px 64px 0; } }
.pb__browser {
  margin: 0; border-radius: 14px; overflow: hidden; background: #fff;
  border: 1px solid #e7e3de;
  box-shadow: 0 2px 4px rgba(16, 24, 40, .04), 0 40px 80px -24px rgba(60, 35, 10, .28);
}
.pb__chrome {
  display: flex; align-items: center; gap: 7px; padding: 11px 14px;
  background: #f4f2ef; border-bottom: 1px solid #e7e3de;
}
.pb__chrome i { width: 10px; height: 10px; border-radius: 50%; background: #e0dcd6; }
.pb__chrome i:nth-child(1) { background: #ff5f57; }
.pb__chrome i:nth-child(2) { background: #febc2e; }
.pb__chrome i:nth-child(3) { background: #28c840; }
.pb__chrome span {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  max-width: 280px; margin: 0 auto; padding: 5px 12px; border-radius: 7px;
  background: #fff; color: #6b6560; font-size: 12px; font-weight: 500;
}
.pb__browser img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }

.pb__phone {
  position: absolute; right: 0; bottom: 0; margin: 0;
  width: clamp(120px, 27%, 220px); aspect-ratio: 646 / 1400;
  padding: 7px; border-radius: 34px; background: #14171c;
  box-shadow: 0 0 0 1px #2b2f36 inset, 0 30px 60px -16px rgba(20, 23, 28, .5);
}
.pb__phone::before {
  content: ""; position: absolute; z-index: 2; top: 15px; left: 50%; transform: translateX(-50%);
  width: 30%; height: 14px; border-radius: 10px; background: #14171c;
}
.pb__phone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 27px; }
@media (max-width: 575px) {
  .pb__phone { border-radius: 24px; padding: 5px; }
  .pb__phone img { border-radius: 19px; }
  .pb__phone::before { top: 10px; height: 9px; }
}

/* Home counters: 2 x 2 on phones instead of four tall cards */
@media (max-width: 767px) {
  .counter-section .row > [class*="col-"] { flex: 0 0 50%; max-width: 50%; }
  .counter-section .counter-card { padding: 24px 12px; min-height: 0; height: 100%; }
  .counter-section .counter-number { font-size: 32px; }
  .counter-section .counter-label { font-size: 12px; letter-spacing: .06em; }
}
