:root {
    --ink: #102033;
    --soft: #f5f8fb;
    --blue: #2563eb;
    --amber: #f59e0b;
    --rose: #e11d48;
    --teal: #0f766e;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, .16), transparent 28rem),
        linear-gradient(180deg, #f8fbff 0%, #eef6f5 48%, #f8fbff 100%);
    font-family: Arial, "Helvetica Neue", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100;
    padding: .65rem .85rem;
    color: #ffffff;
    background: #0f766e;
    border-radius: 8px;
    font-weight: 900;
    transform: translateY(-140%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid rgba(148, 163, 184, .28);
    backdrop-filter: blur(16px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    font-size: 1.12rem;
    font-weight: 900;
    color: #0f172a;
}

.brand-logo {
    display: block;
    width: auto;
    max-width: 160px;
    height: 48px;
    object-fit: contain;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--blue));
    border-radius: 8px;
    font-size: .82rem;
    letter-spacing: 0;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
}

.nav-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    margin: 4px auto;
    background: #0f172a;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: .65rem .85rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #334155;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active,
.nav-dropdown.open .dropdown-button {
    color: var(--teal);
    background: rgba(15, 118, 110, .09);
}

.nav-cta {
    color: #ffffff;
    background: #0f766e;
}

.nav-cta:hover,
.nav-cta.active {
    color: #ffffff;
    background: #115e59;
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: none;
    width: 250px;
    padding: .55rem;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, .26);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .13);
}

.dropdown-panel-wide {
    width: min(620px, calc(100vw - 32px));
}

.nav-dropdown.open .dropdown-panel {
    display: grid;
}

.dropdown-panel a {
    padding: .7rem .75rem;
    border-radius: 7px;
    color: #334155;
    font-weight: 700;
}

.dropdown-panel a strong,
.dropdown-panel a small {
    display: block;
}

.dropdown-panel a small {
    margin-top: .18rem;
    color: #64748b;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.35;
}

.dropdown-panel a:hover {
    background: #f1f5f9;
    color: var(--teal);
}

.dropdown-title {
    padding: .45rem .65rem;
    color: #64748b;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .25rem;
}

.site-main {
    padding: 22px 0 40px;
}

.page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}

.content-area,
.sidebar-area {
    min-width: 0;
}

.sidebar-area {
    position: sticky;
    top: 92px;
}

.ad-slot {
    display: grid;
    place-items: center;
    min-height: 96px;
    margin-bottom: 22px;
    color: #64748b;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .82), rgba(241, 245, 249, .92)),
        repeating-linear-gradient(45deg, rgba(15, 118, 110, .06) 0 10px, transparent 10px 20px);
    border: 1px dashed #94a3b8;
    border-radius: 8px;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.ad-sidebar {
    min-height: 280px;
}

.ad-inline {
    min-height: 90px;
    margin: 24px 0;
}

.breadcrumb-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    margin-bottom: 14px;
    color: #64748b;
    font-size: .88rem;
    font-weight: 800;
}

.breadcrumb-nav a {
    color: #0f766e;
}

.breadcrumb-nav a::after {
    content: "/";
    margin-left: .45rem;
    color: #94a3b8;
}

.hero-panel,
.home-hero,
.tool-hero,
.seo-panel,
.quick-box,
.form-panel,
.result-box {
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.home-hero {
    padding: clamp(1.4rem, 5vw, 3rem);
    overflow: hidden;
}

.home-hero-content {
    max-width: 820px;
}

.home-hero h1 {
    margin: .8rem 0 .75rem;
    color: #0f172a;
    font-size: clamp(2.25rem, 6vw, 4.9rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.home-hero p {
    margin: 0;
    color: #475569;
    font-size: 1.08rem;
}

.hero-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    max-width: 680px;
    margin-top: 1.35rem;
}

.hero-search .form-control {
    min-height: 54px;
}

.quick-stats {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.2rem;
}

.quick-stats span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: .45rem .75rem;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 800;
}

.quick-stats strong {
    margin-right: .25rem;
    color: #0f766e;
}

.home-section {
    margin-top: 2rem;
}

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

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

.category-card,
.feature-card,
.recent-card,
.newsletter-panel {
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.category-card {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-height: 100px;
    padding: 1rem;
    transition: transform .18s ease, border-color .18s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: rgba(15, 118, 110, .34);
}

.category-card strong,
.category-card small {
    display: block;
}

.category-card strong {
    color: #0f172a;
    font-size: 1.05rem;
}

.category-card small {
    color: #64748b;
    font-weight: 800;
}

.category-card.is-disabled {
    opacity: .72;
}

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

.recent-card {
    display: block;
    padding: 1rem;
    transition: transform .18s ease, border-color .18s ease;
}

.recent-card:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 118, 110, .34);
}

.recent-card strong,
.recent-card span {
    display: block;
}

.recent-card strong {
    color: #0f172a;
    font-size: 1rem;
}

.recent-card span {
    width: fit-content;
    margin: .45rem 0;
    padding: .15rem .5rem;
    color: #0f766e;
    background: rgba(15, 118, 110, .1);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 900;
}

.recent-card p,
.feature-card p,
.newsletter-panel p {
    margin: 0;
    color: #64748b;
}

.feature-card {
    padding: 1.1rem;
}

.feature-icon {
    display: inline-grid;
    place-items: center;
    min-width: 50px;
    height: 38px;
    margin-bottom: .9rem;
    padding: 0 .55rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--blue));
    border-radius: 8px;
    font-size: .76rem;
    font-weight: 900;
}

.feature-card h3 {
    margin: 0 0 .35rem;
    color: #0f172a;
    font-size: 1.05rem;
}

.newsletter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
    gap: 18px;
    align-items: end;
    padding: clamp(1rem, 3vw, 1.5rem);
}

.newsletter-panel h2 {
    margin: .6rem 0 .3rem;
}

.newsletter-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(240px, .7fr);
    gap: 24px;
    align-items: center;
    padding: clamp(1.25rem, 4vw, 2.4rem);
    overflow: hidden;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: .25rem .65rem;
    color: #0f766e;
    background: rgba(15, 118, 110, .11);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hero-panel h1,
.tool-hero h1 {
    margin: .75rem 0 .65rem;
    color: #0f172a;
    font-size: clamp(2rem, 5vw, 4.2rem);
    line-height: 1.04;
    letter-spacing: 0;
}

.hero-panel p,
.tool-hero p {
    max-width: 680px;
    margin: 0;
    color: #475569;
    font-size: 1.05rem;
}

.hero-stats {
    display: grid;
    gap: 12px;
}

.stat-box {
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.stat-box strong {
    display: block;
    color: var(--teal);
    font-size: 1.7rem;
    line-height: 1;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin: 2rem 0 1rem;
}

.section-head h2,
.section-head h3 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.tool-card {
    display: flex;
    flex-direction: column;
    min-height: 210px;
    padding: 1.15rem;
    color: #0f172a;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: rgba(15, 118, 110, .38);
    box-shadow: 0 22px 42px rgba(15, 23, 42, .12);
}

.tool-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: .85rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--blue));
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 900;
}

.tool-card h3,
.tool-card h5,
.tool-card h6 {
    margin: 0 0 .45rem;
    font-size: 1.02rem;
    line-height: 1.25;
}

.tool-card p {
    margin: 0 0 1rem;
    color: #64748b;
}

.tool-card .btn {
    margin-top: auto;
}

.tool-hero {
    padding: clamp(1.2rem, 3vw, 2rem);
    margin-bottom: 22px;
}

.tool-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
}

.search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px auto;
    gap: 14px;
    align-items: end;
}

.form-panel {
    padding: clamp(1rem, 3vw, 1.5rem);
}

.form-panel .btn {
    margin-top: .35rem;
}

.result-box {
    padding: clamp(1rem, 3vw, 1.5rem);
    background: linear-gradient(135deg, #ecfeff, #ffffff 58%, #f8fafc);
    border-color: rgba(15, 118, 110, .26);
}

.alert-box {
    margin-bottom: 18px;
    padding: 1rem;
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-weight: 700;
}

.alert-box p {
    margin: .25rem 0;
}

.result-box h4,
.result-box h5 {
    margin: .25rem 0;
    color: #0f172a;
}

.result-value {
    display: block;
    overflow-wrap: anywhere;
    color: var(--teal);
    font-size: clamp(1.55rem, 4vw, 2.4rem);
    font-weight: 900;
    line-height: 1.12;
}

.finance-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 1rem;
}

.finance-result-item {
    padding: .9rem;
    background: rgba(255, 255, 255, .78);
    border: 1px solid #dbe3ee;
    border-radius: 8px;
}

.finance-result-item span,
.finance-result-item strong {
    display: block;
}

.finance-result-item span {
    color: #64748b;
    font-size: .88rem;
    font-weight: 800;
}

.finance-result-item strong {
    overflow-wrap: anywhere;
    color: #0f766e;
    font-size: clamp(1.15rem, 3vw, 1.65rem);
    line-height: 1.15;
}

.help-panel,
.info-panel,
.seo-panel {
    padding: clamp(1rem, 3vw, 1.5rem);
}

.help-panel h2,
.help-panel h3,
.help-panel h4,
.info-panel h2,
.info-panel h3,
.info-panel h4,
.seo-panel h2,
.seo-panel h3 {
    margin-top: 0;
}

.help-panel li,
.info-panel li,
.seo-panel li {
    margin-bottom: .4rem;
}

.info-panel {
    margin-top: 22px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.info-panel h2 {
    margin-bottom: .8rem;
    color: #0f172a;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.tool-introduction p,
.info-panel > p {
    margin: 0 0 1rem;
    color: #475569;
}

.step-list {
    display: grid;
    gap: .65rem;
    counter-reset: steps;
    padding-left: 0;
    list-style: none;
}

.step-list li {
    position: relative;
    min-height: 42px;
    padding: .72rem .85rem .72rem 3rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 800;
}

.step-list li::before {
    counter-increment: steps;
    content: counter(steps);
    position: absolute;
    left: .75rem;
    top: .62rem;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: #ffffff;
    background: #0f766e;
    border-radius: 50%;
    font-size: .82rem;
}

.formula-list {
    display: grid;
    gap: .65rem;
    padding-left: 0;
    list-style: none;
}

.formula-list li {
    padding: .75rem .85rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 800;
}

.example-box {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.example-box h3 {
    margin: 0 0 .35rem;
    color: #0f172a;
    font-size: 1rem;
}

.example-box p {
    margin: 0;
    color: #475569;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
    padding-left: 0;
    list-style: none;
}

.feature-list li {
    padding: .75rem .85rem;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 800;
}

.faq-panel details {
    padding: .9rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.faq-panel details:last-child {
    border-bottom: 0;
}

.faq-panel summary {
    color: #0f172a;
    font-weight: 900;
    cursor: pointer;
}

.faq-panel p {
    margin: .6rem 0 0;
    color: #475569;
}

.tool-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 22px;
    padding: 1rem;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 8px;
}

.copy-status {
    min-height: 20px;
    color: #0f766e;
    font-size: .9rem;
    font-weight: 800;
}

.mini-tool-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mini-tool-card {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-width: 0;
    padding: .9rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: transform .18s ease, border-color .18s ease;
}

.mini-tool-card:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 118, 110, .38);
}

.mini-tool-card strong,
.mini-tool-card small {
    display: block;
}

.mini-tool-card strong {
    color: #0f172a;
    line-height: 1.25;
}

.mini-tool-card small {
    color: #64748b;
    font-weight: 800;
}

.pagination-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.25rem;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 40px;
    padding: .55rem .75rem;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-weight: 900;
}

.page-link.active {
    color: #ffffff;
    background: #0f766e;
    border-color: #0f766e;
}

.page-link.disabled {
    color: #94a3b8;
    background: #f8fafc;
}

.empty-state {
    padding: 1rem;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 800;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.25rem;
}

.quick-box {
    display: grid;
    gap: .5rem;
    padding: 1rem;
}

.quick-box a {
    padding: .7rem .75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 800;
}

.quick-box a:hover {
    color: var(--teal);
    border-color: rgba(15, 118, 110, .32);
}

.site-footer {
    padding: 34px 0 18px;
    color: #475569;
    background: #ffffff;
    border-top: 1px solid rgba(148, 163, 184, .24);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.footer-brand {
    margin-bottom: .8rem;
}

.footer-grid p {
    max-width: 280px;
    margin: 0;
}

.footer-grid nav {
    display: grid;
    gap: .45rem;
}

.footer-grid h2 {
    margin: 0 0 .35rem;
    color: #0f172a;
    font-size: .95rem;
}

.footer-grid a {
    font-weight: 800;
    color: #475569;
}

.footer-grid a:hover {
    color: #0f766e;
}

.footer-bottom {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.footer-bottom p {
    margin: 0;
    color: #64748b;
    font-weight: 800;
}

.static-content p {
    margin: 0 0 1rem;
    color: #475569;
    font-size: 1rem;
}

.static-content a {
    color: var(--teal-dark);
    font-weight: 800;
}

.static-section {
    padding-top: 1.15rem;
    margin-top: 1.15rem;
    border-top: 1px solid rgba(148, 163, 184, .24);
}

.static-section h2 {
    margin-bottom: .55rem;
    font-size: clamp(1.1rem, 2.3vw, 1.35rem);
}

.static-section ul {
    margin: 0;
    padding-left: 1.15rem;
    color: #475569;
}

.static-section li {
    padding-left: .15rem;
}

.static-content > :last-child,
.static-section > :last-child {
    margin-bottom: 0;
}

.qr-output svg {
    width: min(220px, 100%);
    height: auto;
}

@media (max-width: 980px) {
    .nav-toggle {
        display: inline-block;
    }

    .nav-menu {
        position: absolute;
        top: 68px;
        left: 16px;
        right: 16px;
        display: none;
        padding: .7rem;
        background: #ffffff;
        border: 1px solid rgba(148, 163, 184, .28);
        border-radius: 8px;
        box-shadow: 0 18px 45px rgba(15, 23, 42, .13);
    }

    .nav-menu.open {
        display: grid;
    }

    .nav-link,
    .dropdown-button {
        width: 100%;
        justify-content: flex-start;
    }

    .dropdown-panel {
        position: static;
        width: 100%;
        margin: .25rem 0 .5rem;
        box-shadow: none;
    }

    .dropdown-panel-wide {
        width: 100%;
    }

    .dropdown-grid {
        grid-template-columns: 1fr;
    }

    .page-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-area {
        position: static;
    }

    .ad-sidebar {
        min-height: 120px;
    }

    .hero-panel {
        grid-template-columns: 1fr;
    }

    .tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-grid,
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .newsletter-panel,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(100% - 22px, 1120px);
    }

    .site-main {
        padding-top: 14px;
    }

    .hero-panel,
    .home-hero,
    .tool-hero,
    .form-panel,
    .result-box,
    .help-panel,
    .info-panel,
    .seo-panel {
        border-radius: 8px;
    }

    .tool-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tool-card {
        min-height: 184px;
    }

    .section-head {
        display: block;
    }

    .mini-tool-grid {
        grid-template-columns: 1fr;
    }

    .search-form {
        grid-template-columns: 1fr;
    }

    .finance-result-grid {
        grid-template-columns: 1fr;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .hero-search,
    .newsletter-form,
    .newsletter-panel,
    .category-grid,
    .feature-grid,
    .recent-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .quick-stats {
        display: grid;
    }
}
