/* ==========================================================================
   Sampoorna Matrimony: public home page
   "Royal Kanjeevaram": deep plum like a wedding silk's body, antique zari gold
   for borders and emphasis, ivory and parchment for reading. Headlines in
   Cormorant Garamond, text in Inter (loaded by base.html).
   Mobile first: every rule is written for a 360px phone, then widened.
   These tokens are the reference for the in-app palette.
   ========================================================================== */

:root {
    --sp-plum-950: #14070F;
    --sp-plum-900: #1E0C1A;
    --sp-plum-800: #2C1227;
    --sp-plum-700: #3E1A37;
    --sp-wine: #7A1F3D;
    --sp-gold: #CDA75E;
    --sp-gold-2: #E6CC8F;
    --sp-gold-ink: #85621F;
    --sp-gold-rule: rgba(205, 167, 94, .32);
    --sp-gold-faint: rgba(205, 167, 94, .14);
    --sp-ivory: #FBF6EC;
    --sp-parchment: #F4EBDA;
    --sp-ink: #22101E;
    --sp-ink-2: #5A4655;
    --sp-rule: #E4D7C2;
    --sp-cream: #F3E9D6;
    --sp-cream-2: #CDBBC6;
    --sp-jade: #2F7D5B;

    --sp-display: 'Cormorant Garamond', 'Tiro Kannada', Georgia, serif;
    --sp-kannada: 'Tiro Kannada', 'Noto Serif Kannada', serif;
    --sp-tamil: 'Tiro Tamil', 'Noto Serif Tamil', serif;
    --sp-text: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --sp-gutter: 16px;
    --sp-max: 1240px;
    --sp-section: clamp(72px, 10vw, 136px);
    --sp-radius: 20px;

    --sp-zari-band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='14'%3E%3Cpath d='M0 .5H16M0 13.5H16' stroke='%23CDA75E'/%3E%3Cpath d='M0 11.5L8 3.5L16 11.5Z' fill='%23CDA75E' fill-opacity='.9'/%3E%3C/svg%3E");
}
@media (min-width: 640px) { :root { --sp-gutter: 32px; } }
@media (min-width: 1024px) { :root { --sp-gutter: 48px; } }

/* ---------- Base ---------- */
.sp-page {
    background: var(--sp-plum-900);
    color: var(--sp-cream);
    font-family: var(--sp-text);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}
.sp-page a { color: inherit; }
.sp-page img { max-width: 100%; }
.sp-page :focus-visible { outline: 2px solid var(--sp-gold); outline-offset: 3px; border-radius: 4px; }
[lang="kn"] { font-family: var(--sp-kannada); }
[lang="ta"] { font-family: var(--sp-tamil); }

.sp-skip {
    position: absolute; left: var(--sp-gutter); top: -64px; z-index: 70;
    padding: 10px 16px; border-radius: 999px;
    background: var(--sp-gold); color: var(--sp-ink) !important;
}
.sp-skip:focus { top: 12px; }
.sp-vh {
    position: absolute !important; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.sp-wrap { max-width: var(--sp-max); margin: 0 auto; padding-left: var(--sp-gutter); padding-right: var(--sp-gutter); }
.sp-section { padding-top: var(--sp-section); padding-bottom: var(--sp-section); scroll-margin-top: 64px; }

.sp-ivory { background: var(--sp-ivory); color: var(--sp-ink); }
.sp-parchment { background: var(--sp-parchment); color: var(--sp-ink); }
.sp-royal {
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(122, 31, 61, .35), transparent 70%),
        var(--sp-plum-900);
    color: var(--sp-cream);
    position: relative;
}
.sp-royal::before, .sp-royal::after {
    content: ""; position: absolute; left: 0; right: 0; height: 14px;
    background: var(--sp-zari-band) repeat-x left center; opacity: .55;
}
.sp-royal::before { top: 0; }
.sp-royal::after { bottom: 0; transform: scaleY(-1); }

/* ---------- Type ---------- */
.sp-kicker {
    display: inline-flex; align-items: center; gap: 10px;
    margin: 0 0 16px;
    font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    color: var(--sp-gold-ink);
}
.sp-kicker::before { content: ""; width: 24px; height: 16px; background: url("../images/sampoorna-rings.svg") center / contain no-repeat; }
.sp-royal .sp-kicker, .sp-hero .sp-kicker { color: var(--sp-gold); }

.sp-h1 {
    font-family: var(--sp-display);
    font-weight: 600;
    font-size: clamp(40px, 10.5vw, 84px);
    line-height: 1.02;
    letter-spacing: -.01em;
    margin: 0;
    text-wrap: balance;
}
.sp-h2 {
    font-family: var(--sp-display);
    font-weight: 600;
    font-size: clamp(32px, 7.5vw, 58px);
    line-height: 1.06;
    letter-spacing: -.005em;
    margin: 0 0 18px;
    text-wrap: balance;
}
.sp-head { text-align: center; max-width: 780px; margin: 0 auto clamp(40px, 6vw, 72px); }
.sp-lede { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.65; color: var(--sp-ink-2); max-width: 60ch; margin: 0 auto; }
.sp-royal .sp-lede, .sp-hero .sp-lede, .sp-closing .sp-lede { color: var(--sp-cream-2); }
.sp-lede--left { margin: 0; }
.sp-note { margin: 28px auto 0; text-align: center; font-size: 15px; color: var(--sp-ink-2); max-width: 62ch; }
.sp-note--dark { color: var(--sp-cream-2); }
.sp-note a { color: var(--sp-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--sp-gold); text-underline-offset: 3px; }
.sp-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--sp-gold); }
.sp-link:hover { text-decoration-thickness: 2px; }

/* ---------- Buttons ---------- */
.sp-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 52px; padding: 0 28px;
    border-radius: 999px;
    font-family: var(--sp-text); font-size: 16px; font-weight: 600; line-height: 1;
    text-decoration: none; white-space: nowrap;
    border: 1px solid transparent;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.sp-btn:active { transform: scale(.98); }
.sp-btn--gold { background: linear-gradient(180deg, var(--sp-gold-2), var(--sp-gold)); color: var(--sp-plum-950) !important; box-shadow: 0 8px 24px -10px rgba(205, 167, 94, .7); }
.sp-btn--gold:hover { background: var(--sp-gold-2); }
.sp-btn--ghost { border-color: rgba(243, 233, 214, .45); color: var(--sp-cream) !important; }
.sp-btn--ghost:hover { background: rgba(243, 233, 214, .1); border-color: var(--sp-cream); }
.sp-btn--outline { border-color: var(--sp-ink); color: var(--sp-ink) !important; }
.sp-btn--outline:hover { background: var(--sp-ink); color: var(--sp-ivory) !important; }
.sp-btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.sp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .sp-actions .sp-btn { flex: 1 1 100%; } }

/* ---------- Header ---------- */
.sp-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(20, 7, 15, .78);
    -webkit-backdrop-filter: saturate(1.3) blur(14px);
    backdrop-filter: saturate(1.3) blur(14px);
    border-bottom: 1px solid var(--sp-gold-faint);
    color: var(--sp-cream);
    font-family: var(--sp-text);
}
.sp-header__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
@media (min-width: 1024px) { .sp-header__row { height: 80px; } }
.sp-header__logo img { height: 38px; width: auto; display: block; }
@media (min-width: 640px) { .sp-header__logo img { height: 46px; } }
@media (min-width: 1024px) { .sp-header__logo img { height: 52px; } }
.sp-nav { display: none; }
@media (min-width: 1024px) {
    .sp-nav { display: flex; gap: 32px; font-size: 15px; color: var(--sp-cream-2); }
    .sp-nav a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
    .sp-nav a:hover { color: var(--sp-cream); border-bottom-color: var(--sp-gold); }
}
.sp-header__actions { display: flex; align-items: center; gap: 8px; }
.sp-header__signin { display: none !important; }
@media (min-width: 640px) { .sp-header__signin { display: inline-flex !important; } }
.sp-menu-btn {
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--sp-gold-rule); border-radius: 999px;
    background: transparent; color: var(--sp-cream); cursor: pointer;
}
@media (min-width: 1024px) { .sp-menu-btn { display: none; } }
.sp-menu-btn svg { width: 18px; height: 18px; }
.sp-sheet { border-top: 1px solid var(--sp-gold-faint); padding: 4px 0 20px; }
.sp-sheet[hidden] { display: none; }
.sp-sheet a { display: block; padding: 14px 0; font-size: 18px; text-decoration: none; border-bottom: 1px solid var(--sp-gold-faint); }
@media (min-width: 1024px) { .sp-sheet { display: none !important; } }

/* ---------- Hero ---------- */
.sp-hero { position: relative; isolation: isolate; overflow: hidden; }
.sp-hero__media { position: absolute; inset: 0 0 auto 0; height: calc(100svh + 340px); z-index: -2; }
.sp-hero__photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; display: block; }
.sp-hero__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(20, 7, 15, .9) 0%, rgba(30, 12, 26, .72) 34%, rgba(30, 12, 26, .1) 56%, rgba(30, 12, 26, 0) 80%, var(--sp-plum-900) 100%);
}
.sp-hero__grid { display: grid; gap: 40px; padding-top: 28px; padding-bottom: clamp(64px, 9vw, 112px); }
.sp-hero__copy { min-height: calc(100svh + 200px); }
.sp-hero__copy { text-shadow: 0 2px 24px rgba(20, 7, 15, .6); }
.sp-eyebrow {
    display: flex; align-items: center; gap: 14px;
    margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sp-gold-2);
}
.sp-eyebrow > span { display: flex; flex-direction: column; gap: 2px; }
.sp-eyebrow [lang="kn"] { font-size: 17px; letter-spacing: 0; text-transform: none; color: var(--sp-cream); }
.sp-eyebrow__rings { width: 66px; height: auto; flex: none; filter: drop-shadow(0 4px 18px rgba(205, 167, 94, .45)); }
@media (min-width: 1024px) { .sp-eyebrow__rings { width: 84px; } }
.sp-hero__sub { margin: 20px 0 28px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--sp-cream); max-width: 46ch; }
.sp-hero__sub strong { color: var(--sp-gold-2); font-weight: 600; }
.sp-hero__sub a {
    color: var(--sp-gold-2);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--sp-gold);
    text-underline-offset: 4px;
    text-decoration-thickness: 1.5px;
    transition: color .15s ease, text-decoration-color .15s ease;
}
.sp-hero__sub a:hover {
    color: #fff;
    text-decoration-color: #fff;
}
.sp-hero__sub a:focus-visible {
    outline: 2px solid var(--sp-gold-2);
    outline-offset: 2px;
    border-radius: 2px;
}

@media (min-width: 1024px) {
    .sp-hero__media { height: 100%; }
    .sp-hero__copy { min-height: 0; max-width: 700px; }
    /* Left-anchored crop moves the couple into the gap between the copy and the phone. */
    .sp-hero__photo { object-position: 22% 62%; }
    .sp-hero__media::after {
        background:
            linear-gradient(90deg, rgba(20, 7, 15, .92) 0%, rgba(30, 12, 26, .7) 34%, rgba(30, 12, 26, .08) 56%, rgba(30, 12, 26, .08) 72%, rgba(30, 12, 26, .4) 100%),
            linear-gradient(to bottom, transparent 70%, var(--sp-plum-900));
    }
    .sp-hero__grid {
        grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
        align-items: center; gap: 64px;
        min-height: calc(100svh - 72px);
        padding-top: 72px; padding-bottom: 72px;
    }
}

/* ---------- Phone frame (shared by every mock-up) ---------- */
.sp-phone {
    margin: 0 auto; width: min(100%, 340px);
    padding: 10px; border-radius: 44px;
    background: linear-gradient(145deg, #3a2a33, #120910);
    box-shadow: 0 0 0 1px rgba(205, 167, 94, .35), 0 40px 80px -30px rgba(0, 0, 0, .75), 0 0 120px -40px rgba(205, 167, 94, .35);
}
.sp-phone__screen {
    position: relative; overflow: hidden;
    border-radius: 34px;
    background: #FCFAF6; color: #1c1420;
    padding: 18px 14px 14px;
    font-family: var(--sp-text);
}
.sp-phone--light { box-shadow: 0 0 0 1px rgba(133, 98, 31, .25), 0 40px 70px -34px rgba(34, 16, 30, .45); }

/* Discovery card */
.sp-app-bar { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 10px; }
.sp-app-bar__title { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.sp-app-bar__icon svg { width: 20px; height: 20px; display: block; }
.sp-app-chips { display: flex; gap: 6px; overflow: hidden; margin-bottom: 12px; }
.sp-app-chips span { flex: none; padding: 6px 11px; border-radius: 999px; border: 1px solid #e6dfe3; font-size: 12px; font-weight: 600; color: #4a3b46; }
.sp-app-chips .is-on { background: var(--sp-plum-900); color: var(--sp-cream); border-color: var(--sp-plum-900); }
.sp-card { border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 10px 30px -14px rgba(34, 16, 30, .35); }
.sp-card__photo { position: relative; aspect-ratio: 5 / 5.2; }
.sp-card__photo picture, .sp-wm__photo picture { display: block; height: 100%; }
.sp-card__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.sp-badge {
    position: absolute; top: 10px; display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
}
.sp-badge svg { width: 14px; height: 14px; }
.sp-badge--verified { left: 10px; background: #fff; color: #1d4ed8; }
.sp-badge--gunas { right: 10px; background: var(--sp-plum-900); color: var(--sp-gold-2); }
.sp-badge--gunas small { font-weight: 500; color: var(--sp-cream-2); margin-left: 2px; }
.sp-card__body { padding: 14px 16px 16px; }
.sp-card__name { margin: 0 0 4px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.sp-card__line { margin: 0; font-size: 13.5px; color: #5d4f5a; }
.sp-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.sp-card__tags span { padding: 4px 9px; border-radius: 8px; border: 1px solid #ece5e9; font-size: 12px; font-weight: 600; color: #3d2f3a; }
.sp-card__managed { margin: 0; padding-top: 10px; border-top: 1px dashed #e8dfe4; font-size: 12px; font-weight: 600; color: var(--sp-wine); }
.sp-app-actions { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; margin-top: 12px; }
.sp-app-actions span { display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 16px; font-size: 14px; font-weight: 700; }
.sp-app-actions__pass { border: 1px solid #e6dfe3; color: #4a3b46; }
.sp-app-actions__go { background: var(--sp-plum-900); color: var(--sp-gold-2); }

/* ---------- Four traditions ---------- */
.sp-trads { display: grid; gap: 14px; }
@media (min-width: 720px) { .sp-trads { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1120px) { .sp-trads { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sp-trad {
    position: relative; display: flex; flex-direction: column;
    padding: 26px 22px 22px; border-radius: var(--sp-radius);
    background: #fff; border: 1px solid var(--sp-rule);
    box-shadow: 0 1px 0 rgba(34, 16, 30, .03);
}
.sp-trad::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 3px; background: linear-gradient(90deg, var(--sp-wine), var(--sp-gold)); border-radius: 0 0 3px 3px; }
.sp-trad__native { margin: 0; font-size: 30px; line-height: 1.3; color: var(--sp-wine); }
.sp-trad h3 { margin: 2px 0 14px; font-family: var(--sp-display); font-size: 28px; font-weight: 600; line-height: 1.1; }
.sp-trad__subs { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sp-trad__subs li { padding: 4px 10px; border-radius: 999px; background: var(--sp-parchment); font-size: 13px; color: var(--sp-ink-2); }
.sp-trad__subs a { color: var(--sp-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--sp-gold); text-underline-offset: 3px; }
.sp-trad__more {
    margin-top: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
    font-size: 15px; font-weight: 600; color: var(--sp-wine) !important; text-decoration: none;
}
.sp-trad__more::after { content: "→"; transition: transform .15s ease; }
.sp-trad__more:hover::after { transform: translateX(4px); }

/* ---------- Split layout (copy + mock-up) ---------- */
.sp-split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) {
    .sp-split { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 80px; }
    .sp-split--flip .sp-split__copy { order: 2; }
}

/* Onboarding */
.sp-steps { list-style: none; counter-reset: step; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sp-steps li {
    counter-increment: step; display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--sp-rule);
    font-size: 14px; font-weight: 600;
}
.sp-steps li::before {
    content: counter(step); display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
    background: var(--sp-plum-900); color: var(--sp-gold-2); font-size: 12px;
}
.sp-steps small { font-weight: 500; color: var(--sp-ink-2); }
.sp-hint { margin: 22px 0 0; font-size: 14px; color: var(--sp-gold-ink); font-weight: 600; }
@media (max-width: 959px) { .sp-hint { display: none; } }

.sp-wiz__top { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 4px; }
.sp-wiz__label { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.sp-wiz__count { font-size: 12px; font-weight: 600; color: #6d5f6a; }
.sp-wiz__bar { height: 6px; margin: 10px 4px 14px; border-radius: 6px; background: #efe8ec; overflow: hidden; }
.sp-wiz__bar span { display: block; width: 40%; height: 100%; background: linear-gradient(90deg, var(--sp-wine), var(--sp-gold)); }
.sp-wiz fieldset { border: 0; margin: 0 0 14px; padding: 0 4px; }
.sp-wiz legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: #3d2f3a; }
.sp-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-pills label { position: relative; cursor: pointer; }
.sp-pills input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sp-pills span {
    display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px;
    border-radius: 999px; border: 1.5px solid #e3dbe0; background: #fff;
    font-size: 13.5px; font-weight: 600; color: #3d2f3a;
    transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
.sp-pills input:checked + span { background: var(--sp-plum-900); border-color: var(--sp-plum-900); color: var(--sp-gold-2); }
.sp-pills input:focus-visible + span { outline: 2px solid var(--sp-gold); outline-offset: 2px; }
.sp-wiz__tally { display: flex; justify-content: center; gap: 18px; margin: 4px 0 10px; font-size: 12px; color: #6d5f6a; }
.sp-wiz__tally b { color: var(--sp-wine); font-size: 14px; }
.sp-wiz__next { display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 16px; background: var(--sp-plum-900); color: var(--sp-gold-2); font-size: 15px; font-weight: 700; }

/* ---------- Horoscope ---------- */
.sp-astro { display: grid; gap: 20px; }
@media (min-width: 960px) { .sp-astro { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px; align-items: stretch; } }
.sp-compat, .sp-chart {
    margin: 0; padding: 22px 18px; border-radius: var(--sp-radius);
    background: linear-gradient(180deg, rgba(62, 26, 55, .7), rgba(44, 18, 39, .7));
    border: 1px solid var(--sp-gold-rule);
}
@media (min-width: 640px) { .sp-compat, .sp-chart { padding: 30px; } }
.sp-compat__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
.sp-compat__head h3 { margin: 0; font-family: var(--sp-display); font-size: 26px; font-weight: 600; line-height: 1.1; color: var(--sp-cream); }
.sp-compat__head p { margin: 4px 0 0; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sp-gold); }
.sp-verdict { flex: none; padding: 6px 12px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: rgba(47, 125, 91, .22); color: #9be0bd; border: 1px solid rgba(155, 224, 189, .35); }
.sp-compat__summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; }
.sp-compat__ring {
    --p: 75;
    width: 108px; height: 108px; border-radius: 50%; display: grid; place-items: center;
    background: conic-gradient(#5cc49a calc(var(--p) * 1%), rgba(205, 167, 94, .16) 0);
}
.sp-compat__ring > span { width: 88px; height: 88px; border-radius: 50%; background: var(--sp-plum-800); display: grid; place-content: center; text-align: center; line-height: 1; }
.sp-compat__ring b { font-family: var(--sp-display); font-size: 32px; font-weight: 700; color: var(--sp-cream); }
.sp-compat__ring small { display: block; margin-top: 4px; font-size: 10.5px; color: var(--sp-cream-2); }
.sp-compat__meter p { margin: 0; }
.sp-compat__meter > p:first-child { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sp-cream-2); }
.sp-compat__meter > p:first-child b { font-size: 20px; letter-spacing: 0; color: var(--sp-cream); }
.sp-scale { position: relative; display: grid; grid-template-columns: 4fr 1fr 2.5fr 2.5fr; gap: 3px; margin: 10px 0 6px; }
.sp-scale i { height: 6px; border-radius: 6px; }
.sp-scale i:nth-child(1) { background: #b5475f; } .sp-scale i:nth-child(2) { background: #d39a3a; }
.sp-scale i:nth-child(3) { background: var(--sp-gold); } .sp-scale i:nth-child(4) { background: #5cc49a; }
.sp-scale em { position: absolute; top: -4px; width: 4px; height: 14px; margin-left: -2px; border-radius: 3px; background: #fff; box-shadow: 0 0 0 2px var(--sp-plum-900); }
.sp-scale__labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--sp-cream-2); }
.sp-compat__pair { margin-top: 12px !important; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--sp-cream-2); }
.sp-compat__pair > span { display: inline-flex; align-items: center; gap: 6px; }
.sp-compat__pair img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 1px solid var(--sp-gold-rule); }
.sp-compat__sub { margin: 26px 0 14px; padding-top: 18px; border-top: 1px solid var(--sp-gold-faint); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sp-gold); }
.sp-kootas { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .sp-kootas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; } }
.sp-kootas li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; font-size: 14px; }
.sp-kootas__name { color: var(--sp-cream); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-kootas__name [lang="sa"] { color: var(--sp-cream-2); font-weight: 400; font-size: 13px; margin-left: 4px; }
.sp-kootas__score { font-weight: 700; color: var(--sp-cream-2); font-variant-numeric: tabular-nums; }
.sp-kootas__bar { grid-column: 1 / -1; height: 7px; border-radius: 7px; background: rgba(205, 167, 94, .14); overflow: hidden; }
.sp-kootas__bar i { display: block; height: 100%; border-radius: 7px; }
.sp-kootas__bar .is-success { background: #5cc49a; }
.sp-kootas__bar .is-info { background: var(--sp-gold); }
.sp-kootas__bar .is-warning { background: #d39a3a; }
.sp-kootas__bar .is-error { background: #c4566e; }
.sp-compat__flags { margin: 22px 0 0; padding: 14px 16px; border-radius: 14px; background: rgba(47, 125, 91, .14); font-size: 14px; color: var(--sp-cream-2); }
.sp-compat__flags b { display: block; margin-bottom: 2px; color: #9be0bd; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }

.sp-chart { display: flex; flex-direction: column; gap: 16px; }
.sp-chart__grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr));
    aspect-ratio: 1; border: 1.5px solid var(--sp-gold); background: rgba(20, 7, 15, .35);
}
.sp-chart__cell { border: .75px solid var(--sp-gold-rule); padding: 5px; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.sp-chart__title { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.sp-chart__title b { font-family: var(--sp-display); font-size: 26px; font-weight: 600; color: var(--sp-cream); }
.sp-chart__title span { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sp-gold); }
.sp-chart__num { font-size: 11px; font-weight: 600; color: var(--sp-gold); }
.sp-chart__om { font-size: 22px; line-height: 1; color: var(--sp-gold); }
.sp-chart__planets { display: flex; flex-wrap: wrap; gap: 3px; }
.sp-chart__planets span { font-size: 12.5px; font-weight: 700; color: var(--sp-cream); padding: 1px 5px; border-radius: 5px; background: rgba(243, 233, 214, .1); }
.sp-chart__planets .is-lagna { background: var(--sp-wine); color: #fff; }
.sp-chart__planets .is-moon { background: var(--sp-gold); color: var(--sp-plum-950); }
.sp-chart__centre {
    grid-row: 2 / 4; grid-column: 2 / 4;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center;
    font-size: 12px; color: var(--sp-cream-2);
}
.sp-chart__centre b { font-family: var(--sp-display); font-size: 22px; font-weight: 600; color: var(--sp-cream); }
.sp-chart figcaption { font-size: 14px; color: var(--sp-cream-2); }

/* ---------- Privacy bento ---------- */
.sp-bento { display: grid; gap: 14px; }
@media (min-width: 720px) { .sp-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1080px) { .sp-bento { grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); } }
.sp-tile { padding: 24px 22px; border-radius: var(--sp-radius); background: #fff; border: 1px solid var(--sp-rule); display: flex; flex-direction: column; gap: 10px; }
.sp-tile h3 { margin: 6px 0 0; font-family: var(--sp-display); font-size: 26px; font-weight: 600; line-height: 1.15; }
.sp-tile p { margin: 0; font-size: 15.5px; color: var(--sp-ink-2); }
.sp-tile--wide { grid-column: 1 / -1; }
@media (min-width: 1080px) { .sp-tile--wide { grid-column: auto; } }
.sp-tile--dark { background: linear-gradient(160deg, var(--sp-plum-800), var(--sp-plum-950)); border-color: var(--sp-plum-700); color: var(--sp-cream); }
.sp-tile--dark p { color: var(--sp-cream-2); }
.sp-tile--dark em { color: var(--sp-gold-2); font-style: normal; font-weight: 600; }
@media (min-width: 560px) { .sp-tile--dark { flex-direction: row; align-items: center; gap: 24px; } }
.sp-tile__copy { flex: 1; }

.sp-wm { flex: none; width: 100%; max-width: 240px; margin: 0 auto; }
.sp-wm__photo { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 5 / 6; border: 1px solid var(--sp-gold-rule); }
.sp-wm__stamp {
    position: absolute; inset: -40%; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 22px 18px;
    transform: rotate(-30deg); pointer-events: none;
    font-size: 12px; font-weight: 600; white-space: nowrap; color: #fff; opacity: .2; transition: opacity .3s ease;
    text-shadow: 0 0 2px rgba(0, 0, 0, .6);
}
.sp-wm.is-revealed .sp-wm__stamp { opacity: .7; }
.sp-wm__toggle {
    margin-top: 10px; width: 100%; min-height: 44px; border-radius: 999px; cursor: pointer;
    background: transparent; border: 1px solid var(--sp-gold-rule); color: var(--sp-gold-2);
    font: 600 13px/1 var(--sp-text);
}
.sp-wm__toggle:hover { background: rgba(205, 167, 94, .1); }

.sp-lockcard { display: grid; gap: 8px; padding: 16px; border-radius: 14px; background: var(--sp-parchment); }
.sp-lockcard__label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sp-ink-2); }
.sp-lockcard__num { font-size: 20px; font-weight: 700; letter-spacing: .04em; color: var(--sp-ink); }
.sp-lockcard__rule { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--sp-ink-2); }
.sp-lockcard__rule i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--sp-jade); position: relative; flex: none; }
.sp-lockcard__rule i::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--sp-jade); }

.sp-review { display: grid; gap: 0; padding: 14px 16px; border-radius: 14px; background: var(--sp-parchment); }
.sp-review__row { position: relative; padding: 6px 0 6px 26px; font-size: 13.5px; font-weight: 600; color: var(--sp-ink); }
.sp-review__row::before { content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 14px; border-radius: 50%; background: var(--sp-jade); }
.sp-review__row:not(:last-child)::after { content: ""; position: absolute; left: 6px; top: 24px; bottom: -8px; width: 2px; background: rgba(47, 125, 91, .35); }
.sp-review__row.is-live::before { background: var(--sp-gold); box-shadow: 0 0 0 4px rgba(205, 167, 94, .25); }

/* ---------- Biodata: a scaled replica of profiles/export_pdf.html ----------
   Sized in em off the container width, so the A4 layout shrinks as one piece. */
.sp-bio { position: relative; margin: 0 auto; width: min(100%, 520px); padding-bottom: 64px; container-type: inline-size; }
.sp-bio__sheet {
    font-size: calc(100cqw / 52);
    background: #fffdf9; color: #111827; border-radius: .6em; overflow: hidden;
    box-shadow: 0 30px 60px -30px rgba(34, 16, 30, .5), 0 0 0 1px rgba(184, 137, 58, .3);
    transform: rotate(-1deg);
}
.sp-bio__mast { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.4em; padding: 1.4em 1.8em; background: linear-gradient(110deg, #5f0f21, #82152e 55%, #9b1d3a); color: #fff; }
.sp-bio__brand { display: flex; flex-direction: column; align-items: center; gap: .3em; padding-right: 1.4em; border-right: 1px solid rgba(255, 255, 255, .25); }
.sp-bio__brand img { width: 9em; height: auto; }
.sp-bio__brand span { font-size: .62em; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.sp-bio__name b { display: block; font-size: 2.3em; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.sp-bio__name span { font-size: .75em; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.sp-bio__qr { display: flex; flex-direction: column; align-items: center; gap: .35em; }
.sp-bio__qr i {
    width: 4.4em; height: 4.4em; border-radius: .4em; background-color: #fff; border: .35em solid #fff;
    background-image:
        linear-gradient(90deg, #111 50%, transparent 0), linear-gradient(#111 50%, transparent 0);
    background-size: .62em .62em, .62em .62em; background-blend-mode: difference;
}
.sp-bio__qr span { font-size: .55em; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.sp-bio__body { display: grid; grid-template-columns: 15em minmax(0, 1fr); gap: 1.4em; padding: 1.6em 1.8em 1.2em; border-top: .2em solid #b8893a; }
.sp-bio__left { display: flex; flex-direction: column; gap: 1em; padding-right: 1.4em; border-right: 1px solid rgba(184, 137, 58, .3); }
.sp-bio__photo { aspect-ratio: 5 / 6; border-radius: .7em; overflow: hidden; border: .2em solid #d4a843; }
.sp-bio__photo picture { display: block; height: 100%; }
.sp-bio__box { border: 1px solid rgba(184, 137, 58, .25); border-radius: .6em; background: #fff; overflow: hidden; }
.sp-bio__boxhead { margin: 0; padding: .6em .9em; background: #f9f3e8; font-size: .66em; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #b8893a; }
.sp-bio__right { display: flex; flex-direction: column; gap: 1em; min-width: 0; }
.sp-bio__card { border: 1px solid rgba(184, 137, 58, .25); border-radius: .8em; background: #fff; padding: 0 1.1em 1em; }
.sp-bio__cardhead { margin: 0 -1.1em .9em; padding: .8em 1.1em; border-bottom: 1px solid rgba(184, 137, 58, .2); font-size: .78em; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #82152e; }
.sp-bio__grid2 { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7em 1em; }
.sp-bio__box .sp-bio__grid2 { padding: .7em .9em; }
.sp-bio__grid2 .is-wide { grid-column: 1 / -1; }
.sp-bio__grid2 dt { font-size: .6em; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #b8893a; }
.sp-bio__grid2 dd { margin: .15em 0 0; font-size: .86em; font-weight: 800; text-transform: uppercase; color: #111827; }
.sp-bio__grid2 em { display: inline-block; margin-top: .3em; padding: .15em .5em; border-radius: .3em; background: #f9f0da; border: 1px solid #f5d78e; font-size: .62em; font-style: normal; font-weight: 700; text-transform: uppercase; color: #6b4e14; }
.sp-bio__astro { display: grid; grid-template-columns: minmax(0, 1fr) 13em; gap: 1em; align-items: start; }
.sp-bio__chart { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr); aspect-ratio: 1; border: .15em solid #d4a843; border-radius: .3em; gap: .15em; background: #f7e7bf; }
.sp-bio__chart i { background: #fff; padding: .2em; display: flex; flex-wrap: wrap; align-content: flex-start; gap: .15em; }
.sp-bio__chart b { font-size: .55em; font-weight: 700; padding: .1em .3em; border-radius: .25em; background: #f3f4f6; }
.sp-bio__chart span { grid-row: 2 / 4; grid-column: 2 / 4; display: grid; place-items: center; background: #fffaf0; font-size: 1.6em; color: #82152e; }
.sp-bio__foot { display: flex; justify-content: space-between; align-items: center; padding: 1em 1.8em; border-top: .2em solid #82152e; font-size: .72em; font-weight: 700; color: #374151; }
.sp-bio__live { padding: .5em 1em; border-radius: .4em; background: #82152e; color: #fff; letter-spacing: .1em; text-transform: uppercase; font-size: .9em; }
.sp-paper__btn {
    position: absolute; right: 8px; bottom: 0; display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 20px; border-radius: 999px;
    background: var(--sp-plum-900); color: var(--sp-gold-2); font-size: 14px; font-weight: 700;
    box-shadow: 0 14px 30px -12px rgba(34, 16, 30, .6);
}
.sp-paper__btn svg { width: 18px; height: 18px; }

/* ---------- Profile facets ---------- */
.sp-facets { display: grid; gap: 14px; }
@media (min-width: 720px) { .sp-facets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1080px) { .sp-facets { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sp-facet { padding: 22px; border-radius: var(--sp-radius); background: #fff; border: 1px solid var(--sp-rule); }
.sp-facet__demo { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px; margin-bottom: 16px; border-radius: 14px; background: var(--sp-parchment); }
.sp-facet h3 { margin: 0 0 6px; font-family: var(--sp-display); font-size: 25px; font-weight: 600; line-height: 1.15; }
.sp-facet p { margin: 0; font-size: 15.5px; color: var(--sp-ink-2); }
.sp-chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0 11px; border-radius: 999px; background: #fff; border: 1px solid var(--sp-rule); font-size: 12.5px; font-weight: 600; color: var(--sp-ink); }
.sp-chip--plum { background: var(--sp-plum-900); border-color: var(--sp-plum-900); color: var(--sp-gold-2); }

/* ---------- Craft ---------- */
.sp-craft__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--sp-gold-faint); border: 1px solid var(--sp-gold-faint); border-radius: var(--sp-radius); overflow: hidden; }
@media (min-width: 720px) { .sp-craft__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .sp-craft__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sp-craft__list li { display: flex; flex-direction: column; gap: 6px; padding: 24px 22px; background: var(--sp-plum-900); }
.sp-craft__list b { font-family: var(--sp-display); font-size: 24px; font-weight: 600; color: var(--sp-gold-2); }
.sp-craft__list span { font-size: 15px; color: var(--sp-cream-2); }

/* ---------- FAQ ---------- */
.sp-faqwrap { display: grid; gap: 32px; }
@media (min-width: 960px) { .sp-faqwrap { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; } .sp-faqwrap__head { position: sticky; top: 104px; align-self: start; } }
.sp-faq { border-top: 1px solid var(--sp-rule); }
.sp-faq details { border-bottom: 1px solid var(--sp-rule); }
.sp-faq summary {
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
    min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none;
    font-size: 17px; font-weight: 600; color: var(--sp-ink);
}
.sp-faq summary::-webkit-details-marker { display: none; }
.sp-faq summary::after { content: "+"; font-size: 26px; font-weight: 400; line-height: 1; color: var(--sp-gold-ink); flex: none; transition: transform .2s ease; }
.sp-faq details[open] summary::after { transform: rotate(45deg); }
.sp-faq details > div { padding: 0 0 22px; max-width: 64ch; color: var(--sp-ink-2); font-size: 16px; }
.sp-faq details > div p { margin: 0; }
.sp-advisory { margin-top: 32px; padding: 20px; border-radius: var(--sp-radius); background: var(--sp-parchment); border: 1px solid var(--sp-rule); }
.sp-advisory p { margin: 0 0 14px; font-size: 14.5px; color: var(--sp-ink-2); }

/* ---------- Closing ---------- */
.sp-closing { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: clamp(120px, 18vw, 220px) 0; }
.sp-closing__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.sp-closing::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, var(--sp-plum-900), rgba(30, 12, 26, .62) 35%, rgba(30, 12, 26, .62) 65%, var(--sp-plum-950)); }
.sp-closing__logo { display: block; width: min(78vw, 420px); height: auto; margin: 0 auto 36px; filter: drop-shadow(0 8px 32px rgba(205, 167, 94, .35)); }
.sp-closing__line { margin: 0 auto 16px; max-width: 18ch; font-family: var(--sp-display); font-weight: 600; font-size: clamp(36px, 7vw, 64px); line-height: 1.06; text-wrap: balance; }
.sp-closing .sp-actions { justify-content: center; margin-top: 32px; }

/* ---------- Footer (home page only) ---------- */
.sp-footer { font-family: var(--sp-text); line-height: 1.6; background: var(--sp-plum-950); color: var(--sp-cream-2); padding: 0 0 32px; font-size: 14.5px; }
.sp-footer__capital { height: 14px; background: var(--sp-zari-band) repeat-x left center; opacity: .6; margin-bottom: clamp(48px, 7vw, 80px); }
.sp-footer__top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 960px) { .sp-footer__top { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; } }
.sp-footer__brand img { height: 60px; width: auto; margin-bottom: 20px; }
.sp-footer__brand p { margin: 0 0 12px; max-width: 36ch; }
.sp-footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
@media (min-width: 720px) { .sp-footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sp-footer h2 { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sp-gold); margin: 0 0 14px; }
.sp-footer ul { list-style: none; margin: 0; padding: 0; }
.sp-footer li { margin: 0 0 9px; overflow-wrap: anywhere; }
.sp-footer a { text-decoration: none; color: var(--sp-cream-2); }
.sp-footer a:hover { color: var(--sp-cream); text-decoration: underline; text-underline-offset: 3px; }
.sp-footer__base {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
    margin-top: 56px; padding-top: 24px;
    border-top: 1px solid var(--sp-gold-faint); font-size: 13.5px;
}
.sp-footer__base p { margin: 0; }
.sp-footer__social { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Phone action dock ---------- */
.sp-dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: flex; gap: 8px;
    padding: 12px var(--sp-gutter) calc(12px + env(safe-area-inset-bottom));
    background: rgba(20, 7, 15, .94);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--sp-gold-rule);
    transform: translateY(110%);
    transition: transform .25s ease;
}
.sp-dock.is-visible { transform: none; }
.sp-dock .sp-btn { flex: 1; min-height: 46px; }
@media (min-width: 640px) { .sp-dock { display: none; } }
@media (max-width: 639px) { body:has(.sp-dock) { padding-bottom: 76px; } }

@media (prefers-reduced-motion: reduce) {
    .sp-page *, .sp-dock { transition: none !important; }
}
