:root {
    --as-ivory: #fdfbf7;
    --as-cream: #f8f3ea;
    --as-maroon: #7a1f1f;
    --as-maroon-dark: #5c1414;
    --as-gold: #c9a24d;
    --as-gold-soft: #e8d3a2;
    --as-text: #3b2f2a;
    --as-muted: #6f625c;
    --as-border: #e7ddd0;
    --as-shadow: 0 12px 40px rgba(58, 30, 20, 0.08);
}

.astro-solutions-page {
    background: var(--as-ivory);
    color: var(--as-text);
    font-family: 'Twkeverett', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.astro-solutions-page h1,
.astro-solutions-page h2,
.astro-solutions-page h3,
.astro-solutions-page .as-section-title {
    font-family: 'Twkeverett', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.astro-solutions-page .site-header nav a.active {
    color: var(--as-maroon);
    font-weight: 600;
}

.as-container {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.as-eyebrow {
    color: var(--as-maroon);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.as-section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--as-maroon-dark);
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.as-lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--as-muted);
    max-width: 58ch;
}

.as-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.35rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.as-btn:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

.as-btn-primary {
    background: var(--as-maroon);
    color: #fff;
}

.as-btn-outline {
    background: transparent;
    color: var(--as-maroon);
    border-color: var(--as-maroon);
}

.as-btn-gold {
    background: var(--as-gold);
    color: #2d2010;
}

.as-btn-block {
    width: 100%;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Hub hero */
.as-hub-hero {
    padding: 3rem 0 2rem;
    background:
        radial-gradient(ellipse 80% 60% at 100% 20%, rgba(201, 162, 77, 0.14), transparent 55%),
        radial-gradient(ellipse 60% 50% at 0% 80%, rgba(122, 31, 31, 0.08), transparent 50%),
        linear-gradient(180deg, #fff 0%, var(--as-ivory) 100%);
}

.as-hub-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
}

.as-hub-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    color: var(--as-maroon-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.as-hub-hero-art {
    position: relative;
}

.as-hub-hero-art::before {
    content: '';
    position: absolute;
    inset: 8% 5% -5% 10%;
    background: linear-gradient(135deg, rgba(122, 31, 31, 0.12), rgba(201, 162, 77, 0.18));
    border-radius: 24px;
    z-index: 0;
}

.as-hub-hero-art img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    box-shadow: var(--as-shadow);
    border: 1px solid var(--as-border);
}

.as-search-wrap {
    display: flex;
    align-items: stretch;
    margin: 1.5rem 0 1rem;
    background: #fff;
    border: 1px solid var(--as-border);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: var(--as-shadow);
}

.as-search-wrap input {
    flex: 1;
    border: 0;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    background: transparent;
    color: var(--as-text);
}

.as-search-wrap input:focus {
    outline: none;
}

.as-search-btn {
    width: 3.5rem;
    border: 0;
    background: var(--as-maroon);
    color: #fff;
    cursor: pointer;
}

.as-popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.as-popular-tag {
    display: inline-block;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: var(--as-cream);
    color: var(--as-maroon);
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid var(--as-border);
}

.as-trust-strip {
    padding: 1.25rem 0;
    border-block: 1px solid var(--as-border);
    background: #fff;
}

.as-trust-grid,
.as-footer-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
}

.as-trust-grid strong,
.as-footer-trust-grid strong {
    display: block;
    color: var(--as-maroon);
    font-size: 1.1rem;
}

.as-trust-grid span,
.as-footer-trust-grid span {
    color: var(--as-muted);
    font-size: 0.9rem;
}

.as-category-nav {
    padding: 2rem 0 0.5rem;
}

.as-category-tabs {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.as-category-tab {
    white-space: nowrap;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--as-border);
    color: var(--as-text);
    text-decoration: none;
    font-size: 0.92rem;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.as-category-tab.is-active {
    background: var(--as-maroon);
    border-color: var(--as-maroon);
    color: #fff;
}

.as-solutions-grid-section {
    padding: 1.5rem 0 3rem;
}

.as-solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.as-solution-card {
    background: #fff;
    border: 1px solid var(--as-border);
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: var(--as-shadow);
}

.as-solution-card-icon {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.as-solution-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.as-solution-card h3 a {
    color: var(--as-maroon-dark);
    text-decoration: none;
}

.as-solution-card p {
    color: var(--as-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    min-height: 3.1em;
}

.as-solution-meta {
    margin: 0.75rem 0;
    color: var(--as-muted);
    font-size: 0.85rem;
}

.as-card-cta {
    color: var(--as-maroon);
    font-weight: 600;
    text-decoration: none;
}

.as-empty-search {
    text-align: center;
    color: var(--as-muted);
    margin-top: 1rem;
}

.as-why-trust,
.as-how-it-works,
.as-content-section {
    padding: 3rem 0;
}

.as-why-grid,
.as-content-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
}

.as-check-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.as-check-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.65rem;
    line-height: 1.6;
}

.as-check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--as-maroon);
    font-weight: 700;
}

.as-check-list-inline {
    display: grid;
    gap: 0.35rem;
    margin: 1.25rem 0;
}

.as-cta-banner {
    background: var(--as-maroon);
    color: #fff;
    padding: 2rem 0;
}

.as-cta-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.as-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.as-steps li {
    background: #fff;
    border: 1px solid var(--as-border);
    border-radius: 16px;
    padding: 1rem;
}

.as-steps span {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--as-gold-soft);
    color: var(--as-maroon-dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.as-footer-trust {
    padding: 2rem 0 3rem;
    background: var(--as-cream);
}

.as-footer-trust-grid i {
    color: var(--as-maroon);
    margin-bottom: 0.35rem;
}

/* Solution page */
.as-breadcrumb {
    padding: 1rem 0 0;
    font-size: 0.9rem;
    color: var(--as-muted);
}

.as-breadcrumb a {
    color: var(--as-maroon);
    text-decoration: none;
}

.as-solution-hero {
    padding: 2rem 0;
}

.as-solution-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
}

.as-solution-hero h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--as-maroon-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.as-solution-hero-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    border-radius: 24px;
    background: linear-gradient(135deg, #fff, var(--as-cream));
    border: 1px solid var(--as-border);
}

.as-solution-hero-icon {
    font-size: 4rem;
}

.theme-marriage { --as-theme-accent: #d9a7a0; }
.theme-career { --as-theme-accent: #8ea6c9; }
.theme-compatibility { --as-theme-accent: #b49bc7; }
.theme-saturn { --as-theme-accent: #7f86a8; }
.theme-finance { --as-theme-accent: #c9b36d; }
.theme-family { --as-theme-accent: #c6b28d; }
.theme-dosha { --as-theme-accent: #c98f8f; }

.theme-marriage .as-solution-hero-badge,
.theme-marriage.as-solution-hero {
    background: linear-gradient(180deg, #fff8f6 0%, var(--as-ivory) 100%);
}

.theme-career .as-solution-hero-badge,
.theme-career.as-solution-hero {
    background: linear-gradient(180deg, #f3f7fc 0%, var(--as-ivory) 100%);
}

.theme-compatibility .as-solution-hero-badge,
.theme-compatibility.as-solution-hero {
    background: linear-gradient(180deg, #f7f2fb 0%, var(--as-ivory) 100%);
}

.theme-saturn .as-solution-hero-badge,
.theme-saturn.as-solution-hero {
    background: linear-gradient(180deg, #eef0f8 0%, var(--as-ivory) 100%);
}

.as-form-section {
    padding: 1rem 0 3rem;
}

.as-form-card {
    background: #fff;
    border: 1px solid var(--as-border);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: var(--as-shadow);
}

.as-form-header h2 {
    font-size: 1.35rem;
    color: var(--as-maroon-dark);
    margin: 0.25rem 0 0.5rem;
}

.as-change-question {
    font-size: 0.9rem;
    color: var(--as-maroon);
}

.as-form-progress {
    margin: 1.25rem 0 1.5rem;
}

.as-progress-track {
    height: 6px;
    background: var(--as-cream);
    border-radius: 999px;
    overflow: hidden;
}

.as-progress-fill {
    display: block;
    height: 100%;
    background: var(--as-maroon);
    transition: width 0.25s ease;
}

.as-progress-label {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--as-muted);
}

.as-form-step {
    display: none;
}

.as-form-step.is-active {
    display: block;
}

.as-field {
    margin-bottom: 1rem;
}

.as-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.as-field input,
.as-field select {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--as-border);
    border-radius: 12px;
    font: inherit;
    background: #fff;
}

.as-field-checkbox label {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-weight: 500;
}

.as-field-hint,
.as-privacy-note,
.as-optional {
    color: var(--as-muted);
    font-size: 0.9rem;
}

.as-form-nav {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.as-form-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--as-border);
    color: var(--as-muted);
    font-size: 0.9rem;
}

.as-form-errors {
    background: #fff1f1;
    border: 1px solid #efb4b4;
    color: #7a1f1f;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.as-couple-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.as-couple-tab {
    flex: 1;
    border: 1px solid var(--as-border);
    background: var(--as-cream);
    border-radius: 12px;
    padding: 0.7rem;
    cursor: pointer;
}

.as-couple-tab.is-active {
    background: var(--as-maroon);
    color: #fff;
    border-color: var(--as-maroon);
}

.as-couple-panel {
    display: none;
}

.as-couple-panel.is-active {
    display: block;
}

.as-content-alt {
    background: var(--as-cream);
}

.as-pill-grid,
.as-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.as-pill,
.as-factor-tag {
    display: inline-block;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--as-border);
}

.as-example-card,
.as-result-card {
    background: #fff;
    border: 1px solid var(--as-border);
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: var(--as-shadow);
}

.as-faq-item {
    background: #fff;
    border: 1px solid var(--as-border);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    margin-bottom: 0.75rem;
}

.as-faq-item summary {
    cursor: pointer;
    font-weight: 600;
}

.as-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.as-related-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid var(--as-border);
    border-radius: 16px;
    padding: 1rem;
}

.as-related-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.as-related-card span {
    display: block;
    color: var(--as-muted);
    font-size: 0.92rem;
    margin-top: 0.35rem;
}

.as-result-dashboard {
    padding: 2rem 0;
    background: linear-gradient(180deg, #fff, var(--as-cream));
}

.as-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.as-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.as-result-disclaimer {
    color: var(--as-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.as-result-summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.as-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.as-status-supports {
    background: #e8f6ee;
    color: #176b43;
}

.as-status-mixed {
    background: #fff4df;
    color: #8a5a00;
}

.as-status-does_not_support,
.as-status-insufficient_evidence,
.as-status-unknown {
    background: #f3f4f6;
    color: #4b5563;
}

.as-result-warnings {
    border-color: #f0d7a5;
    background: #fffaf0;
}

.as-result-warnings ul {
    margin: 0;
    padding-left: 1.1rem;
}

.as-timing-window-list,
.as-cross-check-grid,
.as-muhurta-list {
    display: grid;
    gap: 0.85rem;
}

.as-timing-window,
.as-cross-check-card,
.as-muhurta-day {
    border: 1px solid var(--as-border);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    background: #fff;
}

.as-timing-window-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.as-evidence-list {
    margin: 0.35rem 0 0;
    padding-left: 1.1rem;
    color: var(--as-muted);
    font-size: 0.92rem;
}

.as-cross-check-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.as-cross-check-section + .as-cross-check-section {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--as-border);
}

.as-cross-check-section h5 {
    margin: 0 0 0.35rem;
    font-size: 0.92rem;
}

.as-muted-line {
    color: var(--as-muted);
    font-size: 0.9rem;
    margin: 0;
}

.as-muhurta-disclaimer {
    color: var(--as-muted);
    font-size: 0.92rem;
}

.as-form-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.75;
}

.as-form-loading::after {
    content: 'Analyzing your chart…';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(253, 251, 247, 0.92);
    font-weight: 600;
    color: var(--as-ink);
    border-radius: 18px;
}

.as-mobile-cta {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: rgba(253, 251, 247, 0.96);
    border-top: 1px solid var(--as-border);
    z-index: 40;
}

@media (max-width: 960px) {
    .as-hub-hero-grid,
    .as-why-grid,
    .as-content-split,
    .as-solution-hero-grid,
    .as-result-grid,
    .as-trust-grid,
    .as-footer-trust-grid,
    .as-steps {
        grid-template-columns: 1fr;
    }

    .as-steps {
        gap: 0.75rem;
    }

    .as-cta-banner-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .as-mobile-cta {
        display: block;
    }

    .as-form-section {
        padding-bottom: 5.5rem;
    }
}

.compat-result-dashboard { padding: 2rem 0; }
.as-compat-results { margin-bottom: 1.5rem; }
.compat-result-greeting { color: var(--as-muted); margin-bottom: 1rem; }
.compat-result-card {
    background: #fff;
    border: 1px solid var(--as-border);
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: var(--as-shadow);
    margin-bottom: 1rem;
}
.compat-result-summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}
.compat-score-line { font-size: 1.05rem; margin: 0.35rem 0 0.75rem; }
.compat-band-badge {
    display: inline-flex;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}
.compat-band-strong { background: #e8f6ee; color: #176b43; }
.compat-band-moderate { background: #e8f1fb; color: #1d4f91; }
.compat-band-mixed { background: #fff4df; color: #8a5a00; }
.compat-band-challenging { background: #f3f4f6; color: #4b5563; }
.compat-result-warnings { border-color: #f0d7a5; background: #fffaf0; }
.compat-result-warnings ul, .compat-evidence-list { margin: 0.35rem 0 0; padding-left: 1.1rem; color: var(--as-muted); font-size: 0.92rem; }
.compat-result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.compat-koota-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.75rem; }
.compat-koota-card { border: 1px solid var(--as-border); border-radius: 12px; padding: 0.85rem 1rem; background: #fff; }
.compat-koota-head { display: flex; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.35rem; }
.compat-koota-card p, .compat-muted { color: var(--as-muted); font-size: 0.92rem; margin: 0; }
.compat-tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.compat-factor-tag { display: inline-block; padding: 0.3rem 0.65rem; border-radius: 999px; background: var(--as-cream); font-size: 0.85rem; }
.compat-result-disclaimer { color: var(--as-muted); font-size: 0.9rem; margin-top: 0.5rem; }
@media (max-width: 768px) { .compat-result-grid { grid-template-columns: 1fr; } }

.as-timing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}
.as-timing-card {
    border: 1px solid var(--as-border);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    background: #fff;
}
.as-timing-card strong { display: block; font-size: 1.1rem; }
.as-timing-status {
    display: inline-block;
    margin: 0.35rem 0;
    font-size: 0.82rem;
    color: var(--as-muted);
}
.as-timing-card ul { margin: 0.35rem 0 0; padding-left: 1.1rem; font-size: 0.88rem; color: var(--as-muted); }
.as-indicator-list { margin: 0.5rem 0 0; padding-left: 1.1rem; color: var(--as-muted); }
.as-cross-check-year { padding: 0.75rem 0; border-bottom: 1px solid var(--as-border); }
.as-cross-check-year:last-child { border-bottom: none; }
.as-section-supporting { border-left: 3px solid #176b43; }
.as-section-mixed { border-left: 3px solid #8a5a00; }
.as-section-challenging { border-left: 3px solid #9b1c1c; }
.as-section-neutral { border-left: 3px solid var(--as-border); }
.as-section-summary { color: var(--as-muted); margin-bottom: 0.5rem; }
.as-result-sections { display: grid; gap: 1rem; margin: 1rem 0; }
