:root {
    --bg: #f4f8f6;
    --white: #ffffff;
    --text: #173936;
    --muted: #5f7774;
    --primary: #5f9088;
    --primary-dark: #48736c;
    --soft: #edf5f2;
    --soft-2: #f7fbf9;
    --accent: #d7ebe6;
    --accent-2: #e4eff4;
    --border: #dce9e4;
    --shadow: 0 18px 50px rgba(34, 73, 69, 0.08);
    --shadow-soft: 0 10px 24px rgba(34, 73, 69, 0.05);
    --warning-bg: #fff6d8;
    --warning-text: #6d5b14;
    --danger-bg: #fff0f1;
    --danger-text: #92535d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(208, 232, 223, 0.45), transparent 28%),
        radial-gradient(circle at right 15%, rgba(223, 234, 241, 0.35), transparent 24%),
        linear-gradient(180deg, #f6faf8 0%, #f3f7f6 100%);
}

a { color: var(--primary-dark); }
a:hover { color: #345b55; }

.top-alert {
    background: linear-gradient(180deg, #fff8de, #fff4cf);
    color: var(--warning-text);
    font-size: .95rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(109, 91, 20, 0.08);
}

.navbar {
    background: rgba(255,255,255,0.82) !important;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(220, 233, 228, 0.9);
}

.navbar-brand { color: var(--text) !important; }
.brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(34, 73, 69, 0.12);
}
.nav-link {
    color: var(--muted);
    font-weight: 600;
    padding: .75rem .9rem !important;
    border-radius: 999px;
}
.nav-link:hover,
.nav-link.active {
    color: var(--text) !important;
    background: rgba(215, 235, 230, 0.55);
}

.hero-section,
.inner-hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 78px;
    background: linear-gradient(180deg, rgba(247, 251, 249, 0.92), rgba(237, 245, 242, 0.92));
}
.hero-section::before,
.inner-hero::before {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(215,235,230,0.75), transparent 68%);
    top: -120px;
    right: -120px;
    pointer-events: none;
}
.hero-section::after,
.inner-hero::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(228,239,244,0.8), transparent 68%);
    bottom: -110px;
    left: -70px;
    pointer-events: none;
}
.inner-hero-danger {
    background: linear-gradient(180deg, #fff7f8 0%, #fff1f3 100%);
}
.inner-hero-danger::before { background: radial-gradient(circle, rgba(255, 219, 223, 0.9), transparent 68%); }

.hero-shell,
.inner-shell,
.hero-card,
.info-box,
.assessment-box,
.resource-card,
.crisis-box,
.crisis-card,
.custom-card,
.accordion-item,
.content-highlight,
.topic-card,
.soft-panel,
.quick-card,
.journey-card,
.steps-card,
.nav-card,
.privacy-card {
    background: rgba(255,255,255,0.88);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.hero-shell,
.inner-shell {
    padding: 1.6rem;
}

.badge-soft,
.badge-crisis,
.small-kicker {
    display: inline-block;
    padding: .58rem .96rem;
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 800;
    letter-spacing: .01em;
}
.badge-soft,
.small-kicker {
    color: var(--primary-dark);
    background: rgba(215, 235, 230, 0.92);
}
.badge-crisis {
    background: #ffe4e8;
    color: var(--danger-text);
}

.display-soft {
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
}
.lead-soft {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.85;
}

.hero-card,
.info-box,
.resource-card,
.crisis-card,
.assessment-box,
.crisis-box,
.content-highlight,
.soft-panel,
.quick-card,
.journey-card,
.steps-card,
.nav-card,
.privacy-card {
    padding: 1.45rem;
}

.hero-mini-points,
.link-pills,
.calm-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}
.hero-mini-points span,
.link-pills a,
.calm-tags span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: rgba(255,255,255,0.72);
    color: var(--primary-dark);
    border: 1px solid rgba(95, 144, 136, 0.14);
    padding: .7rem .95rem;
    border-radius: 999px;
    font-size: .94rem;
    font-weight: 600;
    text-decoration: none;
}
.link-pills a:hover { background: rgba(215,235,230,0.7); }

.hero-side-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.hero-side-list li {
    padding: .95rem 0;
    border-bottom: 1px dashed rgba(23, 57, 54, 0.12);
    color: #33524f;
    line-height: 1.6;
}
.hero-side-list li:last-child { border-bottom: 0; }

.section-padding { padding: 86px 0; }
.section-soft { background: linear-gradient(180deg, rgba(237,245,242,0.65), rgba(247,251,249,0.8)); }
.section-title {
    font-size: clamp(1.85rem, 3vw, 2.7rem);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: .8rem;
    letter-spacing: -0.03em;
}
.section-subtitle {
    color: var(--muted);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.8;
}
.section-eyebrow {
    color: var(--primary-dark);
    font-size: .9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .65rem;
}

.btn-main {
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: .92rem 1.35rem;
    font-weight: 700;
    box-shadow: 0 14px 28px rgba(72, 115, 108, 0.18);
}
.btn-main:hover {
    background: linear-gradient(180deg, #5a8982, #416a63);
    color: #fff;
}
.btn-outline-dark {
    border-radius: 14px;
    border-color: rgba(23,57,54,0.18);
    color: var(--text);
}
.btn-outline-dark:hover {
    background: rgba(215,235,230,0.55);
    color: var(--text);
    border-color: rgba(95,144,136,0.24);
}

.topic-card,
.custom-card {
    height: 100%;
    border: 1px solid var(--border);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.topic-card:hover,
.custom-card:hover,
.resource-card:hover,
.quick-card:hover,
.nav-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(95, 144, 136, 0.22);
}
.topic-icon,
.quick-icon,
.side-card-icon,
.nav-icon,
.privacy-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: linear-gradient(145deg, rgba(215,235,230,0.95), rgba(228,239,244,0.95));
    color: var(--primary-dark);
    font-size: 1.1rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.topic-title { font-size: 1.22rem; font-weight: 800; margin-bottom: .65rem; }
.card-soft-text,
.topic-card p,
.quick-card p,
.resource-card p,
.privacy-card p { color: var(--muted); line-height: 1.8; }

.info-box {
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(244,249,247,0.9));
}
.info-box.compact-side { padding: 1.18rem; }
.side-stack { display: grid; gap: 1rem; align-content: start; }
.side-card-title {
    font-size: 1.18rem;
    line-height: 1.25;
    margin-bottom: .7rem;
    color: var(--text);
}
.side-card-text {
    margin-bottom: 0;
    color: #436260;
    line-height: 1.8;
}
.calm-quote {
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(239,247,244,0.95));
}
.breathing-mini { display: grid; gap: .65rem; }
.breathing-mini span {
    display: block;
    padding: .78rem .92rem;
    border-radius: 14px;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(95,144,136,0.14);
    color: #436260;
    font-weight: 600;
}

.content-list,
.check-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}
.content-list li,
.check-list li {
    position: relative;
    padding: 1rem 0 1rem 2.25rem;
    border-bottom: 1px dashed rgba(23,57,54,0.10);
    line-height: 1.75;
}
.content-list li:last-child,
.check-list li:last-child { border-bottom: 0; }
.content-list li::before,
.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: .98rem;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(95,144,136,0.12);
    color: var(--primary-dark);
    font-size: .88rem;
    font-weight: 800;
}

.soft-panel {
    background: linear-gradient(180deg, rgba(244,249,247,0.95), rgba(232,242,239,0.95));
}
.soft-panel p:last-child { margin-bottom: 0; }

.journey-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(244,249,247,0.92));
}
.journey-card .journey-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: .7rem 0;
}
.journey-number {
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    border-radius: 50%;
    background: rgba(95,144,136,0.13);
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}
.journey-step p { margin: 0; color: var(--muted); line-height: 1.75; }

.assessment-box {
    background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(246,250,248,0.94));
    box-shadow: 0 20px 50px rgba(34, 73, 69, 0.09);
}
.question-item label {
    margin-bottom: .65rem;
    color: var(--text);
}
.form-select {
    min-height: 54px;
    border-radius: 14px;
    border-color: rgba(95,144,136,0.22);
    background-color: rgba(255,255,255,0.96);
}
.form-select:focus {
    border-color: rgba(95,144,136,0.46);
    box-shadow: 0 0 0 0.2rem rgba(95,144,136,0.14);
}
.result-box {
    border-radius: 18px;
    padding: 1.25rem;
    border: 1px solid var(--border);
    background: #f8fafc;
}
.result-box.low { background: #eefbf3; border-color: #ccefd9; }
.result-box.medium { background: #fff9e8; border-color: #f4e2a3; }
.result-box.high { background: #fff0f0; border-color: #f0c3c3; }

.quick-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    height: 100%;
}
.quick-icon,
.nav-icon,
.privacy-icon { margin-bottom: 0; flex: 0 0 3rem; }
.quick-card h3,
.nav-card h3,
.privacy-card h3 { font-size: 1.08rem; margin-bottom: .45rem; font-weight: 800; }

.faq-accordion .accordion-item {
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 20px;
}
.faq-accordion .accordion-button {
    border-radius: 20px !important;
    font-weight: 700;
    color: var(--text);
    background: rgba(255,255,255,0.95);
    box-shadow: none !important;
    padding: 1.1rem 1.25rem;
}
.faq-accordion .accordion-button:not(.collapsed) {
    background: rgba(237,245,242,0.8);
    color: var(--text);
}
.faq-accordion .accordion-body {
    color: var(--muted);
    line-height: 1.8;
}

.nav-card {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}
.nav-card p { margin-bottom: 0; }

.crisis-box {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,247,248,0.96));
}
.crisis-card {
    background: linear-gradient(180deg, rgba(255,255,255,1), rgba(255,245,246,0.96));
}
.crisis-card h3 { color: #7c4550; }

.content-highlight,
.soft-note {
    padding: 1.05rem 1.2rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(244,249,247,0.98), rgba(232,242,239,0.98));
    border: 1px solid rgba(95, 144, 136, 0.15);
}
.centered-note {
    max-width: 860px;
    margin-inline: auto;
}
.centered-note p {
    max-width: 720px;
    margin-inline: auto;
}

.footer {
    background: rgba(255,255,255,0.92);
    border-top: 1px solid var(--border);
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1rem;
    justify-content: center;
}
.footer-links a {
    color: var(--primary-dark);
    text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; }

.floating-help-btn {
    position: fixed;
    right: 18px;
    bottom: 18px;
    background: linear-gradient(180deg, #dd7f84, #cb6e73);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 13px 18px;
    border-radius: 999px;
    box-shadow: 0 16px 30px rgba(203, 110, 115, 0.28);
    z-index: 1050;
}
.floating-help-btn:hover { color: #fff; opacity: .96; }

@media (min-width: 992px) {
    .side-stack { position: sticky; top: 108px; }
}

@media (max-width: 991px) {
    .hero-section,
    .inner-hero { padding: 76px 0 58px; }
    .section-padding { padding: 70px 0; }
    .display-soft { font-size: clamp(2.1rem, 8vw, 3rem); }
}

@media (max-width: 576px) {
    .hero-section,
    .inner-hero { padding: 60px 0 44px; }
    .section-padding { padding: 56px 0; }
    .section-title { font-size: 1.65rem; }
    .hero-shell,
    .inner-shell,
    .hero-card,
    .assessment-box,
    .resource-card,
    .quick-card,
    .journey-card,
    .privacy-card,
    .soft-panel,
    .nav-card,
    .content-highlight,
    .info-box,
    .crisis-box,
    .crisis-card { border-radius: 20px; }
    .floating-help-btn {
        right: 12px;
        bottom: 12px;
        padding: 11px 15px;
        font-size: .95rem;
    }
}


.warm-message-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(242,248,245,0.95));
}

.mini-support-card {
    background: rgba(255,255,255,0.88);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
    padding: 1.2rem;
    height: 100%;
}
.mini-support-card h3 {
    font-size: 1.08rem;
    font-weight: 800;
    margin-bottom: .55rem;
}
.mini-support-card p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.75;
}
.mini-support-icon {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .9rem;
    background: linear-gradient(145deg, rgba(223,239,234,0.95), rgba(237,245,242,0.98));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.support-tone-card p {
    min-height: 120px;
}
@media (max-width: 991px) {
    .support-tone-card p { min-height: auto; }
}


.skip-link {
    position: absolute;
    left: 1rem;
    top: -60px;
    background: var(--text);
    color: #fff;
    padding: .8rem 1rem;
    border-radius: 12px;
    z-index: 2000;
    text-decoration: none;
}
.skip-link:focus { top: 1rem; }
.pause-panel {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(241,248,245,0.96));
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
    padding: 1.6rem;
}
.pause-grid, .support-actions { display: grid; gap: 1rem; }
.pause-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pause-step, .support-action {
    background: rgba(255,255,255,0.74);
    border: 1px solid rgba(95,144,136,0.14);
    border-radius: 18px;
    padding: 1rem 1.1rem;
    color: #33524f;
    line-height: 1.65;
}
.support-band {
    background: linear-gradient(180deg, rgba(244,249,247,0.98), rgba(233,243,239,0.96));
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
    padding: 1.5rem;
}
.support-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1rem; }
.article-card {
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    padding: 1.45rem;
    transition: transform .22s ease, box-shadow .22s ease;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.centered-note { max-width: 860px; margin-inline: auto; }
.soft-note { background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(243,248,246,0.94)); }
.avoid-list li::before { content: "–"; background: rgba(201, 115, 120, 0.10); color: #8c5a62; }
.footer-links { display: flex; gap: .9rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { text-decoration: none; }
.nav-card { height: 100%; display: block; text-decoration: none; padding: 1.35rem; }
.nav-card h3 { color: var(--text); font-size: 1.15rem; font-weight: 800; }
.nav-card p { color: var(--muted); margin-bottom: 0; }
.quick-card { display: flex; gap: 1rem; align-items: flex-start; }
.quick-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: .35rem; }
.privacy-card h2, .resource-card h3 { color: var(--text); }
.faq-accordion .accordion-item { margin-bottom: 1rem; overflow: hidden; }
.faq-accordion .accordion-button { font-weight: 700; color: var(--text); border-radius: 18px !important; box-shadow: none !important; }
.faq-accordion .accordion-button:not(.collapsed) { background: rgba(215,235,230,0.55); color: var(--text); }
.alert-warning {
    background: var(--warning-bg);
    border-color: rgba(109, 91, 20, 0.16);
    color: var(--warning-text);
    border-radius: 16px;
}
.alert-danger {
    background: var(--danger-bg);
    border-color: rgba(146, 83, 93, 0.18);
    color: var(--danger-text);
    border-radius: 16px;
}
.floating-help-btn {
    position: fixed; right: 18px; bottom: 18px; background: linear-gradient(180deg, #bb5c67, #9f4a55);
    color: #fff; text-decoration: none; font-weight: 700; padding: 14px 18px; border-radius: 999px;
    box-shadow: 0 12px 24px rgba(80, 31, 38, 0.24); z-index: 1050;
}
.floating-help-btn:hover { color: #fff; opacity: .96; }
a:focus-visible, button:focus-visible, select:focus-visible, .navbar-toggler:focus-visible {
    outline: 3px solid rgba(72, 115, 108, 0.35); outline-offset: 3px; box-shadow: none;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 991px) {
    .section-padding { padding: 72px 0; }
    .pause-grid, .support-actions { grid-template-columns: 1fr; }
    .floating-help-btn { right: 14px; bottom: 14px; padding: 12px 16px; font-size: .95rem; }
}
@media (max-width: 576px) {
    .hero-section, .inner-hero { padding: 72px 0 54px; }
    .hero-shell, .inner-shell, .pause-panel, .support-band, .hero-card, .soft-panel, .journey-card, .content-highlight, .assessment-box, .info-box, .resource-card, .article-card { padding: 1.2rem; border-radius: 22px; }
    .hero-mini-points span, .link-pills a, .calm-tags span { width: 100%; justify-content: center; }
    .display-soft { font-size: 2.1rem; }
    .lead-soft { font-size: 1rem; }
}


/* ===== Visual refinement v4 ===== */
:root {
    --bg-2: #f8fbfa;
    --line-soft: rgba(95, 144, 136, 0.10);
    --glass: rgba(255,255,255,0.72);
    --hero-glow-1: rgba(196, 226, 218, 0.48);
    --hero-glow-2: rgba(222, 235, 241, 0.52);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 8% 12%, rgba(212, 235, 227, 0.28), transparent 22%),
        radial-gradient(circle at 92% 16%, rgba(223, 234, 241, 0.24), transparent 22%),
        linear-gradient(180deg, rgba(255,255,255,0.20), rgba(255,255,255,0));
    z-index: -1;
}

main {
    position: relative;
}

.section-padding {
    position: relative;
}

.section-padding + .section-padding::before,
.section-soft + .section-padding::before,
.bg-white + .section-padding::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1100px, calc(100% - 3rem));
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-soft), transparent);
}

.navbar {
    box-shadow: 0 10px 30px rgba(31, 67, 63, 0.05);
}

.nav-link {
    transition: background-color .22s ease, color .22s ease, transform .22s ease;
}

.nav-link:hover,
.nav-link.active {
    transform: translateY(-1px);
}

.hero-section,
.inner-hero {
    isolation: isolate;
}

.hero-shell,
.inner-shell {
    position: relative;
    background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.60));
    backdrop-filter: blur(10px);
    overflow: hidden;
    border: 1px solid rgba(220, 233, 228, 0.85);
    box-shadow: 0 22px 55px rgba(39, 76, 72, 0.08);
}

.hero-shell::before,
.inner-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 14% 18%, var(--hero-glow-1), transparent 23%),
        radial-gradient(circle at 86% 24%, var(--hero-glow-2), transparent 24%);
    pointer-events: none;
    z-index: -1;
}

.display-soft {
    text-wrap: balance;
}

.section-title {
    position: relative;
    text-wrap: balance;
}

.text-center .section-title::after,
.centered-note h3::after {
    content: "";
    display: block;
    width: 78px;
    height: 4px;
    border-radius: 999px;
    margin: 1rem auto 0;
    background: linear-gradient(90deg, rgba(95,144,136,0.10), rgba(95,144,136,0.48), rgba(95,144,136,0.10));
}

.hero-card,
.info-box,
.assessment-box,
.resource-card,
.crisis-box,
.crisis-card,
.custom-card,
.accordion-item,
.content-highlight,
.topic-card,
.soft-panel,
.quick-card,
.journey-card,
.steps-card,
.nav-card,
.privacy-card,
.pause-panel,
.support-band,
.article-card,
.mini-support-card {
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, background-color .24s ease;
}

.hero-card,
.info-box,
.soft-panel,
.content-highlight,
.pause-panel,
.support-band,
.assessment-box {
    background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(247,251,249,0.94));
}

.hero-card {
    position: relative;
    overflow: hidden;
}

.hero-card::after,
.info-box::after,
.soft-panel::after,
.content-highlight::after,
.pause-panel::after,
.support-band::after,
.assessment-box::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.95), transparent);
}

.topic-card:hover,
.custom-card:hover,
.resource-card:hover,
.quick-card:hover,
.nav-card:hover,
.article-card:hover,
.mini-support-card:hover,
.hero-card:hover,
.info-box:hover,
.soft-panel:hover,
.content-highlight:hover {
    transform: translateY(-6px);
}

.topic-icon,
.quick-icon,
.side-card-icon,
.nav-icon,
.privacy-icon,
.mini-support-icon {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.95),
        0 10px 18px rgba(95,144,136,0.12);
}

.hero-mini-points span,
.link-pills a,
.calm-tags span,
.pause-step,
.support-action {
    background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(250,252,251,0.82));
    box-shadow: 0 8px 20px rgba(39, 76, 72, 0.04);
}

.pause-step,
.support-action {
    position: relative;
    overflow: hidden;
    padding-left: 1.15rem;
}

.pause-step::before,
.support-action::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18%;
    bottom: 18%;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(95,144,136,0.22), rgba(95,144,136,0.55));
}

.content-highlight,
.soft-note {
    border-left: 4px solid rgba(95,144,136,0.28);
}

.faq-accordion .accordion-button {
    font-size: 1.02rem;
}

.faq-accordion .accordion-button::after {
    background-size: 1rem;
    opacity: .72;
}

.footer {
    background: transparent;
    border-top: 0;
    padding-top: 0 !important;
}

.footer-shell {
    background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(244,249,247,0.94));
    border: 1px solid var(--border);
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -10px 30px rgba(39, 76, 72, 0.05);
    padding: 2rem 1.5rem 1.5rem;
}

.footer-brand {
    max-width: 650px;
    margin: 0 auto 1rem;
}

.footer-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: .35rem;
}

.footer-text {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .62rem .9rem;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(95,144,136,0.12);
    border-radius: 999px;
    transition: transform .22s ease, background-color .22s ease, border-color .22s ease;
}

.footer-links a:hover {
    transform: translateY(-2px);
    text-decoration: none;
    background: rgba(215,235,230,0.46);
    border-color: rgba(95,144,136,0.22);
}

.footer-credit {
    color: var(--muted);
}

.footer-credit a {
    font-weight: 700;
    text-underline-offset: 3px;
}

.floating-help-btn {
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.26);
}

@media (max-width: 991px) {
    .hero-shell,
    .inner-shell {
        padding: 1.35rem;
    }
    .footer-shell {
        border-radius: 24px 24px 0 0;
        padding-inline: 1rem;
    }
}

@media (max-width: 576px) {
    .footer-links a {
        width: 100%;
    }
    .footer-shell {
        border-radius: 22px 22px 0 0;
    }
}


/* ===== Layout refinement v5 ===== */
.page-balance-row > [class*="col-lg-"] { display: flex; }
.page-balance-row > [class*="col-lg-"] > * { width: 100%; }
.balanced-side-grid { grid-template-columns: 1fr; }
.fill-card {
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.side-link-card .link-pills { margin-top: 1rem; }
.compact-links { gap: .55rem; }
.compact-links a { padding: .62rem .9rem; font-size: .95rem; }
.compact-note-list span { padding-block: .72rem; }
.quick-stack .quick-card { min-height: 150px; }
.compact-cta-panel { max-width: 760px; }
@media (min-width: 992px) {
    .balanced-side-grid.family-side-grid .fill-card { min-height: 168px; }
    .balanced-side-grid .fill-card { min-height: 156px; }
}
@media (max-width: 991px) {
    .page-balance-row > [class*="col-lg-"] { display: block; }
    .quick-stack .quick-card { min-height: auto; }
}


.paired-card {
    height: 100%;
    padding: 1.45rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(244,249,247,0.92));
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}
.paired-card-soft-danger {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,245,245,0.95));
}
.paired-title {
    font-size: clamp(1.65rem, 2.4vw, 2.3rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
    font-weight: 800;
    margin-bottom: 1rem;
}
.paired-copy {
    color: var(--muted);
    line-height: 1.82;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}
.large-list li {
    font-size: 1.02rem;
}
.mini-note-stack {
    display: grid;
    gap: .75rem;
    margin-top: 1rem;
}
.mini-note {
    padding: .9rem 1rem;
    border-radius: 16px;
    background: rgba(247, 251, 249, 0.92);
    border: 1px solid rgba(95,144,136,0.14);
    color: #436260;
    line-height: 1.65;
}
.avoid-list li::before {
    content: "−";
    background: rgba(201, 110, 115, 0.10);
    color: #9b5d66;
    font-size: 1rem;
}
@media (max-width: 991px) {
    .paired-card {
        padding: 1.2rem;
        border-radius: 22px;
    }
    .paired-title {
        font-size: clamp(1.45rem, 6vw, 2rem);
    }
}
