/* =========================================================
   Scriptpeakk — Custom Stylesheet
   Brand colour: #6c63ff  |  Dark: #0f0e17
   ========================================================= */

/* ─── 1. CSS VARIABLES ─────────────────────────────────── */
:root {
  --sp-primary:       #6c63ff;
  --sp-primary-dark:  #574fd6;
  --sp-primary-light: #8b85ff;
  --sp-primary-ghost: rgba(108, 99, 255, 0.12);

  --sp-dark:          #0f0e17;
  --sp-dark-card:     #1a1a2e;
  --sp-dark-border:   rgba(255,255,255,0.08);

  --sp-text:          #1a1a2e;
  --sp-text-muted:    #6b7280;
  --sp-text-light:    #9ca3af;

  --sp-bg:            #f8f7ff;
  --sp-bg-white:      #ffffff;
  --sp-border:        #e5e7eb;

  --sp-green:         #4ade80;
  --sp-success:       #22c55e;

  --sp-radius:        14px;
  --sp-radius-sm:     8px;
  --sp-radius-lg:     20px;

  --sp-shadow-sm:     0 2px 8px rgba(108,99,255,0.08);
  --sp-shadow:        0 6px 24px rgba(108,99,255,0.12);
  --sp-shadow-lg:     0 16px 48px rgba(108,99,255,0.18);

  --sp-transition:    all 0.25s cubic-bezier(0.4,0,0.2,1);

  --sp-container:     1200px;
}

/* ─── 2. GLOBAL BASE ────────────────────────────────────── */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--sp-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after {
  box-sizing: border-box;
}

a { color: var(--sp-primary); }
a:hover { color: var(--sp-primary-dark); }

img { max-width: 100%; height: auto; }

/* ─── 3. GENERATEPRESS LAYOUT OVERRIDES ────────────────── */

/*
 * GP's own stylesheet uses .grid-container.container with higher specificity.
 * We use !important to ensure the full-width override wins on our custom pages.
 */

/* The main page wrapper */
.sp-front-page #page,
.sp-front-page #page.site,
.sp-front-page #page.grid-container,
.sp-front-page #page.container,
.sp-product-single #page,
.sp-product-single #page.site,
.sp-product-single #page.grid-container,
.sp-product-single #page.container,
.sp-product-archive #page,
.sp-product-archive #page.site,
.sp-product-archive #page.grid-container,
.sp-product-archive #page.container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Content wrappers */
.sp-front-page .site-content,
.sp-front-page #content,
.sp-product-single .site-content,
.sp-product-single #content,
.sp-product-archive .site-content,
.sp-product-archive #content {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Primary content area (removes sidebar float width) */
.sp-front-page #primary,
.sp-front-page .content-area,
.sp-product-single #primary,
.sp-product-single .content-area,
.sp-product-archive #primary,
.sp-product-archive .content-area {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

/* Main element */
.sp-front-page #main,
.sp-front-page .site-main,
.sp-product-single #main,
.sp-product-single .site-main,
.sp-product-archive #main,
.sp-product-archive .site-main {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Remove GP's separate-containers entry styling */
.sp-front-page .entry,
.sp-product-single .entry,
.sp-product-archive .entry {
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  border: none !important;
  background: none !important;
}

/* Ensure our homepage div fills 100% */
.sp-front-page .sp-homepage,
.sp-product-single .sp-product-page,
.sp-product-archive .sp-archive-page {
  width: 100%;
  overflow-x: hidden;
}

/* ─── 4. HEADER ─────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sp-border) !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
  transition: box-shadow 0.3s ease;
  /* Ensure the header itself is full-width */
  width: 100% !important;
  max-width: 100% !important;
  left: 0 !important;
  right: 0 !important;
}

.site-header.sp-scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* GP outputs the header before #page, so it's always full-width.
   We just need to control the inner padding/max-width. */
.inside-header {
  max-width: var(--sp-container) !important;
  margin: 0 auto !important;
  padding: 0 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 68px;
  width: 100%;
}

/* Text logo fallback — when no image logo is uploaded yet */
.main-title {
  font-size: 20px !important;
  font-weight: 800 !important;
  margin: 0 !important;
  line-height: 1;
  letter-spacing: -0.3px;
}
.main-title a {
  color: var(--sp-dark) !important;
  text-decoration: none;
}
.main-title a span {
  color: var(--sp-primary);
}
.main-title a:hover { color: var(--sp-primary) !important; }

/* Site logo / branding */
.site-logo img,
.custom-logo {
  max-height: 44px;
  width: auto;
}

.site-branding {
  display: flex;
  align-items: center;
}

.main-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  line-height: 1;
}
.main-title a {
  color: var(--sp-dark);
  text-decoration: none;
}
.main-title a:hover { color: var(--sp-primary); }

.site-description {
  font-size: 12px;
  color: var(--sp-text-muted);
  margin: 2px 0 0;
}

/* Navigation */
.main-navigation ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation li { margin: 0; }

.main-navigation a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--sp-text);
  text-decoration: none;
  border-radius: var(--sp-radius-sm);
  transition: var(--sp-transition);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current-page-ancestor > a {
  color: var(--sp-primary);
  background: var(--sp-primary-ghost);
}

/* "Products" nav item gets a subtle accent */
.main-navigation .menu-item-products > a,
.main-navigation .menu-item-type-post_type_archive > a {
  color: var(--sp-primary);
  font-weight: 600;
}

/* Mobile nav toggle */
.menu-toggle {
  background: var(--sp-primary-ghost);
  border: 1px solid rgba(108,99,255,0.2);
  color: var(--sp-primary);
  border-radius: var(--sp-radius-sm);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--sp-transition);
}
.menu-toggle:hover {
  background: var(--sp-primary);
  color: white;
}

/* ─── 5. SHARED SECTION ANATOMY ──────────────────────────── */

.sp-section-inner {
  max-width: var(--sp-container);
  margin: 0 auto;
  padding: 0 28px;
}

.sp-section-inner--narrow {
  max-width: 780px;
}

.sp-section-header {
  text-align: center;
  margin-bottom: 52px;
}

.sp-section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sp-primary);
  background: var(--sp-primary-ghost);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.sp-section-header h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: var(--sp-dark);
  margin: 0 0 14px;
  letter-spacing: -0.5px;
}

.sp-section-header p {
  font-size: 17px;
  color: var(--sp-text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

.sp-section-cta {
  text-align: center;
  margin-top: 40px;
}

/* ─── 6. BUTTONS ────────────────────────────────────────── */

.sp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--sp-radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--sp-transition);
  line-height: 1.3;
  white-space: nowrap;
}

.sp-btn svg { flex-shrink: 0; }

/* Primary – purple filled */
.sp-btn-primary {
  background: var(--sp-primary);
  color: #fff;
  border-color: var(--sp-primary);
}
.sp-btn-primary:hover {
  background: var(--sp-primary-dark);
  border-color: var(--sp-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108,99,255,0.38);
}

/* Ghost – white text, transparent on dark bg */
.sp-btn-ghost {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.22);
}
.sp-btn-ghost:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

/* Ghost dark – for light backgrounds */
.sp-btn-ghost-dark {
  background: transparent;
  color: var(--sp-text-muted);
  border-color: var(--sp-border);
}
.sp-btn-ghost-dark:hover {
  color: var(--sp-primary);
  border-color: var(--sp-primary);
  background: var(--sp-primary-ghost);
}

/* Outline purple */
.sp-btn-outline-purple {
  background: transparent;
  color: var(--sp-primary);
  border-color: var(--sp-primary);
}
.sp-btn-outline-purple:hover {
  background: var(--sp-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--sp-shadow);
}

/* Outline dark */
.sp-btn-outline-dark {
  background: transparent;
  color: var(--sp-text);
  border-color: var(--sp-border);
}
.sp-btn-outline-dark:hover {
  color: var(--sp-primary);
  border-color: var(--sp-primary);
  background: var(--sp-primary-ghost);
}

/* White – for dark backgrounds */
.sp-btn-white {
  background: #fff;
  color: var(--sp-primary);
  border-color: #fff;
}
.sp-btn-white:hover {
  background: #f0effe;
  color: var(--sp-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Sizes */
.sp-btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}

.sp-btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 10px;
}

/* ─── 7. HERO SECTION ───────────────────────────────────── */

.sp-hero {
  position: relative;
  background: var(--sp-dark);
  overflow: hidden;
  padding: 80px 0 88px;
  min-height: auto;
  display: flex;
  align-items: center;
}

/* Ambient glow orbs */
.sp-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 55%, rgba(108,99,255,0.22) 0%, transparent 52%),
    radial-gradient(ellipse at 85% 15%, rgba(108,99,255,0.14) 0%, transparent 44%),
    radial-gradient(ellipse at 70% 80%, rgba(74,222,128,0.06) 0%, transparent 38%);
  pointer-events: none;
}

/* Dot grid overlay */
.sp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(108,99,255,0.18) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.55;
}

.sp-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Hero badge */
.sp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108,99,255,0.14);
  border: 1px solid rgba(108,99,255,0.28);
  color: var(--sp-primary-light);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

.sp-hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sp-primary-light);
  animation: sp-pulse 2.2s ease-in-out infinite;
}

@keyframes sp-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

/* Hero title */
.sp-hero-title {
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin: 0 0 20px;
}

.sp-accent { color: var(--sp-primary); }

/* Hero subtitle */
.sp-hero-subtitle {
  font-size: clamp(16px, 2vw, 18px);
  color: rgba(255,255,255,0.62);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 0 38px;
}

.sp-hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ─── 8. CODE EDITOR MOCKUP ─────────────────────────────── */

.sp-code-editor {
  background: #1e2130;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--sp-radius);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(108,99,255,0.15);
  font-family: 'Courier New', Courier, monospace;
  font-size: 13.5px;
}

.sp-code-titlebar {
  background: #161826;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sp-code-dots {
  display: flex;
  gap: 6px;
}

.sp-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.sp-dot--red    { background: #ff5f57; }
.sp-dot--yellow { background: #febc2e; }
.sp-dot--green  { background: #28c840; }

.sp-code-filename {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  font-family: inherit;
  margin-left: 2px;
}

.sp-code-body {
  padding: 20px 20px 16px;
  overflow-x: auto;
}

.sp-code-body pre {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  font-size: 13.5px;
  line-height: 1.75;
  color: #abb2bf;
}

.sp-code-body code {
  background: none;
  padding: 0;
  font-size: inherit;
  border: none;
}

/* Syntax colours — VS Code Dark+ palette */
.sp-cc { color: #6a9955; }   /* comment  */
.sp-ck { color: #569cd6; }   /* keyword  */
.sp-cs { color: #ce9178; }   /* string   */
.sp-cv { color: #9cdcfe; }   /* variable */
.sp-cf { color: #dcdcaa; }   /* function */

.sp-code-footer {
  padding: 10px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #161826;
}

.sp-code-lang {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: inherit;
}

.sp-code-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--sp-green);
  font-family: inherit;
}

.sp-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sp-green);
}

/* ─── 9. FEATURES / TRUST PILLARS ────────────────────────── */

.sp-features {
  background: var(--sp-bg-white);
  padding: 60px 0;
  border-bottom: 1px solid var(--sp-border);
}

.sp-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.sp-feature {
  padding: 32px 28px;
  border-right: 1px solid var(--sp-border);
  transition: var(--sp-transition);
}

.sp-feature:last-child {
  border-right: none;
}

.sp-feature:hover {
  background: var(--sp-bg);
}

.sp-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--sp-primary-ghost);
  border-radius: var(--sp-radius-sm);
  color: var(--sp-primary);
  margin-bottom: 16px;
}

.sp-feature h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--sp-dark);
  margin: 0 0 8px;
}

.sp-feature p {
  font-size: 14px;
  color: var(--sp-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ─── 10. PRODUCTS SECTION ──────────────────────────────── */

.sp-products-section {
  background: var(--sp-bg);
  padding: 88px 0;
}

.sp-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ─── 11. PRODUCT CARDS ─────────────────────────────────── */

.sp-product-card {
  background: var(--sp-bg-white);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--sp-transition);
}

.sp-product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sp-shadow-lg);
  border-color: rgba(108,99,255,0.25);
}

/* Badge */
.sp-product-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

.sp-badge--new      { background: #dbeafe; color: #1d4ed8; }
.sp-badge--popular  { background: #fef3c7; color: #92400e; }
.sp-badge--updated  { background: #d1fae5; color: #065f46; }
.sp-badge--free     { background: #f0fdf4; color: #166534; }

/* Thumbnail */
.sp-product-thumb-link { display: block; }

.sp-product-thumb {
  height: 200px;
  overflow: hidden;
  background: var(--sp-bg);
  position: relative;
}

.sp-product-thumb img.sp-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.sp-product-card:hover .sp-product-img {
  transform: scale(1.04);
}

.sp-product-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sp-bg) 0%, #ece9ff 100%);
}

.sp-product-icon-wrap {
  font-size: 52px;
  line-height: 1;
  opacity: 0.8;
}

/* Card body */
.sp-product-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.sp-product-type-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sp-primary);
  background: var(--sp-primary-ghost);
  padding: 3px 10px;
  border-radius: 20px;
  align-self: flex-start;
}

.sp-product-name {
  font-size: 18px;
  font-weight: 700;
  margin: 2px 0;
  color: var(--sp-dark);
  line-height: 1.3;
}

.sp-product-name a {
  color: inherit;
  text-decoration: none;
}
.sp-product-name a:hover { color: var(--sp-primary); }

.sp-product-desc {
  font-size: 14px;
  color: var(--sp-text-muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

/* Footer row */
.sp-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  margin-top: auto;
  border-top: 1px solid var(--sp-border);
  gap: 12px;
}

.sp-product-actions {
  display: flex;
  gap: 8px;
}

/* ─── 12. BLOG SECTION ──────────────────────────────────── */

.sp-blog-section {
  background: var(--sp-bg-white);
  padding: 88px 0;
  border-top: 1px solid var(--sp-border);
}

.sp-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ─── 13. BLOG CARDS ────────────────────────────────────── */

.sp-blog-card {
  background: var(--sp-bg-white);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  overflow: hidden;
  transition: var(--sp-transition);
  display: flex;
  flex-direction: column;
}

.sp-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sp-shadow);
  border-color: rgba(108,99,255,0.2);
}

.sp-blog-thumb-link { display: block; }

.sp-blog-thumb {
  height: 195px;
  overflow: hidden;
  background: var(--sp-bg);
}

.sp-blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.sp-blog-card:hover .sp-blog-img { transform: scale(1.04); }

.sp-blog-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sp-bg) 0%, #ece9ff 100%);
}

.sp-blog-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.sp-blog-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sp-blog-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sp-primary);
  background: var(--sp-primary-ghost);
  padding: 3px 10px;
  border-radius: 20px;
}

.sp-blog-date {
  font-size: 12px;
  color: var(--sp-text-light);
}

.sp-blog-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
  color: var(--sp-dark);
}

.sp-blog-title a {
  color: inherit;
  text-decoration: none;
}
.sp-blog-title a:hover { color: var(--sp-primary); }

.sp-blog-excerpt {
  font-size: 14px;
  color: var(--sp-text-muted);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.sp-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sp-primary);
  text-decoration: none;
  transition: var(--sp-transition);
  margin-top: 4px;
  align-self: flex-start;
}

.sp-read-more:hover {
  color: var(--sp-primary-dark);
  gap: 10px;
}

/* ─── 14. CTA SECTION ───────────────────────────────────── */

.sp-cta-section {
  background: var(--sp-dark);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.sp-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(108,99,255,0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 50%, rgba(108,99,255,0.15) 0%, transparent 45%);
  pointer-events: none;
}

.sp-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.sp-cta-content {
  max-width: 560px;
}

.sp-cta-content h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 14px;
  letter-spacing: -0.5px;
}

.sp-cta-content p {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  margin: 0 0 28px;
}

.sp-cta-graphic { flex-shrink: 0; }

/* ─── 15. SINGLE PRODUCT PAGE ───────────────────────────── */

.sp-product-hero {
  background: var(--sp-dark);
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}

.sp-product-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 50%, rgba(108,99,255,0.2) 0%, transparent 52%),
    radial-gradient(ellipse at 90% 20%, rgba(108,99,255,0.12) 0%, transparent 44%);
  pointer-events: none;
}

.sp-product-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.sp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.sp-breadcrumb a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: var(--sp-transition);
}
.sp-breadcrumb a:hover { color: var(--sp-primary-light); }

.sp-breadcrumb span[aria-current] { color: rgba(255,255,255,0.85); }

.sp-product-hero-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.sp-product-hero-tags .sp-product-type-tag {
  background: rgba(108,99,255,0.2);
  color: var(--sp-primary-light);
  border: 1px solid rgba(108,99,255,0.3);
}

.sp-product-hero-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
  letter-spacing: -1px;
  line-height: 1.1;
}

.sp-product-hero-tagline {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  margin: 0 0 28px;
}

/* Specs */
.sp-product-specs {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 0 0 28px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--sp-dark-border);
  border-radius: var(--sp-radius-sm);
}

.sp-spec-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sp-spec-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
}

.sp-spec-value {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

/* Buy box */
.sp-buy-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sp-buy-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.sp-buy-note {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

/* Product screenshot */
.sp-product-hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-product-screenshot {
  border-radius: var(--sp-radius);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06);
  width: 100%;
}

.sp-product-placeholder-wrap {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--sp-dark-border);
  border-radius: var(--sp-radius);
  padding: 60px 40px;
}

.sp-product-placeholder {
  text-align: center;
}

.sp-placeholder-icon {
  font-size: 72px;
  margin-bottom: 16px;
  line-height: 1;
}

.sp-placeholder-text {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

/* Product content */
.sp-product-content-section {
  background: var(--sp-bg-white);
  padding: 72px 0;
}

.sp-product-content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--sp-text);
}

.sp-product-content h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 48px 0 18px;
  color: var(--sp-dark);
  letter-spacing: -0.3px;
}

.sp-product-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 36px 0 14px;
  color: var(--sp-dark);
}

.sp-product-content ul {
  padding-left: 0;
  list-style: none;
}

.sp-product-content ul li {
  padding: 6px 0 6px 28px;
  position: relative;
  color: var(--sp-text-muted);
}

.sp-product-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--sp-success);
  font-weight: 700;
}

.sp-product-content img {
  border-radius: var(--sp-radius-sm);
  box-shadow: var(--sp-shadow);
  margin: 28px 0;
}

.sp-product-content pre {
  background: #1e2130;
  color: #abb2bf;
  padding: 24px;
  border-radius: var(--sp-radius-sm);
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.7;
  border: 1px solid rgba(255,255,255,0.06);
}

.sp-product-content code {
  background: var(--sp-bg);
  color: var(--sp-primary);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
}

.sp-product-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* ─── 16. ARCHIVE HERO ──────────────────────────────────── */

.sp-archive-hero {
  background: var(--sp-dark);
  padding: 64px 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sp-archive-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(108,99,255,0.2) 0%, transparent 60%);
  pointer-events: none;
}

.sp-archive-hero .sp-section-inner { position: relative; z-index: 1; }

.sp-archive-hero .sp-section-label { margin-bottom: 12px; }

.sp-archive-hero h1 {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 14px;
  letter-spacing: -1px;
}

.sp-archive-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

.sp-archive-grid-section {
  background: var(--sp-bg);
  padding: 72px 0;
}

/* ─── 17. RELATED SECTION ───────────────────────────────── */

.sp-related-section {
  background: var(--sp-bg);
  padding: 72px 0;
  border-top: 1px solid var(--sp-border);
}

/* ─── 18. EMPTY STATE ───────────────────────────────────── */

.sp-empty-state {
  text-align: center;
  padding: 72px 40px;
}

.sp-empty-icon {
  font-size: 56px;
  margin-bottom: 20px;
  line-height: 1;
}

.sp-empty-state h2,
.sp-empty-state h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--sp-dark);
  margin: 0 0 10px;
}

.sp-empty-state p {
  font-size: 15px;
  color: var(--sp-text-muted);
  margin: 0;
}

/* ─── 19. FOOTER ────────────────────────────────────────── */

/* GP's dynamic inline CSS sets .site-info { background: white } — override with !important */
.site-footer,
.site-footer .site-info {
  background: var(--sp-dark-card) !important;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
  font-size: 13.5px;
}

/* GP uses .inside-site-info.grid-container (not .inside-site-footer) */
.inside-site-info {
  max-width: var(--sp-container) !important;
  margin: 0 auto !important;
  padding: 24px 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  background: transparent !important;
}

.site-footer a            { color: rgba(255,255,255,0.4); text-decoration: none; }
.site-footer a:hover      { color: var(--sp-primary-light); }
.site-footer .copyright   { font-size: 13px; margin: 0; color: rgba(255,255,255,0.4); }

/* ─── 20. BLOG / INNER PAGES ────────────────────────────── */

/* Page hero — used on Blog, Archive, etc. */
.sp-page-hero {
  background: var(--sp-dark);
  padding: 56px 0 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sp-page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(108,99,255,0.18) 0%, transparent 65%);
  pointer-events: none;
}
.sp-page-hero .sp-section-inner { position: relative; z-index: 1; }
.sp-page-hero .sp-section-label { margin-bottom: 12px; }
.sp-page-hero h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: -0.8px;
}
.sp-page-hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.58);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Blog list section */
.sp-blog-list-section,
.sp-blog-page {
  background: var(--sp-bg);
}
.sp-blog-list-section { padding: 72px 0; }

/* Pagination */
.sp-pagination {
  margin-top: 48px;
  text-align: center;
}
.sp-pagination .nav-links {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.sp-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--sp-radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--sp-text-muted);
  border: 1px solid var(--sp-border);
  text-decoration: none;
  transition: var(--sp-transition);
  background: var(--sp-bg-white);
}
.sp-pagination .page-numbers:hover,
.sp-pagination .page-numbers.current {
  background: var(--sp-primary);
  border-color: var(--sp-primary);
  color: #fff;
}
.sp-pagination .prev,
.sp-pagination .next {
  width: auto;
  padding: 0 14px;
  font-size: 13px;
}

/* Full-width override for blog/inner pages */
.sp-blog-index #page,
.sp-blog-index #page.site,
.sp-blog-index #page.grid-container,
.sp-blog-index #page.container,
.sp-single-post #page,
.sp-single-post #page.site,
.sp-single-post #page.grid-container,
.sp-single-post #page.container,
.sp-archive #page,
.sp-archive #page.site,
.sp-archive #page.grid-container,
.sp-archive #page.container,
.sp-inner-page #page,
.sp-inner-page #page.site,
.sp-inner-page #page.grid-container,
.sp-inner-page #page.container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
}

.sp-blog-index .site-content,
.sp-single-post .site-content,
.sp-archive .site-content,
.sp-inner-page .site-content,
.sp-blog-index #primary,
.sp-single-post #primary,
.sp-archive #primary,
.sp-inner-page #primary,
.sp-blog-index #main,
.sp-single-post #main,
.sp-archive #main,
.sp-inner-page #main {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

/* Force our custom page wrappers full-width */
.sp-blog-page,
.sp-post-page,
.sp-archive-page,
.sp-page-wrap {
  width: 100% !important;
  max-width: 100% !important;
}

.sp-blog-index .entry,
.sp-single-post .entry,
.sp-archive .entry {
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
}

/* ─── 21. SCROLLBAR ─────────────────────────────────────── */

::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(108,99,255,0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--sp-primary); }

/* ─── 22. SELECTION ─────────────────────────────────────── */

::selection {
  background: rgba(108,99,255,0.25);
  color: var(--sp-dark);
}

/* ─── 23. RESPONSIVE — Tablet (≤ 960px) ─────────────────── */

@media (max-width: 960px) {
  .sp-hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .sp-hero-visual {
    order: -1;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }

  .sp-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sp-feature:nth-child(2) { border-right: none; }
  .sp-feature:nth-child(3) { border-top: 1px solid var(--sp-border); }
  .sp-feature:nth-child(4) { border-top: 1px solid var(--sp-border); border-right: none; }

  .sp-products-grid,
  .sp-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sp-product-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sp-product-hero-image { order: -1; }

  .sp-cta-inner { flex-direction: column; text-align: center; }
  .sp-cta-graphic { display: none; }
  .sp-cta-content { max-width: 100%; }
  .sp-buy-actions { justify-content: flex-start; }
}

/* ─── 24. RESPONSIVE — Mobile (≤ 640px) ──────────────────── */

@media (max-width: 640px) {
  .sp-section-inner { padding: 0 18px; }

  .sp-hero { padding: 60px 0 64px; min-height: auto; }
  .sp-hero-title { letter-spacing: -0.5px; }
  .sp-hero-cta { flex-direction: column; }
  .sp-hero-cta .sp-btn { width: 100%; justify-content: center; }

  .sp-features { padding: 40px 0; }
  .sp-features-grid { grid-template-columns: 1fr; }
  .sp-feature { border-right: none; border-top: 1px solid var(--sp-border); }
  .sp-feature:first-child { border-top: none; }

  .sp-products-section,
  .sp-blog-section { padding: 60px 0; }

  .sp-products-grid,
  .sp-blog-grid { grid-template-columns: 1fr; }

  .sp-section-header { margin-bottom: 36px; }

  .sp-cta-section { padding: 56px 0; }
  .sp-cta-content h2 { font-size: 24px; }

  .sp-product-hero { padding: 48px 0 56px; }
  .sp-buy-box { gap: 12px; }
  .sp-buy-price { font-size: 32px; }
  .sp-buy-actions { flex-direction: column; }
  .sp-buy-actions .sp-btn { width: 100%; justify-content: center; }

  .sp-product-specs { gap: 14px; }

  .inside-header {
    min-height: 58px;
    padding: 0 18px;
  }

  .inside-footer {
    flex-direction: column;
    text-align: center;
    padding: 24px 18px;
  }

  .sp-code-editor { font-size: 12px; }
  .sp-code-body pre { font-size: 12px; }
}

/* ─── 24. NARROW INNER (blog post / product content) ────── */

.sp-section-inner--narrow {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ─── 25. SINGLE BLOG POST ──────────────────────────────── */

/* Hero */
.sp-post-hero {
  background: var(--sp-dark);
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--sp-dark-border);
}

.sp-post-hero .sp-breadcrumb {
  margin-bottom: 20px;
}

.sp-post-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sp-primary-light);
  background: var(--sp-primary-ghost);
  border: 1px solid rgba(108,99,255,0.25);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.sp-post-hero-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -.02em;
  margin: 0 0 20px;
}

.sp-post-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.45);
}

.sp-post-date,
.sp-post-read-time {
  color: rgba(255,255,255,0.5);
}

.sp-post-dot {
  font-size: 18px;
  line-height: 1;
}

/* Article */
.sp-post-article {
  padding: 64px 0 48px;
  background: var(--sp-bg-white);
}

.sp-post-featured-img {
  margin-bottom: 48px;
  border-radius: var(--sp-radius);
  overflow: hidden;
  box-shadow: var(--sp-shadow);
}

.sp-post-featured-img-el {
  width: 100%;
  height: auto;
  display: block;
}

/* Readable prose */
.sp-post-content {
  font-size: 17px;
  line-height: 1.8;
  color: #2d2d3a;
}

.sp-post-content p { margin: 0 0 1.4em; }

.sp-post-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--sp-dark);
  margin: 2em 0 .7em;
  letter-spacing: -.02em;
  line-height: 1.3;
}

.sp-post-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--sp-dark);
  margin: 1.8em 0 .6em;
}

.sp-post-content a {
  color: var(--sp-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sp-post-content a:hover { color: var(--sp-primary-dark); }

.sp-post-content code {
  font-family: 'Fira Code', 'Cascadia Code', 'Courier New', monospace;
  font-size: .88em;
  background: #f0eeff;
  color: var(--sp-primary-dark);
  border: 1px solid rgba(108,99,255,.15);
  padding: 2px 7px;
  border-radius: 5px;
}

.sp-post-content pre {
  background: var(--sp-dark);
  color: #e0e0f0;
  padding: 20px 24px;
  border-radius: var(--sp-radius-sm);
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
  margin: 1.6em 0;
}

.sp-post-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.sp-post-content ul,
.sp-post-content ol {
  padding-left: 1.5em;
  margin: 0 0 1.4em;
}

.sp-post-content li { margin-bottom: .5em; }

.sp-post-content blockquote {
  border-left: 3px solid var(--sp-primary);
  margin: 2em 0;
  padding: 12px 0 12px 24px;
  color: var(--sp-text-muted);
  font-style: italic;
  font-size: 1.05em;
}

.sp-post-content hr {
  border: none;
  border-top: 1px solid var(--sp-border);
  margin: 2.5em 0;
}

.sp-post-content strong { color: var(--sp-dark); }

/* Gumroad CTA button in content */
.sp-post-content .wp-block-buttons {
  margin: 2em 0 1em;
}

.sp-post-content .wp-block-button__link {
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 13px 28px !important;
  border-radius: 10px !important;
  transition: opacity .2s, transform .2s;
}

.sp-post-content .wp-block-button__link:hover {
  opacity: .88;
  transform: translateY(-1px);
}

/* Tags */
.sp-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--sp-border);
}

.sp-tag-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--sp-text-muted);
  background: var(--sp-bg);
  border: 1px solid var(--sp-border);
  padding: 5px 14px;
  border-radius: 20px;
  text-decoration: none;
  transition: var(--sp-transition);
}

.sp-tag-pill:hover {
  background: var(--sp-primary-ghost);
  color: var(--sp-primary);
  border-color: rgba(108,99,255,.3);
}

/* Back link */
.sp-post-back {
  margin-top: 32px;
}

.sp-read-more--back {
  color: var(--sp-text-muted);
}

.sp-read-more--back:hover { color: var(--sp-primary); }

/* Related posts */
.sp-related-posts {
  background: var(--sp-bg);
  padding: 72px 0;
  border-top: 1px solid var(--sp-border);
}

.sp-related-posts .sp-section-header {
  margin-bottom: 36px;
}

.sp-related-posts .sp-section-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--sp-dark);
  margin: 0;
}

/* Responsive single post */
@media (max-width: 640px) {
  .sp-post-hero { padding: 48px 0 40px; }
  .sp-post-article { padding: 40px 0 36px; }
  .sp-post-content { font-size: 16px; }
  .sp-post-content h2 { font-size: 20px; }
  .sp-related-posts { padding: 52px 0; }
}

/* ─── 26. INNER PAGES (About, Contact, etc.) ────────────── */

.sp-inner-hero {
  background: var(--sp-dark);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--sp-dark-border);
}

.sp-inner-hero-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin: 0;
}

.sp-inner-article {
  padding: 64px 0 80px;
  background: var(--sp-bg-white);
}

/* About page specific styles */
.sp-about-intro {
  font-size: 19px;
  line-height: 1.75;
  color: #2d2d3a;
  margin-bottom: 2em;
  font-weight: 400;
}

.sp-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 48px 0;
}

.sp-about-card {
  background: var(--sp-bg);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  padding: 28px 28px 24px;
}

.sp-about-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--sp-primary-ghost);
  border-radius: var(--sp-radius-sm);
  color: var(--sp-primary);
  margin-bottom: 14px;
}

.sp-about-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--sp-dark);
  margin: 0 0 8px;
}

.sp-about-card p {
  font-size: 14px;
  color: var(--sp-text-muted);
  line-height: 1.6;
  margin: 0;
}

.sp-about-cta {
  margin-top: 56px;
  padding: 40px;
  background: var(--sp-dark);
  border-radius: var(--sp-radius-lg);
  text-align: center;
}

.sp-about-cta h2 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
}

.sp-about-cta p {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  margin: 0 0 24px;
}

.sp-about-cta .sp-btn-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .sp-about-grid { grid-template-columns: 1fr; }
  .sp-about-cta { padding: 28px 20px; }
  .sp-inner-hero { padding: 40px 0 36px; }
  .sp-inner-article { padding: 40px 0 56px; }
}

/* ─── 27. CONTACT PAGE ──────────────────────────────────── */

.sp-contact-body {
  padding: 72px 0 88px;
  background: var(--sp-bg-white);
}

.sp-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}

/* Info cards */
.sp-contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sp-contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.sp-contact-card-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--sp-primary-ghost);
  border-radius: var(--sp-radius-sm);
  color: var(--sp-primary);
  margin-top: 2px;
}

.sp-contact-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--sp-dark);
  margin: 0 0 6px;
}

.sp-contact-card p {
  font-size: 14px;
  color: var(--sp-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Form */
.sp-contact-form-wrap {
  background: var(--sp-bg);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
  padding: 36px 36px 32px;
}

.sp-contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sp-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sp-field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sp-field-group label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sp-dark);
}

.sp-required { color: var(--sp-primary); }

.sp-contact-form input[type="text"],
.sp-contact-form input[type="email"],
.sp-contact-form select,
.sp-contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--sp-dark);
  background: var(--sp-bg-white);
  border: 1.5px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
  -webkit-appearance: none;
}

.sp-contact-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.sp-contact-form input:focus,
.sp-contact-form select:focus,
.sp-contact-form textarea:focus {
  border-color: var(--sp-primary);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.12);
}

.sp-contact-form input.sp-error,
.sp-contact-form select.sp-error,
.sp-contact-form textarea.sp-error {
  border-color: #ef4444;
}

.sp-contact-form textarea { resize: vertical; min-height: 140px; }

/* Submit button */
.sp-submit-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sp-submit-btn:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.sp-submit-spinner {
  animation: sp-spin 0.8s linear infinite;
}

@keyframes sp-spin { to { transform: rotate(360deg); } }

/* Notices */
.sp-form-notice {
  padding: 12px 16px;
  border-radius: var(--sp-radius-sm);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.sp-form-notice.sp-notice-success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #166534;
}

.sp-form-notice.sp-notice-error {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.25);
  color: #991b1b;
}

/* Responsive */
@media (max-width: 860px) {
  .sp-contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 560px) {
  .sp-field-row { grid-template-columns: 1fr; }
  .sp-contact-form-wrap { padding: 24px 20px 20px; }
  .sp-contact-body { padding: 48px 0 64px; }
}
