/* ==========================================================================
   Zodiac Compatibility Online - Main Stylesheet
   Cosmic / celestial theme. Mobile-first, fully responsive.
   ========================================================================== */

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    /* Brand / cosmic palette */
    --indigo-900: #160f30;
    --indigo-800: #1e1440;
    --indigo-700: #2b1055;
    --violet-600: #5b2a9d;
    --violet-500: #7b4bd6;
    --blue-500: #7597de;
    --gold: #ffce54;
    --gold-soft: #ffd76f;
    --pink: #ff7fa8;
    --pink-soft: #ffa6c1;

    --primary: #6c4bd6;
    --primary-dark: #5a37c4;
    --accent: #ffce54;
    --cosmic-gradient: linear-gradient(135deg, #2b1055 0%, #5b2a9d 55%, #7597de 100%);
    --cosmic-gradient-soft: linear-gradient(135deg, #3a1a6b 0%, #6c4bd6 100%);
    --love-gradient: linear-gradient(135deg, #ff7fa8 0%, #ffce54 100%);

    /* Surfaces (light content) */
    --white: #ffffff;
    --bg-page: #f6f4fc;
    --bg-card: #ffffff;
    --bg-subtle: #f1eef9;
    --bg-tint: #efe9fb;

    /* Text */
    --text: #241b3b;
    --text-soft: #5a5470;
    --text-muted: #8a83a3;
    --text-on-dark: #f4f1ff;
    --text-on-dark-soft: #c7bfe6;

    --border: #e7e2f4;
    --border-strong: #d6cef0;

    /* Element colors */
    --fire: #ff6b4a;
    --earth: #4caf7d;
    --air: #f2c14e;
    --water: #5aa9e6;

    /* Typography */
    --font-heading: 'Cinzel', 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Sizes */
    --h1-size: clamp(2.1rem, 5.5vw, 3.6rem);
    --h2-size: clamp(1.6rem, 4vw, 2.6rem);
    --h3-size: clamp(1.2rem, 3vw, 1.6rem);
    --body-size: clamp(1rem, 2.2vw, 1.08rem);

    /* Spacing */
    --sp-xs: 0.35rem;
    --sp-sm: 0.6rem;
    --sp-md: 1rem;
    --sp-lg: 1.6rem;
    --sp-xl: 2.4rem;
    --sp-2xl: 3.6rem;

    /* Radius */
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 22px;
    --r-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(43, 16, 85, 0.08);
    --shadow-md: 0 8px 24px rgba(43, 16, 85, 0.12);
    --shadow-lg: 0 16px 48px rgba(43, 16, 85, 0.18);
    --shadow-gold: 0 8px 28px rgba(255, 206, 84, 0.35);

    --container: 1200px;
    --header-h: 70px;
    --transition: 0.25s ease;
}

[data-theme="dark"] {
    --bg-page: #130c28;
    --bg-card: #1e1540;
    --bg-subtle: #241a4a;
    --bg-tint: #2a1f52;
    --text: #f4f1ff;
    --text-soft: #c7bfe6;
    --text-muted: #9a91c0;
    --border: #33285e;
    --border-strong: #443773;
    --white: #1e1540;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.35);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.45);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.55);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-size: var(--body-size);
    line-height: 1.7;
    color: var(--text);
    background: var(--bg-page);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; color: var(--text); font-weight: 700; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-lg); }
.section { padding: var(--sp-2xl) 0; }
.text-center { text-align: center; }
.eyebrow {
    display: inline-block; font-family: var(--font-body); font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem;
    color: var(--primary); margin-bottom: var(--sp-sm);
}
[data-theme="dark"] .eyebrow { color: var(--gold-soft); }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 2000;
    background: var(--gold); color: var(--indigo-900); padding: 10px 16px;
    border-radius: 0 0 var(--r-sm) 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    font-family: var(--font-body); font-weight: 700; font-size: 1rem;
    padding: 0.85rem 1.8rem; border-radius: var(--r-full);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    text-align: center; line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cosmic-gradient); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-gold { background: var(--love-gradient); color: var(--indigo-900); box-shadow: var(--shadow-gold); }
.btn-gold:hover { color: var(--indigo-900); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--border-strong); }
.btn-outline:hover { background: var(--bg-tint); color: var(--primary-dark); }
.btn-ghost-light { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.22); color: #fff; }
.btn-lg { padding: 1rem 2.2rem; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
    position: sticky; top: 0; z-index: 900;
    background: rgba(22, 15, 48, 0.92);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-nav {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--sp-md); max-width: var(--container); margin: 0 auto;
    padding: 0 var(--sp-lg); height: var(--header-h);
}
.logo { display: inline-flex; align-items: center; gap: 0.6rem; color: #fff; font-family: var(--font-heading); font-weight: 700; }
.logo:hover { color: #fff; }
.logo-mark {
    width: 40px; height: 40px; border-radius: 11px; flex: 0 0 auto;
    display: grid; place-items: center; font-size: 1.3rem;
    background: var(--cosmic-gradient); box-shadow: 0 0 18px rgba(123,75,214,0.6);
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong { font-size: 1.15rem; letter-spacing: 0.02em; }
.logo-text span { font-family: var(--font-body); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-soft); }

.nav-links { display: flex; align-items: center; gap: 0.4rem; }
.nav-link, .nav-dropdown-btn {
    color: var(--text-on-dark); font-weight: 600; font-size: 0.95rem;
    padding: 0.5rem 0.85rem; border-radius: var(--r-sm); display: inline-flex; align-items: center; gap: 0.3rem;
}
.nav-link:hover, .nav-dropdown-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }
.nav-link.active { color: var(--gold-soft); }
.nav-dropdown { position: relative; }
.dropdown-arrow { font-size: 0.6rem; transition: transform var(--transition); }
.nav-dropdown-content {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px;
    background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
    box-shadow: var(--shadow-lg); padding: 0.5rem; opacity: 0; visibility: hidden;
    transform: translateY(-8px); transition: all var(--transition); z-index: 1000;
}
[data-theme="dark"] .nav-dropdown-content { background: var(--bg-card); }
.nav-dropdown-content.active { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-content a {
    display: flex; align-items: center; gap: 0.55rem; padding: 0.6rem 0.75rem;
    border-radius: var(--r-sm); color: var(--text); font-weight: 500; font-size: 0.92rem;
}
.nav-dropdown-content a:hover { background: var(--bg-tint); color: var(--primary-dark); }
.nav-dropdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.1rem; min-width: 340px; }

.dark-mode-toggle {
    width: 40px; height: 40px; border-radius: var(--r-full); display: grid; place-items: center;
    background: rgba(255,255,255,0.1); font-size: 1.05rem;
}
.dark-mode-toggle:hover { background: rgba(255,255,255,0.2); }
.toggle-icon.dark { display: none; }
[data-theme="dark"] .toggle-icon.light { display: none; }
[data-theme="dark"] .toggle-icon.dark { display: inline; }

.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; }
.mobile-menu-btn span { width: 24px; height: 2.5px; background: #fff; border-radius: 3px; transition: var(--transition); }

/* Mobile menu drawer */
.mobile-menu {
    position: fixed; inset: 0; z-index: 1500; visibility: hidden; opacity: 0;
    background: rgba(10,6,25,0.6); transition: var(--transition);
}
.mobile-menu.active { visibility: visible; opacity: 1; }
.mobile-menu-content {
    position: absolute; top: 0; right: 0; height: 100%; width: min(86vw, 360px);
    background: var(--indigo-800); padding: var(--sp-lg); overflow-y: auto;
    transform: translateX(100%); transition: transform var(--transition);
    box-shadow: -10px 0 40px rgba(0,0,0,0.5);
}
.mobile-menu.active .mobile-menu-content { transform: translateX(0); }
.mobile-menu-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-md); }
.mobile-menu-title { color: #fff; font-family: var(--font-heading); font-size: 1.2rem; }
.mobile-menu-close { color: #fff; font-size: 2rem; line-height: 1; width: 40px; height: 40px; }
.mobile-menu-section { margin-bottom: var(--sp-md); border-top: 1px solid rgba(255,255,255,0.1); padding-top: var(--sp-md); }
.mobile-menu-section-title { display: block; color: var(--gold-soft); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.5rem; }
.mobile-menu-content a { display: block; color: var(--text-on-dark-soft); padding: 0.5rem 0; font-weight: 500; }
.mobile-menu-content a:hover { color: #fff; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative; color: #fff; text-align: center; overflow: hidden;
    /* Deeper night sky so gold emblem rings separate cleanly from the field */
    background: linear-gradient(155deg, #0c081c 0%, #1a0f3a 42%, #2d1560 78%, #3d2480 100%);
    padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 9vw, 7rem);
}
.hero::before {
    content: ""; position: absolute; inset: 0; opacity: 0.5;
    background-image:
        radial-gradient(2px 2px at 20% 30%, #fff, transparent),
        radial-gradient(2px 2px at 70% 20%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 40% 70%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 85% 60%, #fff, transparent),
        radial-gradient(2px 2px at 55% 45%, #fff, transparent),
        radial-gradient(1px 1px at 10% 80%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 90% 85%, #fff, transparent);
    background-repeat: no-repeat;
    animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.35; } to { opacity: 0.7; } }
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: var(--h1-size); margin-bottom: var(--sp-md); text-shadow: 0 2px 20px rgba(0,0,0,0.25); }
.hero h1 .highlight { background: var(--love-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { font-size: clamp(1.05rem, 2.6vw, 1.3rem); color: var(--text-on-dark-soft); max-width: 640px; margin: 0 auto var(--sp-lg); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-md); justify-content: center; }
.hero-badges { display: flex; flex-wrap: wrap; gap: var(--sp-md); justify-content: center; margin-top: var(--sp-lg); color: var(--text-on-dark-soft); font-size: 0.9rem; }
.hero-badges span { display: inline-flex; align-items: center; gap: 0.4rem; }

/* Wave divider */
.wave-divider { display: block; width: 100%; height: 60px; margin-top: -1px; }
.wave-divider path { fill: var(--bg-page); }

/* ==========================================================================
   Calculator
   ========================================================================== */
.calculator-card {
    background: var(--bg-card); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
    padding: clamp(1.4rem, 4vw, 2.5rem); border: 1px solid var(--border);
    max-width: 760px; margin: -70px auto 0; position: relative; z-index: 5;
}
.calc-title { text-align: center; margin-bottom: var(--sp-lg); }
.calc-title h2 { font-size: var(--h3-size); }
.calc-title p { color: var(--text-soft); font-size: 0.95rem; }
.calc-selectors { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--sp-md); align-items: end; }
.calc-field label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 0.4rem; color: var(--text-soft); }
.calc-field select {
    width: 100%; padding: 0.85rem 1rem; border-radius: var(--r-md); border: 2px solid var(--border-strong);
    background: var(--bg-subtle); color: var(--text); font-family: inherit; font-size: 1rem; font-weight: 600;
    appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236c4bd6' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 1rem center;
    cursor: pointer; transition: border-color var(--transition);
}
.calc-field select:focus { outline: none; border-color: var(--primary); }
.calc-heart { font-size: 1.8rem; padding-bottom: 0.6rem; color: var(--pink); text-align: center; }
.calc-actions { margin-top: var(--sp-lg); text-align: center; }

/* Result */
.calc-result { margin-top: var(--sp-lg); border-top: 1px dashed var(--border-strong); padding-top: var(--sp-lg); }
.calc-result[hidden] { display: none; }
.result-head { text-align: center; margin-bottom: var(--sp-md); }
.result-head h3 { font-size: var(--h3-size); }
.score-ring { display: grid; place-items: center; width: 150px; height: 150px; margin: var(--sp-md) auto; border-radius: 50%;
    background: conic-gradient(var(--gold) calc(var(--val) * 1%), var(--bg-subtle) 0); position: relative; }
.score-ring::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--bg-card); }
.score-ring b { position: relative; font-family: var(--font-heading); font-size: 2.4rem; color: var(--primary); }
.score-ring b small { font-size: 1rem; }
.result-verdict { text-align: center; font-weight: 600; color: var(--text-soft); margin-bottom: var(--sp-lg); }

/* Button loading spinner */
.btn .btn-spinner {
    width: 18px; height: 18px; border-radius: 50%; display: inline-block;
    border: 2.5px solid rgba(255,255,255,0.45); border-top-color: #fff;
    animation: btnspin 0.7s linear infinite; vertical-align: -3px;
}
@keyframes btnspin { to { transform: rotate(360deg); } }
.btn.is-loading { opacity: 0.92; cursor: progress; }

/* Result reveal entrance */
.calc-result.reveal { animation: resultIn 0.55s cubic-bezier(0.16,1,0.3,1) both; }
@keyframes resultIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }

/* Score ring gentle entrance pulse */
.calc-result.reveal .score-ring { animation: ringPop 0.6s cubic-bezier(0.16,1,0.3,1) both; }
@keyframes ringPop { 0% { transform: scale(0.8); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }

/* Cosmic particle burst */
.cosmic-burst { position: absolute; inset: 0; overflow: visible; pointer-events: none; z-index: 6; }
.burst-particle { position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%); will-change: transform, opacity; }

.score-bars { display: grid; gap: var(--sp-md); max-width: 520px; margin: 0 auto; }
.score-bar-row { display: grid; grid-template-columns: 120px 1fr 46px; align-items: center; gap: 0.6rem; font-size: 0.9rem; }
.score-bar-row .lbl { font-weight: 600; color: var(--text-soft); }
.score-bar-track { height: 12px; background: var(--bg-subtle); border-radius: var(--r-full); overflow: hidden; }
.score-bar-fill { height: 100%; border-radius: var(--r-full); background: var(--cosmic-gradient); width: 0; transition: width 0.9s cubic-bezier(0.16,1,0.3,1); }
.score-bar-fill.love { background: var(--love-gradient); }
.score-bar-row .pct { text-align: right; font-weight: 700; color: var(--primary); }

/* ==========================================================================
   Signs grid
   ========================================================================== */
.signs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--sp-md); }
.sign-tile {
    display: flex; flex-direction: column; align-items: center; gap: 0.35rem; text-align: center;
    padding: var(--sp-lg) var(--sp-md); border-radius: var(--r-md); background: var(--bg-card);
    border: 1px solid var(--border); box-shadow: var(--shadow-sm); color: var(--text);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.sign-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary); color: var(--text); }
.sign-glyph {
    width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
    font-size: 1.9rem; color: #fff; margin-bottom: 0.3rem; box-shadow: var(--shadow-sm);
}
.sign-tile .sign-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; }
.sign-tile .sign-dates { font-size: 0.76rem; color: var(--text-muted); }
.el-fire { background: linear-gradient(135deg, #ff6b4a, #ff9472); }
.el-earth { background: linear-gradient(135deg, #4caf7d, #2e8b57); }
.el-air { background: linear-gradient(135deg, #f2c14e, #e0a800); }
.el-water { background: linear-gradient(135deg, #5aa9e6, #3d7fc4); }

/* Zodiac emblems — champagne disc + gold ring so dark artwork never blends into purple heroes */
.sign-emblem {
    border-radius: 50%; object-fit: cover; display: block;
    aspect-ratio: 1 / 1;
    background: radial-gradient(circle at 50% 40%, #fff8e8 0%, #f0e2c4 55%, #e0cfa0 100%);
    border: 2.5px solid #ffce54;
    box-shadow:
        0 0 0 5px rgba(255, 248, 232, 0.92),
        0 0 0 7px rgba(255, 206, 84, 0.45),
        0 8px 22px rgba(0, 0, 0, 0.35),
        0 0 28px rgba(255, 206, 84, 0.28);
}
.sign-tile .sign-emblem { width: 76px; height: 76px; margin-bottom: 0.3rem; transition: transform var(--transition), box-shadow var(--transition); }
.sign-tile:hover .sign-emblem {
    transform: scale(1.06) rotate(-2deg);
    box-shadow:
        0 0 0 5px #fff8e8,
        0 0 0 8px rgba(255, 206, 84, 0.55),
        0 10px 28px rgba(0, 0, 0, 0.4),
        0 0 36px rgba(255, 126, 168, 0.25);
}

/* Hero / pair medallions: stronger halo against night sky */
.emblem-lg, .emblem-hero {
    border: 3px solid #ffd76f;
    box-shadow:
        0 0 0 7px rgba(255, 248, 232, 0.95),
        0 0 0 10px rgba(255, 206, 84, 0.5),
        0 14px 40px rgba(0, 0, 0, 0.55),
        0 0 50px rgba(255, 206, 84, 0.4);
}
.emblem-lg { width: 120px; height: 120px; }
.emblem-hero { width: 96px; height: 96px; }
.emblem-md { width: 52px; height: 52px; }
.emblem-sm { width: 44px; height: 44px; }
.emblem-inline { width: 46px; height: 46px; }

/* Calculator dropdown medallions */
.calc-emblem { width: 66px; height: 66px; margin: 0 auto 0.55rem; }
.calc-field { text-align: center; }
.calc-field label { text-align: center; }
.calc-field select { text-align: left; }

/* Rotating zodiac wheel (decorative, homepage hero) */
.zodiac-wheel { position: absolute; inset: 0; display: grid; place-items: center; z-index: 0; pointer-events: none; opacity: 0.88; }
.wheel-ring {
    --r: clamp(160px, 40vw, 280px);
    position: relative; width: calc(var(--r) * 2); height: calc(var(--r) * 2);
    animation: wheelspin 110s linear infinite;
}
.wheel-sign {
    position: absolute; top: 50%; left: 50%; width: 54px; height: 54px; margin: -27px;
    transform: rotate(var(--a)) translateY(calc(var(--r) * -1)) rotate(calc(-1 * var(--a)));
}
.wheel-sign img {
    width: 100%; height: 100%; border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, #fff8e8, #e8d5a8);
    border: 2px solid #ffce54;
    box-shadow:
        0 0 0 3px rgba(255, 248, 232, 0.9),
        0 0 0 5px rgba(255, 206, 84, 0.4),
        0 4px 14px rgba(0, 0, 0, 0.45),
        0 0 18px rgba(255, 206, 84, 0.35);
    animation: wheelspin-rev 110s linear infinite;
}
@keyframes wheelspin { to { transform: rotate(360deg); } }
@keyframes wheelspin-rev { to { transform: rotate(-360deg); } }

/* ==========================================================================
   Generic cards / grids
   ========================================================================== */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--sp-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-md); }

.card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md);
    padding: var(--sp-lg); box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: var(--sp-sm); font-size: 1.15rem; }
.card p { color: var(--text-soft); font-size: 0.95rem; }
.card-icon { font-size: 2rem; margin-bottom: var(--sp-sm); display: block; }
a.card { color: var(--text); display: block; }
a.card:hover { color: var(--text); }

.feature-card { text-align: center; }
.feature-card .card-icon {
    width: 64px; height: 64px; margin: 0 auto var(--sp-sm); border-radius: var(--r-md);
    display: grid; place-items: center; background: var(--bg-tint); color: var(--primary); font-size: 1.8rem;
}

/* section heading */
.section-head { text-align: center; max-width: 720px; margin: 0 auto var(--sp-xl); }
.section-head h2 { font-size: var(--h2-size); margin-bottom: var(--sp-sm); }
.section-head p { color: var(--text-soft); }
.section-tint { background: var(--bg-subtle); }

/* pill chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
    display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.85rem;
    border-radius: var(--r-full); background: var(--bg-tint); color: var(--primary-dark);
    font-size: 0.82rem; font-weight: 600; border: 1px solid var(--border);
}
[data-theme="dark"] .chip { color: var(--gold-soft); }

/* ==========================================================================
   Pair / compatibility page
   ========================================================================== */
.pair-hero {
    background: linear-gradient(160deg, #0a0618 0%, #160f30 38%, #24104f 72%, #3a1d6e 100%);
    color: #fff; text-align: center; padding: clamp(2.5rem,7vw,4.5rem) 0; position: relative; overflow: hidden;
}
.pair-hero::before {
    content:""; position:absolute; inset:0; opacity:.55;
    background-image:
        radial-gradient(2px 2px at 15% 25%,#fff,transparent),
        radial-gradient(1.5px 1.5px at 75% 15%,#fff,transparent),
        radial-gradient(2px 2px at 60% 65%,#fff,transparent),
        radial-gradient(1.5px 1.5px at 30% 80%,#fff,transparent),
        radial-gradient(1px 1px at 50% 40%,#ffd76f,transparent);
    background-repeat:no-repeat;
}
.pair-hero .container { position: relative; z-index: 1; }
.pair-glyphs { display: flex; align-items: center; justify-content: center; gap: var(--sp-md); margin-bottom: var(--sp-md); }
.pair-glyphs .sign-glyph { width: 84px; height: 84px; font-size: 2.6rem; }
.pair-glyphs .plus { font-size: 2rem; color: var(--gold-soft); }
.pair-hero h1 { color: #fff; font-size: clamp(1.8rem, 5vw, 3rem); }
.pair-hero .verdict-chip { display: inline-block; margin-top: var(--sp-md); padding: 0.5rem 1.2rem; border-radius: var(--r-full); background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); font-weight: 600; }

.pair-score-big { font-family: var(--font-heading); font-size: clamp(3rem, 10vw, 5rem); color: var(--gold-soft); line-height: 1; }

.content-section { max-width: 820px; margin: 0 auto; }
.content-section h2 { font-size: var(--h2-size); margin: var(--sp-xl) 0 var(--sp-md); }
.content-section h3 { font-size: var(--h3-size); margin: var(--sp-lg) 0 var(--sp-sm); }
.content-section p { margin-bottom: var(--sp-md); color: var(--text-soft); }
.content-section ul.bullets { margin: 0 0 var(--sp-md) 1.2rem; list-style: disc; color: var(--text-soft); }
.content-section ul.bullets li { margin-bottom: 0.4rem; }

.stat-row { display: flex; flex-wrap: wrap; gap: var(--sp-md); justify-content: center; margin: var(--sp-lg) 0; }
.stat-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-md) var(--sp-lg); text-align: center; min-width: 130px; box-shadow: var(--shadow-sm); }
.stat-box b { display: block; font-family: var(--font-heading); font-size: 1.8rem; color: var(--primary); }
.stat-box span { font-size: 0.82rem; color: var(--text-muted); }

/* score bars reused inside content */
.pair-scores { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-lg); box-shadow: var(--shadow-sm); margin: var(--sp-lg) 0; }

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb { background: var(--bg-subtle); border-bottom: 1px solid var(--border); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; max-width: var(--container); margin: 0 auto; padding: 0.75rem var(--sp-lg); font-size: 0.85rem; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--text-muted); }
.breadcrumb li::after { content: "\203A"; color: var(--text-muted); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--text-soft); font-weight: 500; }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: var(--sp-sm); }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.faq-q { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-md); padding: var(--sp-md) var(--sp-lg); font-weight: 600; color: var(--text); font-size: 1rem; }
.faq-q:hover { background: var(--bg-tint); }
.faq-q .icon { flex: 0 0 auto; transition: transform var(--transition); color: var(--primary); font-size: 1.3rem; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--transition); }
.faq-a-inner { padding: 0 var(--sp-lg) var(--sp-md); color: var(--text-soft); }
.faq-item.open .faq-a { max-height: 500px; }

/* ==========================================================================
   Love page fun widgets
   ========================================================================== */
.love-hero { background: var(--love-gradient); }
.love-meter { text-align: center; }
.hearts-float span { display: inline-block; animation: floaty 3s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.name-love-form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-md); max-width: 560px; margin: 0 auto var(--sp-md); }
.name-love-form input { padding: 0.85rem 1rem; border-radius: var(--r-md); border: 2px solid var(--border-strong); background: var(--bg-subtle); color: var(--text); font-family: inherit; font-size: 1rem; }
.name-love-form input:focus { outline: none; border-color: var(--pink); }

/* ==========================================================================
   Blog / article cards
   ========================================================================== */
.article-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.article-card .thumb {
    aspect-ratio: 16/9; display: block; overflow: hidden; position: relative;
    background: linear-gradient(145deg, #1a1035 0%, #3d2a6e 100%);
}
.article-card .thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.45s ease;
}
.article-card:hover .thumb img { transform: scale(1.04); }
.article-card .thumb-fallback {
    aspect-ratio: 16/9; display: grid; place-items: center; font-size: 2.6rem;
    background: linear-gradient(145deg, #1a1035, #5b2a9d);
}
.article-card .body { padding: var(--sp-lg); flex: 1; display: flex; flex-direction: column; }
.article-card .tag { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); font-weight: 700; }
[data-theme="dark"] .article-card .tag { color: var(--gold-soft); }
.article-card h3 { margin: 0.4rem 0; font-size: 1.15rem; }
.article-card p { flex: 1; }
.article-meta { font-size: 0.8rem; color: var(--text-muted); margin-top: var(--sp-sm); }

/* article body typography */
.article-body { max-width: 760px; margin: 0 auto; }
.article-hero-img {
    margin: 0 0 var(--sp-xl);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}
.article-hero-img img { width: 100%; height: auto; display: block; aspect-ratio: 16/9; object-fit: cover; }
.article-body h2 { font-size: var(--h2-size); margin: var(--sp-xl) 0 var(--sp-sm); }
.article-body h3 { margin: var(--sp-lg) 0 var(--sp-sm); }
.article-body p, .article-body li { color: var(--text-soft); }
.article-body ul, .article-body ol { margin: 0 0 var(--sp-md) 1.4rem; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 0.4rem; }
.article-body blockquote { border-left: 4px solid var(--primary); background: var(--bg-subtle); padding: var(--sp-md) var(--sp-lg); border-radius: var(--r-sm); margin: var(--sp-md) 0; font-style: italic; }

/* ==========================================================================
   Callout / CTA band
   ========================================================================== */
.cta-band { background: var(--cosmic-gradient); color: #fff; border-radius: var(--r-lg); padding: var(--sp-xl); text-align: center; margin: var(--sp-xl) auto; max-width: var(--container); }
.cta-band h2 { color: #fff; margin-bottom: var(--sp-sm); }
.cta-band p { color: var(--text-on-dark-soft); margin-bottom: var(--sp-lg); }

/* ==========================================================================
   Crawl nav (static HTML links for crawlers; complements JS footer)
   ========================================================================== */
.crawl-nav {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    padding: var(--sp-lg) 0;
}
.crawl-nav-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 var(--sp-sm);
}
.crawl-nav-links {
    margin: 0 0 var(--sp-sm);
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-soft);
}
.crawl-nav-links a { color: var(--text); font-weight: 500; }
.crawl-nav-links a:hover { color: var(--primary); }
.crawl-nav-signs { font-size: 0.85rem; margin-bottom: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--indigo-900); color: var(--text-on-dark-soft); padding: var(--sp-2xl) 0 var(--sp-lg); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--sp-xl); }
.footer-brand .logo { margin-bottom: var(--sp-md); }
.footer-brand p { font-size: 0.9rem; max-width: 320px; }
.footer-section h3 { color: #fff; font-family: var(--font-body); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: var(--sp-md); }
.footer-section ul li { margin-bottom: 0.5rem; }
.footer-section a { color: var(--text-on-dark-soft); font-size: 0.9rem; }
.footer-section a:hover { color: var(--gold-soft); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: var(--sp-xl); padding-top: var(--sp-lg); text-align: center; font-size: 0.82rem; color: var(--text-muted); }
.footer-bottom .disclaimer { max-width: 780px; margin: 0.5rem auto 0; font-size: 0.76rem; }
.footer-social { display: flex; gap: 0.6rem; margin-top: var(--sp-md); }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.08); color: #fff; }
.footer-social a:hover { background: var(--primary); }

/* ==========================================================================
   Back to top
   ========================================================================== */
.back-to-top {
    position: fixed; bottom: 24px; right: 24px; z-index: 800; width: 48px; height: 48px;
    border-radius: 50%; background: var(--cosmic-gradient); color: #fff; font-size: 1.3rem;
    display: grid; place-items: center; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden;
    transform: translateY(12px); transition: var(--transition);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); color: #fff; }

/* ==========================================================================
   Utilities
   ========================================================================== */
.mt-lg { margin-top: var(--sp-lg); }
.mb-lg { margin-bottom: var(--sp-lg); }
.narrow { max-width: 820px; margin-left: auto; margin-right: auto; }
[hidden] { display: none !important; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 940px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-lg); }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
    .container { padding: 0 var(--sp-md); }
    .calc-selectors { grid-template-columns: 1fr; }
    .calc-heart { display: none; }
    .zodiac-wheel { display: none; }
    .calc-emblem { width: 58px; height: 58px; }
    .name-love-form { grid-template-columns: 1fr; }
    .calculator-card { margin-top: -50px; }
    .score-bar-row { grid-template-columns: 92px 1fr 40px; font-size: 0.82rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .pair-glyphs .sign-glyph { width: 64px; height: 64px; font-size: 2rem; }
    .btn { width: 100%; }
    .hero-cta .btn, .cta-band .btn { width: auto; }
}
@media (max-width: 400px) {
    .signs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
