:root {
    --gold: #f3c84b;
    --gold-strong: #ffd96a;
    --teal: #58c9bf;
    --coral: #ef927a;
    --bg: #07111b;
    --surface: #0e1a27;
    --surface-strong: #132231;
    --card: rgba(14, 26, 39, 0.92);
    --card-border: rgba(255, 255, 255, 0.11);
    --text: #f7f9fc;
    --text-muted: #c7d0dc;
    --text-soft: #9eabb9;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    background: var(--bg) !important;
    color: var(--text) !important;
    font-family: Inter, Arial, sans-serif !important;
    overflow-x: hidden;
}

.bg-scene {
    background: var(--bg) !important;
}

.bg-gradient {
    background: #07111b !important;
}

.bg-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) !important;
    background-size: 36px 36px !important;
    opacity: 0.65;
}

.site-wrap {
    min-height: 100vh;
}

.site-header {
    position: sticky !important;
    top: 0;
    z-index: 900;
    padding: 0 !important;
    text-align: left !important;
    background: rgba(7, 17, 27, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.site-header::after {
    display: none !important;
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand-link {
    min-width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--text);
    text-decoration: none;
}

.brand-avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 50%;
    border: 2px solid rgba(243, 200, 75, 0.78);
    background-color: #07111b;
    background-image: url("kay-avatar.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 0 4px rgba(243, 200, 75, 0.08);
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-name {
    color: var(--text);
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.1;
}

.brand-tagline {
    color: var(--text-soft);
    font-size: 0.72rem;
    line-height: 1.2;
}

.site-nav {
    width: auto !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
}

.site-nav > a,
.nav-tools > summary {
    min-height: 42px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 9px 12px !important;
    border-radius: 6px !important;
    color: var(--text-muted) !important;
    font-size: 0.85rem !important;
    font-weight: 650 !important;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    list-style: none;
    transition: color 0.2s, background 0.2s;
}

.site-nav > a:hover,
.site-nav > a[aria-current="page"],
.nav-tools > summary:hover,
.nav-tools[open] > summary,
.nav-tools.is-current > summary {
    color: var(--text) !important;
    background: rgba(243, 200, 75, 0.12) !important;
}

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

.site-nav > a[aria-current="page"] {
    box-shadow: inset 0 -2px 0 var(--gold);
}

.nav-tools {
    position: relative;
}

.nav-tools > summary::-webkit-details-marker {
    display: none;
}

.nav-tools > summary::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.nav-tools-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 235px;
    padding: 8px;
    display: grid;
    gap: 3px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: #101e2c;
    box-shadow: var(--shadow);
}

.nav-tools-menu a {
    padding: 11px 12px;
    border-radius: 5px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.nav-tools-menu a:hover,
.nav-tools-menu a[aria-current="page"] {
    color: var(--text);
    background: rgba(88, 201, 191, 0.11);
}

.page {
    width: min(100%, 1180px) !important;
    max-width: 1180px !important;
    padding: 48px 24px 88px !important;
}

.page > h1,
.page > .subtitle,
.page > .post-meta,
.page > .nav-wrap {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

h1 {
    color: var(--text) !important;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    letter-spacing: 0 !important;
}

.page > h1 {
    font-size: 2.6rem !important;
    line-height: 1.12 !important;
}

.subtitle,
.post-meta {
    color: var(--text-soft) !important;
}

.glass-card,
.post-card {
    border: 1px solid var(--card-border) !important;
    border-radius: 8px !important;
    background: var(--card) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.025);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.glass-card::before,
.post-card::before {
    background: linear-gradient(90deg, var(--gold), var(--teal), transparent 78%) !important;
    opacity: 0.55;
}

.glass-card p,
.glass-card li,
.post-excerpt,
.content-section p,
.content-section li,
.page p,
.page li {
    color: var(--text-muted) !important;
}

.glass-card p,
.glass-card li,
.content-section p,
.content-section li {
    font-size: 1rem !important;
    line-height: 1.78 !important;
}

.glass-card h2,
.glass-card h3,
.content-section h2,
.content-section h3 {
    color: var(--text) !important;
}

.glass-card h2::before {
    background: var(--gold) !important;
}

.glass-card a,
.content-section a {
    color: var(--gold-strong) !important;
    text-underline-offset: 3px;
}

.tip-box {
    border: 0 !important;
    border-left: 3px solid var(--gold) !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 4px 0 4px 18px !important;
}

.nav-btn,
.btn-calc,
.signup-form button,
.hero-primary,
.article-signup button,
.continue-link {
    border: 0 !important;
    border-radius: 6px !important;
    background: var(--gold) !important;
    color: #111820 !important;
    font-weight: 800 !important;
    box-shadow: none !important;
}

.nav-btn:hover,
.btn-calc:hover,
.signup-form button:hover,
.hero-primary:hover,
.article-signup button:hover,
.continue-link:hover {
    background: var(--gold-strong) !important;
    transform: translateY(-1px);
}

.home-page {
    padding-top: 0 !important;
}

.home-hero {
    min-height: 505px;
    display: grid;
    align-content: center;
    max-width: 900px;
    padding: 72px 0 58px;
}

.eyebrow {
    margin-bottom: 14px !important;
    color: var(--teal) !important;
    font-size: 0.78rem !important;
    font-weight: 800;
    letter-spacing: 0.08em !important;
    text-transform: uppercase;
}

.home-hero h1 {
    margin: 0 0 22px;
    color: var(--text) !important;
    font-size: 4rem !important;
    font-weight: 900;
    line-height: 1;
    text-align: left !important;
}

.home-hero .hero-copy {
    max-width: 720px;
    margin: 0 0 28px;
    color: var(--text-muted) !important;
    font-size: 1.18rem !important;
    line-height: 1.72 !important;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-primary,
.hero-secondary {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.hero-secondary {
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text);
    background: transparent;
}

.hero-secondary:hover {
    border-color: var(--teal);
    background: rgba(88, 201, 191, 0.08);
}

.start-section,
.tool-section {
    padding: 56px 0;
}

.start-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-heading {
    max-width: 740px;
    margin-bottom: 26px;
}

.section-heading h2 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 2rem;
    line-height: 1.2;
}

.section-heading p {
    color: var(--text-muted) !important;
    line-height: 1.7;
}

.path-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.path-card {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text);
    background: rgba(14, 26, 39, 0.76);
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.path-card:hover {
    transform: translateY(-3px);
    border-color: rgba(243, 200, 75, 0.42);
    background: var(--surface-strong);
}

.path-card span {
    color: var(--teal);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.path-card strong {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.35;
}

.path-card small {
    color: var(--text-soft);
    font-size: 0.82rem;
    line-height: 1.5;
}

.tool-section {
    scroll-margin-top: 82px;
}

.tool-section .currency-row {
    margin-top: 12px;
}

.resource-section {
    width: min(100% - 48px, 1180px) !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 56px 0 !important;
    font-family: inherit !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.resource-section h2 {
    color: var(--text) !important;
    font-size: 1.8rem !important;
}

.resource-section > p {
    max-width: 760px;
    margin: 0 0 22px;
    color: var(--text-muted) !important;
    line-height: 1.72;
}

.resource-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 20px;
    list-style: none;
}

.resource-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted) !important;
    text-decoration: none !important;
}

.resource-links a:hover {
    color: var(--gold-strong) !important;
}

.email-signup,
.article-signup {
    width: min(100% - 48px, 960px);
    margin: 32px auto 64px !important;
    padding: 36px;
    border: 1px solid rgba(243, 200, 75, 0.25);
    border-radius: 8px !important;
    background: #101e2c !important;
    text-align: left !important;
}

.email-signup h2,
.article-signup h2 {
    margin-bottom: 10px;
    color: var(--text) !important;
    font-size: 1.65rem !important;
}

.email-signup p,
.article-signup p {
    color: var(--text-muted) !important;
}

.signup-form,
.article-signup form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px !important;
    justify-content: stretch !important;
}

.signup-form input[type="email"],
.article-signup input[type="email"] {
    min-height: 46px;
    width: 100%;
    padding: 11px 13px;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 6px !important;
    color: var(--text) !important;
    background: #07111b !important;
    font: inherit;
}

.signup-form button,
.article-signup button {
    min-height: 46px;
    padding: 11px 18px !important;
    white-space: nowrap;
}

.signup-note {
    margin-top: 10px !important;
    color: var(--text-soft) !important;
    font-size: 0.78rem !important;
}

.blog-page {
    max-width: 1180px !important;
}

.blog-hero {
    max-width: 760px;
    margin-bottom: 34px;
}

.blog-hero h1 {
    margin-bottom: 14px;
    text-align: left !important;
    font-size: 3.25rem !important;
}

.blog-hero p {
    color: var(--text-muted) !important;
    font-size: 1.05rem !important;
    line-height: 1.7 !important;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    padding-bottom: 4px;
    overflow-x: auto;
}

.filter-button {
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid var(--card-border);
    border-radius: 6px;
    color: var(--text-muted);
    background: transparent;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 750;
    white-space: nowrap;
    cursor: pointer;
}

.filter-button:hover,
.filter-button.is-active {
    border-color: rgba(243, 200, 75, 0.4);
    color: var(--text);
    background: rgba(243, 200, 75, 0.1);
}

.post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

.post-card {
    min-height: 260px;
    display: flex !important;
    flex-direction: column;
    padding: 24px !important;
}

.post-card[hidden] {
    display: none !important;
}

.post-title {
    color: var(--text) !important;
    font-size: 1.08rem !important;
}

.post-excerpt {
    flex: 1;
    font-size: 0.9rem !important;
    line-height: 1.68 !important;
}

.post-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    color: var(--text-soft);
    font-size: 0.74rem;
}

.post-read-more {
    color: var(--gold-strong) !important;
}

.article-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1200;
    width: 0;
    height: 3px;
    background: var(--gold);
    transition: width 0.08s linear;
}

.article-page-enhanced {
    max-width: 1180px !important;
}

.article-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 820px);
    justify-content: center;
    align-items: start;
    gap: 28px;
}

.article-content {
    min-width: 0;
}

.article-toc {
    position: sticky;
    top: 94px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 16px;
    border-left: 2px solid rgba(243, 200, 75, 0.45);
}

.toc-title {
    margin-bottom: 10px;
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.article-toc nav {
    display: grid;
    gap: 3px;
}

.article-toc a {
    padding: 6px 8px;
    border-radius: 4px;
    color: var(--text-soft);
    font-size: 0.78rem;
    line-height: 1.35;
    text-decoration: none;
}

.article-toc a:hover {
    color: var(--text);
    background: rgba(88, 201, 191, 0.08);
}

.article-signup {
    width: 100%;
    margin: 24px 0 !important;
    padding: 28px;
}

.article-signup .signup-kicker {
    margin-bottom: 7px !important;
    color: var(--teal) !important;
    font-size: 0.74rem !important;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.related-guides {
    margin: 30px 0 8px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.related-guides h2 {
    margin-bottom: 16px;
    color: var(--text);
    font-size: 1.45rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.related-card {
    min-height: 145px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 17px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text);
    background: rgba(14, 26, 39, 0.72);
    text-decoration: none;
}

.related-card:hover {
    border-color: rgba(88, 201, 191, 0.45);
    background: var(--surface-strong);
}

.related-card small {
    color: var(--teal);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.related-card strong {
    font-size: 0.9rem;
    line-height: 1.42;
}

.article-end-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.continue-link,
.pinterest-link {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.pinterest-link {
    border: 1px solid rgba(239, 146, 122, 0.42);
    color: #ffd6cc;
    background: rgba(239, 146, 122, 0.08);
}

.pinterest-link:hover {
    background: rgba(239, 146, 122, 0.14);
}

.site-footer {
    margin-top: 0 !important;
    padding: 40px 24px !important;
    background: #08131f;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.footer-links a {
    color: var(--text-soft) !important;
}

.footer-copy {
    color: #7f8c9a !important;
}

#ck-banner p {
    color: var(--text-muted) !important;
}

@media (max-width: 940px) {
    .header-inner {
        min-height: 0;
        padding: 11px 0 10px;
        display: grid;
        gap: 8px;
    }

    .brand-link {
        justify-self: center;
    }

    .site-nav {
        width: 100% !important;
        justify-content: center !important;
    }

    .article-shell {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .article-toc {
        position: static;
        max-height: none;
        padding: 14px 0 14px 14px;
    }

    .article-toc nav {
        display: flex;
        gap: 5px;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .article-toc a {
        min-width: 180px;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
}

@media (max-width: 720px) {
    .header-inner {
        width: min(100% - 20px, 680px);
    }

    .brand-tagline {
        display: none;
    }

    .site-nav {
        justify-content: flex-start !important;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .site-nav::-webkit-scrollbar {
        display: none;
    }

    .site-nav > a,
    .nav-tools > summary {
        min-width: max-content;
        min-height: 44px;
        padding: 9px 11px !important;
    }

    .nav-tools-menu {
        position: fixed;
        top: 112px;
        right: 12px;
        left: 12px;
        width: auto;
    }

    .page {
        padding: 36px 16px 72px !important;
    }

    .page > h1 {
        font-size: 2rem !important;
    }

    .home-hero {
        min-height: 465px;
        padding: 58px 0 48px;
    }

    .home-hero h1 {
        font-size: 2.75rem !important;
    }

    .home-hero .hero-copy {
        font-size: 1.04rem !important;
    }

    .path-grid,
    .post-grid,
    .related-grid,
    .resource-links {
        grid-template-columns: 1fr !important;
    }

    .path-card {
        min-height: 145px;
    }

    .blog-hero h1 {
        font-size: 2.35rem !important;
    }

    .post-card {
        min-height: 0;
    }

    .email-signup,
    .article-signup {
        width: min(100% - 32px, 960px);
        padding: 24px 20px;
    }

    .article-signup {
        width: 100%;
    }

    .signup-form,
    .article-signup form {
        grid-template-columns: 1fr !important;
    }

    .article-end-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .resource-section {
        width: min(100% - 32px, 1180px) !important;
    }
}

@media (max-width: 430px) {
    .brand-avatar {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .brand-name {
        font-size: 0.95rem;
    }

    .home-hero h1 {
        font-size: 2.35rem !important;
    }

    .hero-actions {
        display: grid;
    }

    .hero-primary,
    .hero-secondary {
        width: 100%;
    }

    .glass-card {
        padding: 22px 18px !important;
    }

    #ck-banner {
        padding: 12px 14px !important;
    }
}
