:root{
  --sp-ink:#24112f;
  --sp-ink-2:#3a2147;
  --sp-muted:#6e6278;
  --sp-purple:#6f2cf0;
  --sp-purple-2:#8d49f6;
  --sp-purple-deep:#311047;
  --sp-lavender:#efe6ff;
  --sp-lavender-2:#f7f2ff;
  --sp-cream:#fffaf6;
  --sp-white:#fff;
  --sp-line:#e7ddf0;
  --sp-line-strong:#d8c9e8;
  --sp-shadow:0 22px 60px rgba(51,19,73,.11);
  --sp-shadow-soft:0 12px 34px rgba(51,19,73,.075);
  --sp-radius-lg:28px;
  --sp-radius-md:20px;
  --sp-radius-sm:14px;
  --sp-shell:min(1180px,calc(100% - 48px));
  --sp-serif:Georgia,'Times New Roman',serif;
  --sp-sans:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;background:#fff}
body{margin:0;background:#fff;color:var(--sp-ink);font-family:var(--sp-sans);font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
[hidden]{display:none!important}
::selection{background:#e8d9ff;color:var(--sp-purple-deep)}
:focus-visible{outline:3px solid rgba(111,44,240,.22);outline-offset:3px}

.sp-shell{width:var(--sp-shell);margin-inline:auto}
.sp-serif{font-family:var(--sp-serif)}
.sp-accent{color:var(--sp-purple);font-style:italic}

/* ===== Unified public header ===== */
.sp-header{position:sticky;top:0;z-index:500;background:rgba(255,255,255,.92);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-bottom:1px solid rgba(47,17,67,.06)}
.sp-header__inner{width:var(--sp-shell);height:78px;margin-inline:auto;display:grid;grid-template-columns:106px minmax(0,1fr) auto;gap:28px;align-items:center}
.sp-header__brand{display:flex;align-items:center}
.sp-header__brand img{width:74px;height:auto;object-fit:contain}
.sp-header__nav{display:flex;align-items:center;justify-content:center;gap:clamp(18px,2vw,34px);min-width:0}
.sp-header__nav a{position:relative;padding:29px 0 25px;font-size:13px;font-weight:650;white-space:nowrap;color:#2d1940}
.sp-header__nav a::after{content:"";position:absolute;left:0;right:0;bottom:18px;height:2px;border-radius:2px;background:var(--sp-purple);transform:scaleX(0);transform-origin:center;transition:transform .2s ease}
.sp-header__nav a:hover::after,.sp-header__nav a[aria-current="page"]::after{transform:scaleX(1)}
.sp-header__actions{display:flex;align-items:center;gap:18px;white-space:nowrap}
.sp-header__account{font-size:13px;font-weight:650;color:#2c173c;display:inline-flex;gap:8px;align-items:center}
.sp-header__account svg{width:18px;height:18px}
.sp-header__cta{min-height:46px;padding:0 22px;border-radius:999px;display:inline-flex;align-items:center;gap:10px;background:linear-gradient(135deg,#32104b,#5f18ba);color:#fff;font-size:13px;font-weight:750;box-shadow:0 8px 24px rgba(64,20,101,.15)}
.sp-header__cta:hover{transform:translateY(-1px);box-shadow:0 12px 30px rgba(64,20,101,.21)}
.sp-header__toggle{display:none;width:44px;height:44px;border:1px solid var(--sp-line);border-radius:50%;background:#fff;place-items:center;color:var(--sp-ink)}
.sp-header__toggle span,.sp-header__toggle::before,.sp-header__toggle::after{content:"";display:block;width:18px;height:1.5px;background:currentColor;position:absolute;transition:.2s ease}
.sp-header__toggle span{transform:translateY(0)}
.sp-header__toggle::before{transform:translateY(-6px)}
.sp-header__toggle::after{transform:translateY(6px)}
.sp-header__drawer{display:none;position:fixed;inset:78px 0 auto;z-index:490;padding:18px 24px 26px;background:rgba(255,255,255,.98);border-bottom:1px solid var(--sp-line);box-shadow:0 28px 50px rgba(35,15,46,.11)}
.sp-header__drawer.is-open{display:grid;gap:4px}
.sp-header__drawer a{padding:13px 4px;border-bottom:1px solid #eee7f3;font-weight:700;color:#2e183e}
.sp-header__drawer .sp-header__cta{margin-top:12px;justify-content:center;border-bottom:0}

/* ===== Unified footer ===== */
.sp-footer{margin-top:72px;background:#261034;color:#fff}
.sp-footer__inner{width:var(--sp-shell);margin-inline:auto;padding:54px 0 30px}
.sp-footer__top{display:flex;align-items:center;justify-content:space-between;gap:30px;padding-bottom:32px;border-bottom:1px solid rgba(255,255,255,.13)}
.sp-footer__top img{width:148px}.sp-footer__top p{margin:0;color:rgba(255,255,255,.68);font-size:14px}
.sp-footer__grid{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:38px;padding:34px 0}
.sp-footer__col{display:grid;align-content:start;gap:9px}
.sp-footer__col h3{margin:0 0 7px;font-family:var(--sp-serif);font-size:18px;font-weight:500}
.sp-footer__col a{width:max-content;max-width:100%;font-size:13px;color:rgba(255,255,255,.72)}
.sp-footer__col a:hover{color:#fff}
.sp-footer__bottom{display:flex;justify-content:space-between;gap:24px;padding-top:22px;border-top:1px solid rgba(255,255,255,.13);font-size:12px;color:rgba(255,255,255,.55)}

/* ===== Shared buttons ===== */
.sp-btn{min-height:48px;padding:0 22px;border:1px solid transparent;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-weight:750;font-size:14px;transition:transform .18s ease,box-shadow .18s ease,background .18s ease}
.sp-btn:hover{transform:translateY(-1px)}
.sp-btn--purple{background:linear-gradient(135deg,#5d20d5,#7b32ef);color:#fff;box-shadow:0 12px 26px rgba(111,44,240,.18)}
.sp-btn--white{background:#fff;color:var(--sp-purple-deep);border-color:#e0d6e8}
.sp-btn--soft{background:#f3ebff;color:#5f20cd}

@media(max-width:1080px){
  .sp-header__inner{grid-template-columns:88px 1fr auto;gap:16px}
  .sp-header__nav{gap:14px}.sp-header__nav a{font-size:12px}
  .sp-header__actions{gap:10px}.sp-header__account{display:none}
}
@media(max-width:860px){
  :root{--sp-shell:min(100% - 30px,1180px)}
  .sp-header__inner{height:70px;grid-template-columns:1fr auto}
  .sp-header__brand img{width:66px}.sp-header__nav,.sp-header__actions{display:none}.sp-header__toggle{display:grid;position:relative}
  .sp-header__drawer{inset:70px 0 auto}
  .sp-footer{margin-top:54px}.sp-footer__top{align-items:flex-start;flex-direction:column}.sp-footer__grid{grid-template-columns:1fr 1fr}.sp-footer__bottom{flex-direction:column}
}
@media(max-width:560px){
  :root{--sp-shell:calc(100% - 24px)}
  .sp-footer__grid{grid-template-columns:1fr}
}
