/* =========================================================
   HOMEPAGE
   Public marketing homepage styles. This file intentionally
   keeps brand-specific hero/marketing visuals separate from
   product workspace CSS.

   Sections:
   01. Brand tokens and base layout
   02. Topbar
   ========================================================= */

/* ---------------------------------------------------------
   01. Brand tokens and base layout
   --------------------------------------------------------- */
:root {
    --brand-blue: #007bff;
    --brand-blue-deep: #0656c7;
    --brand-ink: #0f172a;
    --brand-slate: #475569;
    --brand-line: #dbe7f6;
    --brand-surface: #f4f8fd;
    --brand-surface-strong: #eaf2fc;
    --brand-white: #ffffff;
    --brand-shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
}

body {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background: var(
        --app-page-wash,
        radial-gradient(circle at top left, rgba(0, 123, 255, 0.10), transparent 32%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 42%, #f7fbff 100%)
    );
    color: var(--brand-ink);
}

main .container,
footer .container,
.topbar-inner {
    max-width: 1320px;
}

/* ---------------------------------------------------------
   02. Topbar
   --------------------------------------------------------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 123, 255, 0.08);
    padding: 14px 28px;
}

.topbar-inner {
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 28px;
}

.topbar h4 a {
    color: inherit;
    text-decoration: none;
}

.topbar-brand {
    font-size: 1.45rem;
    letter-spacing: -0.03em;
}

.topbar-brand-wrap {
    display: flex;
    align-items: center;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
}

#homepage-language-switch {
    min-width: 0;
    width: 104px;
    border-radius: 999px;
    border: 1px solid rgba(0, 123, 255, 0.16);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 14px;
    font-size: 0.96rem;
    color: var(--brand-blue-deep);
    font-weight: 700;
    appearance: none;
    outline: none;
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.06);
    text-align: center;
    text-align-last: center;
    line-height: 1.2;
}

#homepage-language-switch option {
    color: var(--brand-blue-deep);
    background-color: #fff;
}

.topbar-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    padding: 11px 18px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.topbar-cta:hover,
.home-btn:hover,
.submit-button:hover {
    transform: translateY(-1px);
}

.topbar-cta-secondary {
    background: rgba(255, 255, 255, 0.88);
    color: var(--brand-blue);
    border: 1px solid rgba(0, 123, 255, 0.24);
    box-shadow: 0 10px 24px rgba(0, 123, 255, 0.08);
}

.topbar-cta-secondary:hover {
    color: var(--brand-blue-deep);
    border-color: rgba(0, 123, 255, 0.42);
}

.topbar-cta-primary {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-deep) 100%);
    color: var(--brand-white);
    border: 1px solid rgba(0, 123, 255, 0.12);
    box-shadow: 0 14px 30px rgba(0, 123, 255, 0.18);
}

.topbar-cta-primary:hover {
    color: var(--brand-white);
    box-shadow: 0 18px 34px rgba(0, 123, 255, 0.22);
}

main {
    overflow-x: clip;
}

.home-hero-shell {
    padding: 70px 0 42px;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 48px;
    align-items: center;
}

.home-hero-grid-marketing {
    align-items: center;
}

.home-badge,
.home-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(0, 123, 255, 0.10);
    color: var(--brand-blue-deep);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-hero-title {
    margin: 20px 0 18px;
    max-width: 720px;
    width: 100%;
    font-size: clamp(3.15rem, 4vw, 5rem);
    line-height: 1.03;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.home-hero-subtitle {
    max-width: 640px;
    margin: 0;
    color: var(--brand-slate);
    font-size: 1.18rem;
    line-height: 1.72;
}

.home-hero-actions,
.home-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 14px 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, filter 0.2s ease;
}

.home-btn-primary {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-deep) 100%);
    color: var(--brand-white);
    border-color: rgba(0, 123, 255, 0.12);
    box-shadow: 0 18px 36px rgba(0, 123, 255, 0.24);
}

.home-btn-primary:hover {
    color: var(--brand-white);
    box-shadow: 0 22px 42px rgba(0, 123, 255, 0.28);
}

.home-btn-secondary {
    background: rgba(255, 255, 255, 0.88);
    color: var(--brand-blue);
    border-color: rgba(0, 123, 255, 0.32);
    box-shadow: 0 14px 30px rgba(0, 123, 255, 0.10);
}

.home-btn-secondary:hover {
    color: var(--brand-blue-deep);
    border-color: rgba(0, 123, 255, 0.46);
    box-shadow: 0 16px 32px rgba(0, 123, 255, 0.14);
}

.home-proof-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: stretch;
    margin-top: 46px;
}

.home-proof-card {
    padding: 38px 42px;
    border-radius: 24px;
    border: 1px solid rgba(0, 123, 255, 0.12);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 28px 58px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.home-proof-card-primary {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(234, 242, 252, 0.95) 100%);
}

.home-proof-card-kicker,
.home-strength-kicker,
.home-insight-category,
.home-article-meta {
    display: inline-block;
    color: var(--brand-blue-deep);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-proof-card h2 {
    margin: 16px 0 14px;
    font-size: clamp(1.95rem, 4vw, 2.8rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.home-proof-card p {
    margin: 0;
    color: var(--brand-slate);
    line-height: 1.82;
    font-size: 1.02rem;
}

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

.home-proof-card-inline {
    max-width: none;
}

.home-proof-card-inline h2 {
    max-width: none;
    margin-bottom: 10px;
    width: 100%;
    font-size: clamp(1.6rem, 2.2vw, 2.35rem);
    line-height: 1.05;
}

.home-proof-card-inline p {
    max-width: none;
    font-size: 1rem;
    line-height: 1.72;
}

.home-proof-grid-inline {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.home-proof-point {
    min-height: 0;
    padding: 26px 24px 24px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--brand-line);
    border-radius: 18px;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.05);
    display: flex;
    align-items: flex-end;
    gap: 14px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.home-proof-value {
    display: inline-block;
    margin-bottom: 0;
    font-size: 3rem;
    font-weight: 800;
    color: var(--brand-blue-deep);
    line-height: 0.88;
    flex: 0 0 auto;
}

.home-proof-label {
    display: inline-block;
    color: var(--brand-slate);
    font-size: 0.98rem;
    line-height: 1.35;
    flex: 1 1 auto;
    padding-bottom: 2px;
}

.home-hero-copy {
    max-width: 100%;
}

.hero-visual {
    display: flex;
    justify-content: flex-end;
}

.hero-visual-mockup {
    width: min(100%, 560px);
    min-height: 430px;
    padding: 22px;
    border-radius: 28px;
    border: 1px solid rgba(0, 123, 255, 0.14);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 244, 255, 0.92) 100%);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.hero-mockup-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.hero-mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(0, 123, 255, 0.24);
}

.hero-mockup-content {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 18px;
    min-height: 346px;
}

.hero-mockup-sidebar {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 18px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(0, 123, 255, 0.08);
}

.hero-mockup-nav {
    height: 12px;
    border-radius: 999px;
    background: rgba(0, 123, 255, 0.14);
}

.hero-mockup-nav-active {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-deep) 100%);
}

.hero-mockup-main,
.hero-mockup-panel-stack,
.help-overview-points {
    display: grid;
    gap: 16px;
}

.hero-mockup-topline {
    height: 56px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(0, 123, 255, 0.08);
}
.hero-mockup-panels {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 16px;
}

.hero-mockup-panel,
.hero-mockup-table {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(0, 123, 255, 0.08);
}

.hero-mockup-panel-large {
    padding: 18px;
    min-height: 176px;
}

.hero-mockup-chart {
    height: 100%;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(0, 123, 255, 0.14) 0%, rgba(0, 123, 255, 0.02) 100%),
        linear-gradient(90deg, rgba(0, 123, 255, 0.18) 0 14%, transparent 14% 28%, rgba(0, 123, 255, 0.12) 28% 42%, transparent 42% 56%, rgba(0, 123, 255, 0.2) 56% 70%, transparent 70% 84%, rgba(0, 123, 255, 0.16) 84% 100%);
}

.hero-mockup-panel-small {
    min-height: 80px;
}

.hero-mockup-table {
    min-height: 98px;
    padding: 16px;
    display: grid;
    gap: 10px;
}

.hero-mockup-table span {
    display: block;
    height: 12px;
    border-radius: 999px;
    background: rgba(0, 123, 255, 0.12);
}


.home-section {
    padding: 54px 0 38px;
}

.home-section-tight {
    padding-top: 30px;
}

.home-section-contrast {
    background: linear-gradient(180deg, rgba(234, 242, 252, 0.75) 0%, rgba(255, 255, 255, 0.92) 100%);
    border-top: 1px solid rgba(0, 123, 255, 0.08);
    border-bottom: 1px solid rgba(0, 123, 255, 0.08);
}

.home-section-strengths {
    position: relative;
}

.home-section-strengths::before {
    content: "";
    position: absolute;
    inset: 28px 0 auto;
    height: 240px;
    background:
        radial-gradient(circle at 18% 24%, rgba(0, 123, 255, 0.08), transparent 34%),
        radial-gradient(circle at 82% 10%, rgba(6, 86, 199, 0.06), transparent 28%);
    pointer-events: none;
}

.home-section-insights {
    position: relative;
    overflow: hidden;
}

.home-section-insights::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 100%;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 123, 255, 0.02) 100%),
        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 108px,
            rgba(0, 123, 255, 0.03) 108px,
            rgba(0, 123, 255, 0.03) 109px
        );
    pointer-events: none;
}

.home-section-heading {
    max-width: 860px;
    margin: 0 auto 34px;
    text-align: center;
}

.home-related-heading {
    margin: 0 auto 24px;
    text-align: left;
}

.home-section-heading h2,
.home-section-heading h1 {
    margin: 18px 0 14px;
    font-size: clamp(2.1rem, 4vw, 3.05rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.home-section-heading p {
    margin: 0;
    color: var(--brand-slate);
    line-height: 1.82;
    font-size: 1.04rem;
}

.home-strength-rows {
    display: grid;
    gap: 22px;
    position: relative;
    z-index: 1;
}

.home-strength-row {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    align-items: center;
    padding: 40px;
    border-radius: 18px;
    border: 1px solid var(--brand-line);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 255, 0.94) 100%);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.07);
    position: relative;
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.home-strength-row::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, rgba(0, 123, 255, 0.92) 0%, rgba(6, 86, 199, 0.56) 100%);
}

.home-strength-row-reconciliation::after,
.home-strength-row-invoicing::after,
.home-strength-row-payroll::after {
    content: "";
    position: absolute;
    right: -36px;
    top: -42px;
    width: 148px;
    height: 148px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.11) 0%, rgba(0, 123, 255, 0.02) 62%, transparent 72%);
    pointer-events: none;
}

.home-strength-row-invoicing::after {
    background: radial-gradient(circle, rgba(6, 86, 199, 0.10) 0%, rgba(6, 86, 199, 0.02) 62%, transparent 72%);
}

.home-strength-row-payroll::after {
    background: radial-gradient(circle, rgba(0, 123, 255, 0.08) 0%, rgba(15, 23, 42, 0.03) 60%, transparent 72%);
}

.home-strength-copy h3 {
    margin: 16px 0 12px;
    font-size: 1.84rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.home-strength-copy p,
.home-strength-meta,
.home-insight-card p {
    margin: 0;
    color: var(--brand-slate);
    line-height: 1.8;
}

.home-strength-side {
    display: grid;
    gap: 20px;
    justify-items: start;
    min-height: 100%;
    max-width: 300px;
}

.home-link-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 138px;
    padding: 13px 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 123, 255, 0.24);
    color: var(--brand-blue);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(0, 123, 255, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.home-link-pill:hover {
    color: var(--brand-blue-deep);
    border-color: rgba(0, 123, 255, 0.40);
    box-shadow: 0 14px 28px rgba(0, 123, 255, 0.12);
}

.home-insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    position: relative;
    z-index: 1;
}

.home-insight-card {
    display: grid;
    gap: 16px;
    height: 100%;
    padding: 32px 30px 28px;
    border-radius: 28px;
    border: 1px solid rgba(0, 123, 255, 0.10);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 252, 255, 0.96) 100%);
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.06);
    position: relative;
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.home-insight-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(0, 123, 255, 0.92) 0%, rgba(6, 86, 199, 0.55) 100%);
}

.home-insight-card h3 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.home-insight-card .home-link-pill,
.home-insight-card .home-cta-actions {
    margin-top: auto;
}

.hero-visual:hover .hero-visual-mockup {
    transform: translateY(-4px) rotateX(1.4deg) rotateY(-2.2deg);
    box-shadow: 0 42px 92px rgba(15, 23, 42, 0.16);
    border-color: rgba(0, 123, 255, 0.22);
}

.home-proof-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 34px 66px rgba(15, 23, 42, 0.1);
    border-color: rgba(0, 123, 255, 0.2);
}

.home-proof-point:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 34px rgba(15, 23, 42, 0.08);
    border-color: rgba(0, 123, 255, 0.22);
    background: rgba(255, 255, 255, 0.96);
}

.home-strength-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 54px rgba(15, 23, 42, 0.1);
    border-color: rgba(0, 123, 255, 0.22);
}

.home-strength-row:hover::before {
    width: 10px;
}

.home-insight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 50px rgba(15, 23, 42, 0.09);
    border-color: rgba(0, 123, 255, 0.18);
}

.home-insight-card:hover .home-link-pill,
.home-strength-row:hover .home-link-pill {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(0, 123, 255, 0.14);
}

.pricing-faq-shell {
    display: grid;
    gap: 24px;
}

.pricing-faq-heading {
    margin-bottom: 0;
    max-width: none;
    width: 100%;
}

.pricing-faq-heading h2 {
    max-width: none;
    font-size: clamp(1.8rem, 3.2vw, 3.2rem);
}

.pricing-faq-accordion {
    display: grid;
    gap: 14px;
}

.pricing-faq-item {
    border-radius: 22px;
    border: 1px solid rgba(0, 123, 255, 0.10);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.pricing-faq-item summary {
    list-style: none;
}

.pricing-faq-item summary::-webkit-details-marker {
    display: none;
}

.pricing-faq-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    cursor: pointer;
    color: var(--brand-ink);
    font-size: 1.14rem;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.pricing-faq-toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(0, 123, 255, 0.12);
    background: rgba(244, 248, 253, 0.9);
    color: var(--brand-blue-deep);
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.pricing-faq-item[open] .pricing-faq-toggle {
    transform: rotate(45deg);
    background: rgba(230, 241, 255, 0.96);
    border-color: rgba(0, 123, 255, 0.22);
}

.pricing-faq-answer {
    padding: 0 24px 22px;
}

.pricing-faq-answer p {
    margin: 0;
    color: var(--brand-slate);
    line-height: 1.72;
    max-width: 84ch;
}

.article-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 1320px;
}

.article-related-grid .home-insight-card {
    min-height: 100%;
}

.home-insight-category {
    position: relative;
    padding-left: 16px;
}

.home-insight-category::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-blue);
    transform: translateY(-50%);
}

.home-cta-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 34px 36px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.12) 0%, rgba(255, 255, 255, 0.98) 58%);
    border: 1px solid var(--brand-line);
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.08);
}

.home-cta-banner h2 {
    margin: 12px 0 10px;
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.home-cta-banner p {
    margin: 0;
    color: var(--brand-slate);
    line-height: 1.82;
    max-width: 60ch;
}

.home-article-shell {
    padding: 58px 0 18px;
}

.home-article-hero {
    padding-top: 18px;
}

.home-article-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.62fr);
    gap: 40px;
    align-items: start;
}

.home-article-hero-main {
    min-width: 0;
}

.home-article-title {
    margin: 14px 0 18px;
    max-width: none;
    width: 100%;
    font-size: clamp(2.9rem, 4vw, 4.4rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.home-article-summary {
    max-width: 74ch;
    margin: 0;
    color: var(--brand-slate);
    font-size: 1.12rem;
    line-height: 1.86;
}

.article-topics-card {
    display: grid;
    gap: 16px;
    padding: 28px;
    border-radius: 26px;
    border: 1px solid rgba(0, 123, 255, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 253, 0.96) 100%);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
}

.article-keyword-label {
    color: var(--brand-blue-deep);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.article-keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.article-keyword-list-compact {
    gap: 8px;
}

.article-keyword-chip {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 123, 255, 0.16);
    background: rgba(255, 255, 255, 0.88);
    color: var(--brand-blue-deep);
    font-size: 0.95rem;
    font-weight: 600;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.34fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.article-takeaways-card,
.article-content-card {
    border-radius: 28px;
    border: 1px solid var(--brand-line);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.article-takeaways-card {
    position: sticky;
    top: 22px;
    padding: 30px 30px 32px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(234, 242, 252, 0.92) 100%);
}

.article-takeaways-list {
    margin: 18px 0 0;
    padding-left: 20px;
    color: var(--brand-slate);
    line-height: 1.82;
}

.article-side-cta {
    margin-top: 22px;
    width: 100%;
}

.article-content-card {
    padding: 42px 44px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.94) 100%);
}

.article-content-section + .article-content-section {
    margin-top: 34px;
}

.article-content-section {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.article-section-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: rgba(0, 123, 255, 0.08);
    border: 1px solid rgba(0, 123, 255, 0.12);
    color: var(--brand-blue-deep);
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

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

.article-content-section h2 {
    margin: 0 0 10px;
    font-size: 1.64rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.article-content-section p {
    margin: 0;
    color: var(--brand-slate);
    line-height: 1.92;
    font-size: 1.05rem;
    max-width: none;
}

.article-inline-cta {
    margin-top: 40px;
    padding: 28px;
    border-radius: 26px;
    border: 1px solid var(--brand-line);
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.08) 0%, rgba(255, 255, 255, 0.98) 70%);
}

.article-inline-cta h3 {
    margin: 0 0 10px;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.article-inline-cta p,
.public-footer-brand p,
.public-footer-contact p {
    margin: 0;
    color: var(--brand-slate);
    line-height: 1.75;
}


.public-footer {
    margin-top: 52px;
    padding: 0 0 34px;
}

.public-footer-shell {
    padding: 34px 38px 22px;
    border-radius: 30px;
    border: 1px solid rgba(0, 123, 255, 0.1);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 248, 255, 0.96) 100%);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.06);
}

.public-footer-main {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
    align-items: start;
}

.public-footer-brand h6,
.public-footer-heading {
    display: inline-block;
    margin: 0 0 14px;
    color: var(--brand-ink);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.public-footer-links,
.public-footer-contact {
    display: grid;
    gap: 10px;
}

.public-footer-links a,
.public-footer-contact a {
    color: var(--brand-slate);
    text-decoration: none;
    transition: color 0.18s ease;
}

.public-footer-links a:hover,
.public-footer-contact a:hover {
    color: var(--brand-blue-deep);
}

.public-footer-bottom {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 123, 255, 0.1);
    color: #7b8aa0;
    font-size: 0.9rem;
    text-align: center;
}


/*contact.html*/
.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    background-color: #e9ecef;
    color: #007bff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.contact-page-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.88fr);
    gap: 42px;
    align-items: start;
}

.contact-page-intro h1 {
    margin: 18px 0 14px;
    font-size: clamp(2.6rem, 4.6vw, 4.2rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.contact-page-subtitle {
    max-width: 54ch;
    margin: 0;
    color: var(--brand-slate);
    line-height: 1.85;
    font-size: 1.08rem;
}

.contact-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.contact-detail-card {
    display: grid;
    gap: 8px;
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(0, 123, 255, 0.12);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

.contact-detail-label {
    color: var(--brand-blue-deep);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.contact-detail-card a,
.contact-detail-card span:last-child {
    color: var(--brand-ink);
    line-height: 1.65;
    text-decoration: none;
}

.contact-page-back {
    margin-top: 24px;
}

/*contact.html*/
.contact-card {
    background-color: white;
    padding: 34px;
    border-radius: 28px;
    border: 1px solid rgba(0, 123, 255, 0.12);
    box-shadow: 0 26px 54px rgba(15, 23, 42, 0.08);
    width: 100%;
}

/*contact.html*/
.contact-card h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

/*contact.html*/
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

/*contact.html*/
.form-group label {
    margin-bottom: 6px;
    font-weight: 600;
}

/*contact.html*/
.form-group input,
.form-group textarea {
    padding: 13px 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    font-size: 1rem;
    background: rgba(248, 251, 255, 0.9);
}

/*contact.html*/
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button,
.return-button {
    width: 100%;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}

/*contact.html*/
.submit-button {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-deep) 100%);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 18px 36px rgba(0, 123, 255, 0.22);
}

/*contact.html*/
.return-button {
    background-color: transparent;
    color: #007bff;
    padding: 12px;
    border: 2px solid #007bff;
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: 10px;
}

/*contact.html*/
.return-button:hover {
    background-color: #007bff;
    color: white;
}

/*gst summary & help*/
.help-page-shell {
    display: grid;
    gap: 28px;
}

.help-page-heading {
    max-width: 920px;
}

.help-guide-hero,
.help-template-panel,
.help-guide-footer {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 28px;
    align-items: start;
    padding: 30px 32px;
    border-radius: 28px;
    border: 1px solid rgba(0, 123, 255, 0.10);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.06);
}

.help-guide-hero h2,
.help-template-panel h2,
.help-guide-footer h2 {
    margin: 12px 0 10px;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.08;
    font-weight: 800;
}

.help-guide-hero p,
.help-template-panel p,
.help-guide-footer p,
.help-guide-card p {
    margin: 0;
    color: var(--brand-slate);
    line-height: 1.72;
}

.help-start-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: help-start;
}

.help-start-list li {
    counter-increment: help-start;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(0, 123, 255, 0.10);
    background: rgba(244, 248, 253, 0.78);
    color: var(--brand-slate);
    line-height: 1.55;
}

.help-start-list li::before {
    content: counter(help-start);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(0, 123, 255, 0.10);
    color: var(--brand-blue-deep);
    font-weight: 800;
    font-size: 0.82rem;
}

.help-jump-nav {
    position: sticky;
    top: 86px;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(0, 123, 255, 0.10);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
}

.help-jump-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--brand-blue-deep);
    background: rgba(230, 241, 255, 0.72);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

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

.help-guide-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 18px;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(0, 123, 255, 0.10);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.05);
}

.help-guide-card-muted {
    background: rgba(244, 248, 253, 0.78);
}

.help-guide-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(0, 123, 255, 0.10);
    color: var(--brand-blue-deep);
    font-weight: 800;
}

.help-guide-copy {
    min-width: 0;
}

.help-guide-card h2 {
    margin: 10px 0 8px;
    font-size: 1.28rem;
    line-height: 1.18;
    font-weight: 800;
}

.help-check-list {
    display: grid;
    gap: 10px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.help-check-list li {
    position: relative;
    padding-left: 24px;
    color: var(--brand-slate);
    line-height: 1.58;
}

.help-check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--brand-blue);
}

.help-template-actions,
.help-guide-footer .home-hero-actions {
    align-items: center;
}

.help-template-steps {
    display: grid;
    gap: 12px;
}

.help-template-step {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(0, 123, 255, 0.10);
    background: rgba(244, 248, 253, 0.82);
}

.help-template-step strong {
    color: var(--brand-blue-deep);
}

.help-template-step span {
    color: var(--brand-slate);
    line-height: 1.58;
}

@media (max-width: 991px) {
    .home-strength-row,
    .article-layout,
    .home-hero-grid,
    .home-hero-grid-marketing,
    .home-article-hero-grid,
    .home-proof-stack,
    .home-insight-grid,
    .hero-mockup-content,
    .hero-mockup-panels,
    .home-proof-grid,
    .home-proof-grid-inline,
    .help-guide-hero,
    .help-template-panel,
    .help-guide-footer,
    .help-guide-grid {
        grid-template-columns: 1fr;
    }

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

    .home-strength-row {
        padding: 26px;
    }

    .hero-visual {
        justify-content: flex-start;
    }

    .hero-visual-mockup {
        width: 100%;
        min-height: 360px;
    }

    .article-takeaways-card {
        position: static;
    }

    .contact-page-shell,
    .contact-detail-grid {
        grid-template-columns: 1fr;
    }
}

/*gst summary & help*/
.tab-content {
    display: none;
}

/*gst summary & help*/
.tab-content.active {
    display: block;
}

@media (max-width: 767px) {
    .topbar {
        padding: 14px 16px;
    }

    .topbar-inner {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .topbar-actions {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .topbar-cta,
    #homepage-language-switch {
        width: 100%;
    }

    .home-hero-shell {
        padding-top: 28px;
    }

    .home-hero-title {
        max-width: none;
        font-size: 2.85rem;
        line-height: 1.03;
    }

    .home-proof-card-inline h2 {
        max-width: none;
        font-size: 2.15rem;
    }

    .home-section,
    .home-section-tight {
        padding: 28px 0;
    }

    .home-proof-card,
    .home-insight-card,
    .home-strength-row,
    .home-cta-banner,
    .article-content-card,
    .article-takeaways-card,
    .contact-card,
    .help-guide-card,
    .help-guide-hero,
    .help-template-panel,
    .help-guide-footer {
        padding: 22px;
        border-radius: 24px;
    }

    .home-btn,
    .home-link-pill {
        min-width: 0;
        width: 100%;
    }

    .home-article-title {
        max-width: none;
        font-size: 2.95rem;
    }

    .article-related-grid {
        grid-template-columns: 1fr;
    }

    .article-content-section {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .article-section-marker {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .home-hero-actions,
    .home-cta-actions {
        width: 100%;
    }

    footer {
        padding: 32px 18px;
    }

    .public-footer-shell {
        padding: 24px 20px 18px;
        border-radius: 22px;
    }

    .public-footer-main {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .public-footer-contact,
    .public-footer-contact p,
    .public-footer-contact a {
        min-width: 0;
        overflow-wrap: anywhere;
    }

}

/* ============================================================
   Pricing Module Picker
   ============================================================ */

.pricing-builder {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
  padding-top: 16px;
  padding-bottom: 48px;
}

/* Module cards */
.pricing-modules {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-module-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 2px solid var(--border, #e2e8f0);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #fff;
  position: relative;
}

.pricing-module-card:hover:not(.pricing-module-coming-soon) {
  border-color: var(--accent, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.pricing-module-card.pricing-module-selected,
.pricing-payroll-tier-option.pricing-payroll-tier-selected {
  border-color: var(--accent, #2563eb);
  background: #f0f5ff;
}

.pricing-module-card.pricing-module-coming-soon {
  opacity: 0.6;
  cursor: not-allowed;
}

.pricing-module-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--accent, #2563eb);
  flex-shrink: 0;
}

.pricing-module-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}

.pricing-module-body {
  flex: 1;
}

.pricing-module-name {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-module-desc {
  font-size: 0.85rem;
  color: var(--text-muted, #64748b);
  margin: 0;
}

.pricing-module-price {
  text-align: right;
  flex-shrink: 0;
}

.pricing-module-price-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text, #1e293b);
}

.pricing-module-price-unit {
  font-size: 0.78rem;
  color: var(--text-muted, #64748b);
}

.pricing-coming-soon-badge {
  font-size: 0.7rem;
  font-weight: 600;
  background: #fef3c7;
  color: #92400e;
  padding: 2px 8px;
  border-radius: 99px;
}

/* Payroll tier panel */
.pricing-module-payroll {
  flex-direction: column;
  align-items: stretch;
  cursor: default;
}

.pricing-payroll-header {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.pricing-payroll-checkbox-label {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  cursor: pointer;
}

.pricing-payroll-price-display {
  flex-shrink: 0;
  text-align: right;
}

.pricing-payroll-tiers {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border, #e2e8f0);
}

.pricing-payroll-tier-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  margin: 0 0 10px;
}

.pricing-payroll-tier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pricing-payroll-tier-option {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 2px solid var(--border, #e2e8f0);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.pricing-payroll-tier-option input[type="radio"] {
  display: none;
}

.pricing-payroll-tier-option:hover {
  border-color: var(--accent, #2563eb);
}

.pricing-tier-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text, #1e293b);
}

.pricing-tier-price {
  font-size: 0.8rem;
  color: var(--text-muted, #64748b);
}

/* Summary panel */
.pricing-summary-panel {
  position: sticky;
  top: 24px;
}

.pricing-summary-inner {
  background: #fff;
  border: 2px solid var(--accent, #2563eb);
  border-radius: 16px;
  padding: 24px 20px;
}

.pricing-summary-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 16px;
}

.pricing-summary-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.pricing-summary-empty {
  color: var(--text-muted, #64748b);
  font-style: italic;
}

.pricing-summary-divider {
  height: 1px;
  background: var(--border, #e2e8f0);
  margin: 12px 0;
}

.pricing-summary-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.pricing-summary-total-amount {
  color: var(--accent, #2563eb);
  font-size: 1.2rem;
}

.pricing-summary-note {
  font-size: 0.75rem;
  color: var(--text-muted, #64748b);
  margin: 0 0 18px;
}

.pricing-summary-cta {
  display: block;
  text-align: center;
  margin-bottom: 10px;
}

.pricing-summary-contact-link {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted, #64748b);
  text-decoration: underline;
}

/* FAQ (reuse existing style) */
.pricing-faq-shell {
  max-width: 720px;
}

.pricing-page-back {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.pricing-faq-heading {
  margin-bottom: 24px;
}

.pricing-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-faq-item {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  overflow: hidden;
}

.pricing-faq-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  user-select: none;
}

.pricing-faq-summary::-webkit-details-marker { display: none; }

.pricing-faq-toggle {
  font-size: 1.2rem;
  transition: transform 0.2s;
}

details[open] .pricing-faq-toggle {
  transform: rotate(45deg);
}

.pricing-faq-answer {
  padding: 0 20px 16px;
  color: var(--text-muted, #64748b);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .pricing-summary-panel {
    position: static;
    order: -1;
  }

  .pricing-builder,
  .pricing-payroll-tier-grid {
    grid-template-columns: 1fr;
  }
}

/* Home module grid (index.html pricing section) */
.home-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 8px;
  margin-bottom: 0;
}

.home-module-card {
  background: #fff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 20px 18px;
}

.home-module-card.home-module-card-soon {
  opacity: 0.65;
}

.home-module-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.home-module-card-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
}

.home-module-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent, #2563eb);
  white-space: nowrap;
}

.home-module-price-unit {
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text-muted, #64748b);
}

.home-pricing-cta {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .home-module-grid {
    grid-template-columns: 1fr 1fr;
  }
}
