/*
Theme Name: ServePS Obsidian
Theme URI: https://serveps.com
Description: The approved Obsidian theme from the ServeSuite login page, applied to the ServePS marketing site with blended Fire and EMS accents (EMS always leads). Child of Twenty Twenty-Five. Derived from the suite's canonical shared-colors.css and login.html per WEBSITE_THEME_DIRECTIVE.md.
Author: ServePS
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Tested up to: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: serveps-obsidian
*/

/* ==========================================================================
   Inter, self-hosted (OFL, see fonts/inter/OFL.txt). Relative URLs on
   purpose: absolute /fonts/... paths break behind reverse-proxy prefixes.
   ========================================================================== */

@font-face { font-family:'Inter'; font-style:normal; font-weight:400; font-display:swap; src:url('fonts/inter/Inter-Regular.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:500; font-display:swap; src:url('fonts/inter/Inter-Medium.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:600; font-display:swap; src:url('fonts/inter/Inter-SemiBold.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:700; font-display:swap; src:url('fonts/inter/Inter-Bold.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:800; font-display:swap; src:url('fonts/inter/Inter-ExtraBold.woff2') format('woff2'); }

/* ==========================================================================
   Tokens. Copied from WEBSITE_THEME_DIRECTIVE.md; the rainbow stops are
   byte-identical to the suite and must only ever be muted via the two
   opacity tokens, never edited.
   ========================================================================== */

:root {
  --rainbow: linear-gradient(90deg, #ef4444 0%, #3b82f6 25%, #10b981 50%, #f59e0b 75%, #ef4444 100%);
  --rainbow-line-opacity: 0.55;      /* header underline */
  --rainbow-hairline-opacity: 0.45;  /* card top hairlines */

  --font-sans: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 12px; --radius-xl: 24px; --radius-full: 999px;

  --container: 1120px;
  --nav-h: 72px;
}

/* ---- Obsidian backdrop, mode-INDEPENDENT (stays dark in day mode) ---- */
html {
  --bg: #0a0a0c;
  --bg-grad: linear-gradient(135deg, #0a0a0c 0%, #121216 55%, #17171c 100%);
  --header-grad: linear-gradient(180deg, #1a1a20 0%, #0c0c0f 100%);
  --shadow: rgba(0, 0, 0, 0.5);
  --text-on-bg: #ececf1;
  --text-soft-on-bg: #a8a8b4;
  --text-muted-on-bg: #74747f;
  --border-on-bg: #2c2c34;
  --border-strong-on-bg: #3f3f4a;

  /* Blended accent palette: Fire (Patriot) and EMS (Medic), both always present */
  --fire-navy: #31418c;
  --fire-navy-deep: #1e2a5a;
  --fire-crimson: #dc2626;
  --fire-crimson-deep: #991b1b;
  --fire-gold: #f4c20d;
  --fire-gold-deep: #b8860b;
  --ems-blue: #0a4f9e;
  --ems-blue-bright: #1668c9;
  --ems-blue-soft: #7fb3f0;
  --ems-silver: #dbe4f0;
  --ems-blue-pale: #e8f1fc;
  --ems-blue-ink: #08315e;

  /* On-backdrop accents, mode-independent. EMS LEADS: primary Medic blue, secondary Fire gold. */
  --accent-on-bg: var(--ems-blue-soft);
  --accent-2-on-bg: var(--fire-gold);

  /* Gradient "PS" in the wordmark, white to blue, as the suite's Medic logo-grad */
  --logo-grad: linear-gradient(135deg, #e8f1fc, #7fb3f0);

  /* Announcement banner: Star of Life blue body, white-silver ring (Medic signature) */
  --banner-bg: linear-gradient(135deg, #083c78, #0f5cb0);
  --banner-ring: linear-gradient(#dbe4f0, #dbe4f0);
  --banner-text: #ffffff;
  /* Fire-flavored callout variant, fire-specific sections only */
  --callout-fire-bg: linear-gradient(135deg, #991b1b, #dc2626);
  --callout-fire-ring: linear-gradient(#f4c20d, #f4c20d);

  /* Ambient orbs: EMS leads, Fire answers with a faint ember */
  --orb1: rgba(10, 79, 158, 0.45);
  --orb2: rgba(56, 189, 248, 0.30);
  --orb3: rgba(220, 38, 38, 0.16);
}

/* ---- Boxes, NIGHT (default): dark boxes on the dark backdrop ---- */
html[data-mode="night"], html:not([data-mode]) {
  --panel: linear-gradient(135deg, #17171c, #0e0e12);
  --panel-solid: #131318;
  --card: rgba(255, 255, 255, 0.045);
  --surface-2: #22222a;
  --border: #2c2c34;
  --border-strong: #3f3f4a;
  --text: #ececf1;
  --text-soft: #a8a8b4;
  --text-muted: #74747f;
  --ok: #10b981; --warn: #f59e0b; --danger: #ef4444; --info: #3b82f6;
  --ok-soft: rgba(16,185,129,0.14); --warn-soft: rgba(245,158,11,0.14);
  --danger-soft: rgba(239,68,68,0.14); --info-soft: rgba(59,130,246,0.14);

  /* EMS LEADS */
  --accent: var(--ems-blue-soft);
  --accent-soft: rgba(127, 179, 240, 0.13);
  --accent-2: var(--fire-gold);
  --accent-2-soft: rgba(244, 194, 13, 0.12);

  /* EMS primary CTA: Star of Life blue body, white-silver ring */
  --btn-bg: linear-gradient(135deg, #0a4f9e, #1668c9);
  --btn-ring: linear-gradient(#dbe4f0, #dbe4f0);
  --btn-text: #ffffff;
  /* Fire secondary: navy body, gold ring */
  --btn2-bg: linear-gradient(135deg, #31418c, #4a5aa8);
  --btn2-ring: linear-gradient(#f4c20d, #f4c20d);
  --btn2-text: #ffffff;

  /* Hero headline gradient fill: white to EMS blue on dark panels */
  --headline-grad: var(--logo-grad);
}

/* ---- Boxes, DAY: light boxes on the SAME dark backdrop ---- */
html[data-mode="day"] {
  --panel: linear-gradient(135deg, #ffffff, #f5f6f8);
  --panel-solid: #fafbfc;
  --card: #ffffff;
  --surface-2: #eef0f4;
  --border: #d3d6dc;
  --border-strong: #b9bdc6;
  --text: #1b1d22;
  --text-soft: #4d525b;
  --text-muted: #7d828c;
  --ok: #047857; --warn: #b45309; --danger: #b91c1c; --info: #1d4ed8;
  --ok-soft: rgba(4,120,87,0.10); --warn-soft: rgba(180,83,9,0.10);
  --danger-soft: rgba(185,28,28,0.10); --info-soft: rgba(29,78,216,0.10);

  /* Soft blue and gold vanish on white; dark accents inside day boxes. EMS LEADS. */
  --accent: var(--ems-blue);
  --accent-soft: rgba(10, 79, 158, 0.09);
  --accent-2: var(--fire-navy-deep);
  --accent-2-soft: rgba(30, 42, 90, 0.09);

  --btn-bg: linear-gradient(135deg, #0a4f9e, #1257ab);
  --btn-ring: linear-gradient(#08315e, #08315e);
  --btn-text: #ffffff;
  --btn2-bg: linear-gradient(135deg, #1e2a5a, #31418c);
  --btn2-ring: linear-gradient(#b8860b, #b8860b);
  --btn2-text: #ffffff;

  /* Deep EMS blues so the fill holds on white panels */
  --headline-grad: linear-gradient(135deg, #08315e, #1668c9);
}

/* ==========================================================================
   Base
   ========================================================================== */

html { background: var(--bg-grad) fixed; }

body {
  margin: 0;
  background: transparent;
  color: var(--text-on-bg);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: color 0.35s ease;
}

body ::selection { background: var(--accent-on-bg); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent-on-bg); outline-offset: 2px; }
::-webkit-scrollbar { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong-on-bg); border-radius: var(--radius-full); }

body.sps-front a { color: var(--accent-on-bg); }
body.sps-front img,
body.sps-front svg { max-width: 100%; }

.sps-skip { position: absolute; left: -9999px; }
.sps-skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--surface-2);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Ambient orbs, the login page backdrop. Fixed, behind everything,
   never interactive. EMS blue and cyan lead; a faint Fire ember answers.
   ========================================================================== */

.serveps-orb { position: fixed; border-radius: 50%; filter: blur(120px); pointer-events: none; z-index: -1; }
.serveps-orb.one   { width: 44vw; height: 44vw; top: -12vw;   right: -10vw; background: var(--orb1); animation: orb-drift-1 46s ease-in-out infinite alternate; }
.serveps-orb.two   { width: 38vw; height: 38vw; bottom: -14vw; left: -8vw;  background: var(--orb2); animation: orb-drift-2 58s ease-in-out infinite alternate; }
.serveps-orb.three { width: 30vw; height: 30vw; top: 40vh;    left: 55vw;  background: var(--orb3); animation: orb-drift-1 64s ease-in-out infinite alternate; }
@keyframes orb-drift-1 { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-7vw, 9vh, 0) scale(1.12); } }
@keyframes orb-drift-2 { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(8vw, -7vh, 0) scale(1.08); } }

/* ==========================================================================
   Header: dark gradient bar with the muted rainbow underline. The chrome
   sits on the backdrop, so it stays dark in both modes.
   ========================================================================== */

.sps-header {
  position: relative;
  z-index: 10;
  background: var(--header-grad);
  border-bottom: 1px solid var(--border-on-bg);
}
.sps-header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--rainbow); opacity: var(--rainbow-line-opacity); pointer-events: none;
}
.sps-header-inner {
  max-width: var(--container);
  margin: 0 auto;
  min-height: var(--nav-h);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

body.sps-front a.sps-logo,
.sps-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-on-bg);
}
.sps-badge-mark {
  flex: none;
  height: auto;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
}
.sps-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
/* Gradient "PS" in the wordmark, the suite's Medic logo-grad */
.sps-logo-text .ps {
  background: var(--logo-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

@media (max-width: 480px) {
  .sps-logo-text { font-size: 1.05rem; }
}

.sps-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.sps-nav a.sps-nav-link {
  color: var(--text-soft-on-bg);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}
.sps-nav a.sps-nav-link:hover { color: var(--accent-on-bg); }

@media (max-width: 640px) {
  .sps-header-inner { justify-content: center; text-align: center; }
  .sps-nav { gap: 1rem; flex-wrap: wrap; justify-content: center; }
}

/* ==========================================================================
   Mode toggle. Inline in the header on themed pages; the fixed variant is
   used on block-template pages (privacy, terms) that have no custom header.
   Always sits on dark chrome, so it uses on-bg tokens in both modes.
   ========================================================================== */

.mode-toggle {
  width: 42px; height: 42px; border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong-on-bg);
  color: var(--text-on-bg);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.15rem; line-height: 1; padding: 0;
  transition: transform 0.2s ease, background 0.35s ease;
}
.mode-toggle:hover { transform: scale(1.1); background: rgba(127, 179, 240, 0.18); }
/* Bottom-right on block-template pages: the parent theme's header already
   occupies the top-right corner. */
.mode-toggle.is-fixed { position: fixed; bottom: 1rem; right: 1rem; z-index: 50; }

/* ==========================================================================
   Layout
   ========================================================================== */

.sps-main { position: relative; z-index: 1; }

.sps-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 1rem;
  color: var(--text-on-bg);
  font-family: var(--font-sans);
  line-height: 1.6;
}

.sps-sec { padding: 4rem 0; }

/* Section headings sit directly on the backdrop: on-bg tokens, mode-independent */
.sps-sec h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--text-on-bg);
}

.sps-lede {
  color: var(--text-soft-on-bg);
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 0 2.5rem;
}

/* ==========================================================================
   Floating cards: the login-container look. 24px radius, deep shadow,
   muted rainbow hairline across the top. Boxes lighten in day mode.
   ========================================================================== */

.sps-hero,
.sps-card,
.sps-module-note {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 80px var(--shadow);
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease,
              transform 0.25s ease, box-shadow 0.25s ease;
}

/* Muted rainbow hairline on top-level cards (suite signature). The compact
   module grid keeps a plain hairline border; 22 rainbows read as noise. */
.sps-hero, .sps-card, .sps-cta { position: relative; overflow: hidden; }
.sps-hero::before,
.sps-grid:not(.sps-grid-compact) > .sps-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--rainbow);
  opacity: var(--rainbow-hairline-opacity);
  pointer-events: none; z-index: 1;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.sps-hero {
  text-align: center;
  padding: 4.5rem 1.5rem 4rem;
}

/* Floating, glowing logo above the headline (login page treatment).
   Injected by a content filter; the artwork itself is untouched.
   Block, not inline-block: inline would share a line box with the eyebrow
   pill and both would center as a pair, shoving the logo off center. */
.sps-hero-logo {
  position: relative;
  display: block;
  margin-bottom: 1.75rem;
}
.sps-hero-logo .logo-hero {
  display: block;
  margin: 0 auto;
  width: 96px;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.4)) drop-shadow(0 0 14px rgba(255,255,255,0.65));
  animation: logoFloat 6s ease-in-out infinite;
  position: relative; z-index: 2;
}
.sps-hero-logo .logo-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 150px; height: 150px; border-radius: 50%; z-index: 1;
  background: radial-gradient(circle, rgba(255,255,255,0.45) 0%, transparent 58%);
  animation: logoPulse 3s ease-in-out infinite;
}
/* On the day-mode white panel a white glow is invisible; glow EMS blue instead */
html[data-mode="day"] .sps-hero-logo .logo-glow {
  background: radial-gradient(circle, rgba(127, 179, 240, 0.45) 0%, transparent 58%);
}
html[data-mode="day"] .sps-hero-logo .logo-hero {
  filter: drop-shadow(0 10px 30px rgba(8, 49, 94, 0.25));
}
@keyframes logoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes logoPulse { 0%, 100% { opacity: 0.6; transform: translate(-50%,-50%) scale(1); } 50% { opacity: 1; transform: translate(-50%,-50%) scale(1.1); } }

/* Eyebrow pill: EMS accent with the pulsing status dot */
.sps-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.95rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
}
.sps-hero .eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: sps-pulse 2.4s ease-out infinite;
}
@keyframes sps-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.sps-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  color: var(--text);
}

.gradient-text {
  background: var(--headline-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent); /* fallback where background-clip is unsupported */
}

.sps-hero p {
  max-width: 46rem;
  margin: 0 auto 2rem;
  color: var(--text-soft);
  font-size: 1.125rem;
}
.sps-hero p:last-child { margin-bottom: 0; }

/* Trust badges under the hero: quiet silver pills */
.sps-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-top: 2.25rem;
}
.sps-badges span {
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text-soft);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.95rem;
  font-size: 0.82rem;
}

/* ==========================================================================
   Buttons: ringed gradient CTAs (padding-box + border-box layering)
   ========================================================================== */

.sps-btn, .btn-fire {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 1.85rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.sps-btn:hover, .btn-fire:hover { transform: translateY(-2px); filter: brightness(1.15); }
.sps-btn:active, .btn-fire:active { transform: translateY(0); }

/* EMS leads: Star of Life blue body inside a crisp ring */
.sps-btn {
  border: 2px solid transparent;
  background: var(--btn-bg) padding-box, var(--btn-ring) border-box;
  color: var(--btn-text) !important;
}
/* Fire answers: navy body, gold ring. Fire-specific contexts only. */
.btn-fire {
  border: 2px solid transparent;
  background: var(--btn2-bg) padding-box, var(--btn2-ring) border-box;
  color: var(--btn2-text) !important;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.sps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.sps-card { padding: 1.6rem; }
.sps-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
}

/* Compact module grid: smaller radius, lighter shadow, plain hairline border */
.sps-grid-compact .sps-card {
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  background: var(--card);
}

.sps-card h3 {
  margin: 0.6rem 0 0.4rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}
.sps-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9375rem;
}

/* Module cards as links */
a.sps-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
}
a.sps-card h3 { transition: color 0.2s ease; }
a.sps-card:hover h3 { color: var(--accent); }
a.sps-card:focus-visible { outline: 2px solid var(--accent-on-bg); outline-offset: 2px; }

/* Fire answers at section level: the standalone products under "More from
   ServePS" carry the Fire flavor (gold at night, navy by day). */
.sps-sec-fire a.sps-card:hover { border-color: color-mix(in srgb, var(--accent-2) 55%, var(--border)); }
.sps-sec-fire a.sps-card:hover h3 { color: var(--accent-2); }

/* ==========================================================================
   Status tags. ALL CAPS per suite Rule 3; colors flip with the mode so they
   stay legible inside day-mode white cards.
   ========================================================================== */

.sps-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.24rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
}
.sps-tag.live {
  background: var(--ok-soft);
  border-color: color-mix(in srgb, var(--ok) 40%, transparent);
  color: var(--ok);
}
.sps-tag.dev {
  background: var(--warn-soft);
  border-color: color-mix(in srgb, var(--warn) 40%, transparent);
  color: var(--warn);
}
/* Early access: the standalone products, Fire-flavored gold */
.sps-tag.early {
  background: var(--accent-2-soft);
  border-color: color-mix(in srgb, var(--accent-2) 45%, transparent);
  color: var(--accent-2);
}
/* Suite lifecycle: blue reads as active work, muted reads as not started */
.sps-tag.devtest {
  background: var(--info-soft);
  border-color: color-mix(in srgb, var(--info) 40%, transparent);
  color: color-mix(in srgb, var(--info) 70%, var(--text));
}
.sps-tag.pending {
  background: color-mix(in srgb, var(--text-muted) 12%, transparent);
  border-color: color-mix(in srgb, var(--text-muted) 40%, transparent);
  color: var(--text-soft);
}

/* ==========================================================================
   Closing panel: the Star of Life blue announcement banner with the
   white-silver ring, the Medic signature. Saturated brand blue in both
   modes, so its text is always white.
   ========================================================================== */

.sps-cta {
  border: 2px solid transparent;
  background: var(--banner-bg) padding-box, var(--banner-ring) border-box;
  color: var(--banner-text);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 80px var(--shadow);
  padding: 3.5rem 1.5rem;
  text-align: center;
  margin: 3rem 0 4rem;
}
.sps-cta h2 { color: var(--banner-text); margin: 0 0 0.5rem; font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; }
.sps-cta p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 auto 1.75rem;
  max-width: 40rem;
}
.sps-cta p:last-child { margin-bottom: 0; }

/* Crimson and gold Fire callout, ONLY inside fire-specific sections */
.callout-fire {
  border: 2px solid transparent;
  background: var(--callout-fire-bg) padding-box, var(--callout-fire-ring) border-box;
  color: #ffffff;
  border-radius: var(--radius-lg);
}

/* ==========================================================================
   Forms (future contact or demo request pages)
   ========================================================================== */

body.sps-front input[type="text"],
body.sps-front input[type="email"],
body.sps-front input[type="tel"],
body.sps-front textarea,
body.sps-front select {
  background: var(--surface-2); color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-lg);
  padding: 14px 16px; font-size: 15px; font-family: var(--font-sans);
  transition: all 0.2s ease;
}
body.sps-front input::placeholder,
body.sps-front textarea::placeholder { color: var(--text-muted); }
body.sps-front input:focus,
body.sps-front textarea:focus,
body.sps-front select:focus {
  outline: none; border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}
/* Day mode: fields sit on light cards, white borders would vanish */
html[data-mode="day"] body.sps-front input,
html[data-mode="day"] body.sps-front textarea,
html[data-mode="day"] body.sps-front select { border-color: var(--border-strong); }
html[data-mode="day"] body.sps-front input:focus,
html[data-mode="day"] body.sps-front textarea:focus,
html[data-mode="day"] body.sps-front select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ==========================================================================
   Footer: chrome on the backdrop, dark in both modes
   ========================================================================== */

.sps-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-on-bg);
  background: rgba(10, 10, 12, 0.6);
}
.sps-footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.sps-footer-brand p {
  margin: 0.5rem 0 0;
  color: var(--text-muted-on-bg);
  font-size: 0.9rem;
}
.sps-footer-info {
  text-align: right;
  color: var(--text-muted-on-bg);
  font-size: 0.875rem;
}
.sps-footer-info p { margin: 0 0 0.35rem; }
.sps-footer-info a {
  color: var(--text-soft-on-bg);
  text-decoration: none;
  margin-left: 1rem;
}
.sps-footer-info a:hover { color: var(--accent-on-bg); }

@media (max-width: 640px) {
  .sps-footer-inner { flex-direction: column; text-align: center; }
  .sps-footer-info { text-align: center; }
  .sps-footer-info a { margin: 0 0.5rem; }
}

/* Anchor targets for in-page section links, clear the section heading */
#platform,
#more-from { scroll-margin-top: 1.5rem; }

/* ==========================================================================
   Module detail page (/platform/{slug}/). Copy sits directly on the
   backdrop, so it uses on-bg tokens; the status note is a box.
   ========================================================================== */

.sps-module {
  max-width: 46rem;
  padding: 2.5rem 0 1rem;
}
.sps-module-back {
  display: inline-block;
  color: var(--text-soft-on-bg);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2rem;
}
.sps-module-back:hover { color: var(--accent-on-bg); }
.sps-module .sps-tag { margin-bottom: 1rem; }
/* Tags on the module page sit on the backdrop, not in a box: pin night colors */
.sps-module .sps-tag.devtest { background: rgba(59,130,246,0.14); border-color: rgba(59,130,246,0.40); color: #93c5fd; }
.sps-module .sps-tag.pending { background: rgba(116,116,127,0.14); border-color: rgba(116,116,127,0.40); color: var(--text-soft-on-bg); }
.sps-module .sps-tag.early   { background: rgba(244,194,13,0.12);  border-color: rgba(244,194,13,0.45);  color: var(--fire-gold); }
.sps-module-name {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0.5rem 0 0.5rem;
  color: var(--text-on-bg);
}
.sps-module-tagline {
  font-size: 1.25rem;
  color: var(--accent-on-bg);
  font-weight: 500;
  margin: 0 0 1.75rem;
}
.sps-module-lead {
  font-size: 1.125rem;
  color: var(--text-soft-on-bg);
  line-height: 1.7;
  margin: 0 0 1.15rem;
}
.sps-module-h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-on-bg);
  margin: 1.6rem 0 1.25rem;
}
.sps-module-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2.75rem;
  display: grid;
  gap: 0.85rem;
}
.sps-module-features li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--text-soft-on-bg);
  line-height: 1.5;
}
.sps-module-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, #0a4f9e, #1668c9);
}
.sps-module-note {
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  padding: 1.25rem 1.5rem;
  margin-bottom: 3.5rem;
}
.sps-module-note p {
  margin: 0 0 0.5rem;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}
.sps-module-note p:last-child { margin-bottom: 0; }
.sps-module-note strong { color: var(--text); }

/* ==========================================================================
   Block-template pages (privacy, terms): parent theme markup on the same
   Obsidian backdrop. Copy sits directly on the backdrop, mode-independent.
   ========================================================================== */

body:not(.sps-front) .wp-site-blocks { position: relative; z-index: 1; }
body:not(.sps-front) { color: var(--text-on-bg); }
body:not(.sps-front) a { color: var(--accent-on-bg); }

/* ==========================================================================
   Motion safety
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .serveps-orb, .sps-hero-logo .logo-hero, .sps-hero-logo .logo-glow,
  .sps-hero .eyebrow::before { animation: none; }
  body, .sps-hero, .sps-card, .sps-module-note { transition: none; }
  .sps-btn:hover, .btn-fire:hover, .sps-card:hover { transform: none; }
}
