@font-face {
    font-family: 'Outfit';
    src: url('/assets/fonts/outfit-latin-variable.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: 'Switzer';
    src: url('/assets/fonts/switzer-variable.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --navy: #232752;
    --amber: #E7A33E;
    --forest-green: #228B22;
    --white: #FFFFFF;
    --paper: #FAF9F6;
    --light-bg: #F3F5F9;
    --text-main: #232752;
    --text-muted: rgba(58, 63, 85, 0.55);
    --border: #E8E7E4;
    --ease-out: cubic-bezier(.2,.7,.2,1);
}

header, #mobile-menu-drawer, footer.site-footer {
    font-family: 'Switzer', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    margin: 0; padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

header h1, header h2, header h3, header h4, header .dm-sans,
#mobile-menu-drawer h1, #mobile-menu-drawer h2, #mobile-menu-drawer h3, #mobile-menu-drawer h4, #mobile-menu-drawer .dm-sans,
footer.site-footer h1, footer.site-footer h2, footer.site-footer h3, footer.site-footer h4, footer.site-footer .dm-sans {
    font-family: 'Outfit', sans-serif;
    margin: 0;
}

.mono {
    font-family: ui-monospace, Consolas, monospace;
}

header a, #mobile-menu-drawer a, footer.site-footer a { text-decoration: none; color: inherit; }
header ul, #mobile-menu-drawer ul, footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
header img, #mobile-menu-drawer img, footer.site-footer img { max-width: 100%; height: auto; }

.container { max-width: 1440px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 768px) { .container { padding: 0 24px; } }

/* Typography */
.two-tone { line-height: 1.1; letter-spacing: -0.02em; font-weight: 500; font-size: clamp(32px, 5vw, 56px); }
.two-tone span:first-child { color: var(--navy); display: block; }
.two-tone span:last-child { color: var(--text-muted); display: block; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: 'Switzer', sans-serif; font-weight: 600; font-size: 16px;
    border-radius: 999px; padding: 14px 32px;
    cursor: pointer; transition: transform 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn-amber { background-color: var(--amber); color: var(--navy); border: none; }
.btn-outline { background-color: transparent; color: var(--navy); border: 1px solid var(--navy); }

/* Reveal Animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.active { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    * { animation: none !important; transition: none !important; }
}

/* Nav */
header { position: absolute; width: 100%; top: 0; z-index: 100; padding: 30px 0; }
header .container { display: flex; justify-content: space-between; align-items: center; }
header .logo { height: 32px; }
header nav { display: flex; gap: 40px; align-items: center; font-weight: 500; font-size: 15px; }
header .nav-links { display: flex; gap: 40px; align-items: center; }
header .nav-right { display: flex; gap: 20px; align-items: center; }
@media (max-width: 768px) {
    header nav .nav-links, header nav .btn, header nav .login-link { display: none; }
    .mobile-menu { display: flex; align-items: center; justify-content: center; cursor: pointer; width: 24px; height: 16px; position: relative; z-index: 100; background: none; border: 0; padding: 0; }
    .mobile-menu span { display: block; width: 100%; height: 2px; background: var(--navy); transition: 0.3s; position: absolute; }
    .mobile-menu span:nth-child(1) { top: 0; }
    .mobile-menu span:nth-child(2) { top: 7px; }
    .mobile-menu span:nth-child(3) { bottom: 0; }
    .mobile-menu.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .mobile-menu.open span:nth-child(2) { opacity: 0; }
    .mobile-menu.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (min-width: 769px) { .mobile-menu { display: none; } }

/* Footer */
footer.site-footer { background: var(--white); padding: 80px 0; font-size: 15px; color: var(--text-muted); border-top: 1px solid var(--border); }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 60px; }
.footer-nav { display: flex; gap: 80px; flex-wrap: wrap; }
.footer-nav .col { display: flex; flex-direction: column; gap: 16px; }
.footer-nav strong { color: var(--navy); font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 500; margin-bottom: 8px; }
.footer-nav a:hover { color: var(--navy); }

/* Language Switcher */
.lang-switcher { display: inline-flex; border: 1px solid var(--navy); border-radius: 999px; overflow: hidden; font-size: 12px; font-family: ui-monospace, Consolas, monospace; font-weight: 600; align-items: center; }
.lang-switcher a { padding: 4px 10px; color: var(--navy); transition: 0.2s; }
.lang-switcher a[aria-current="true"] { background: var(--navy); color: var(--white); }
.lang-switcher a:not([aria-current="true"]):hover { background: rgba(35,39,82,0.05); }

/* Mobile Menu */
#mobile-menu-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 100%; max-width: 300px; background: var(--white); z-index: 90; padding: 100px 30px 30px; box-shadow: -10px 0 30px rgba(0,0,0,0.1); transform: translateX(100%); transition: transform 0.3s var(--ease-out); display: flex; flex-direction: column; gap: 20px; font-size: 18px; font-weight: 500; }
#mobile-menu-drawer.open { transform: translateX(0); }
#mobile-menu-drawer a:hover { color: var(--amber); }
.menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 80; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.menu-overlay.open { opacity: 1; pointer-events: auto; }

/* Pricing & FAQ Sections */
.pricing-section { padding: 140px 0; background: var(--paper); text-align: center; }
.pricing-section h2 { font-size: 56px; margin-bottom: 24px; color: var(--navy); }
.pricing-section p { font-size: 20px; color: var(--text-muted); max-width: 600px; margin: 0 auto 40px; }

.pricing-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; text-align: left; margin-top: 60px; }
.pricing-card { background: var(--white); border-radius: 24px; padding: 40px; border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,0.03); display: flex; flex-direction: column; position: relative; }
.pricing-card.featured { border: 2px solid var(--amber); transform: scale(1.02); }
.pricing-card h3 { font-size: 28px; margin-bottom: 8px; color: var(--navy); }
.pricing-card .price { font-size: 48px; font-weight: 500; font-family: 'Outfit', sans-serif; color: var(--navy); margin-bottom: 8px; display: flex; align-items: baseline; }
.pricing-card .price span { font-size: 18px; color: var(--text-muted); font-weight: 400; margin-left: 4px; }
.pricing-card .desc { color: var(--text-muted); margin-bottom: 24px; min-height: 48px; }
.pricing-card ul { margin-bottom: 32px; flex-grow: 1; }
.pricing-card li { display: flex; gap: 12px; margin-bottom: 12px; font-size: 15px; }
.pricing-card li::before { content: '✓'; color: var(--forest-green); font-weight: bold; }
.pricing-card .btn { width: 100%; }

.faq-section { padding: 140px 0; background: var(--white); }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-section h2 { text-align: center; font-size: 48px; margin-bottom: 60px; color: var(--navy); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; cursor: pointer; font-family: 'Outfit', sans-serif; font-size: 20px; font-weight: 500; color: var(--navy); user-select: none; }
.faq-icon { width: 24px; height: 24px; position: relative; transition: transform 0.3s; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; background: var(--navy); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.faq-icon::before { width: 16px; height: 2px; }
.faq-icon::after { width: 2px; height: 16px; transition: transform 0.3s; }
.faq-item.active .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-answer { font-size: 16px; color: var(--text-muted); line-height: 1.6; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out, padding-bottom 0.3s ease-out; }
.faq-item.active .faq-answer { padding-bottom: 24px; max-height: 300px; }

/* Promo banner */
.promo-banner { background: var(--amber); color: var(--navy); padding: 12px; border-radius: 8px; text-align: center; margin-bottom: 40px; font-weight: 500; display: none; }
.promo-banner.active { display: block; }
.pricing-fineprint { margin: 48px auto 0; max-width: 560px; text-align: center; font-size: 12px; font-style: italic; color: var(--text-muted); }

@media (max-width: 768px) {
    .pricing-section, .faq-section { padding: 80px 0; }
}

/* Inner pages */
body.inner-page {
    font-family: 'Switzer', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    margin: 0; padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body.inner-page h1,
body.inner-page h2,
body.inner-page h3,
body.inner-page h4,
body.inner-page .dm-sans {
    font-family: 'Outfit', sans-serif;
    margin: 0;
}
body.inner-page a { text-decoration: none; color: inherit; }
body.inner-page ul { list-style: none; padding: 0; margin: 0; }
body.inner-page main img { max-width: 100%; height: auto; }

.page-hero {
    background-color: var(--paper);
    padding: 140px 0 20px;
    text-align: center;
}
.page-hero .eyebrow {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--navy);
    margin-bottom: 16px;
    display: inline-block;
}
.page-hero h1,
body.inner-page .page-hero h1 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--navy);
    max-width: 900px;
    margin: 0 auto 20px;
}
.page-hero .intro {
    font-size: clamp(17px, 2vw, 20px);
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 20px;
    line-height: 1.5;
}
.page-hero .hero-fineprint {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}
.page-hero .hero-fineprint a {
    color: var(--navy);
    text-decoration: underline;
    transition: color 0.2s;
}
.page-hero .hero-fineprint a:hover {
    color: var(--amber);
}

.page-hero + .pricing-section {
    padding-top: 40px;
}

#promo-banner:not(.hidden) {
    display: block;
}

.included-section {
    padding: 140px 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.included-section h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 500;
    color: var(--navy);
    text-align: center;
    margin-bottom: 16px;
}
.included-section .section-intro {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 60px;
    text-align: center;
    line-height: 1.5;
}
.included-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.included-card {
    background: var(--light-bg);
    border-radius: 20px;
    padding: 36px 32px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.3s var(--ease-out);
}
.included-card:hover {
    transform: translateY(-2px);
}
.included-card .card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-size: 24px;
}
.included-card h3 {
    font-size: 22px;
    font-weight: 500;
    color: var(--navy);
    margin: 0;
}
.included-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}
.included-card a {
    color: var(--navy);
    text-decoration: underline;
    transition: color 0.2s;
}
.included-card a:hover {
    color: var(--amber);
}

.compare-section {
    padding: 140px 0;
    background: var(--paper);
}
.compare-section h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 500;
    color: var(--navy);
    text-align: center;
    margin-bottom: 48px;
}
.compare-table-wrapper {
    max-width: 1040px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.compare-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.compare-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 15px;
}
.compare-table th, .compare-table td {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}
.compare-table thead th {
    background: var(--light-bg);
    font-family: ui-monospace, Consolas, monospace;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--navy);
    border-bottom: 1px solid var(--border);
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
    border-bottom: none;
}
.compare-table tbody th {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--navy);
}
.compare-table tbody td {
    color: var(--text-muted);
}
.compare-table tbody td a {
    color: var(--navy);
    text-decoration: underline;
}
.compare-table tbody td a:hover {
    color: var(--amber);
}
.compare-note {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 24px;
}

.faq-answer a {
    color: var(--navy);
    text-decoration: underline;
}
.faq-answer a:hover {
    color: var(--amber);
}

.final-cta {
    padding: 120px 0;
    background: var(--white);
    text-align: center;
    border-top: 1px solid var(--border);
}
.final-cta h2 {
    font-size: clamp(36px, 5vw, 64px);
    letter-spacing: -0.03em;
    color: var(--navy);
    margin-bottom: 16px;
    font-weight: 500;
}
.final-cta p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.5;
}
.final-cta .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .page-hero { padding: 120px 0 20px; }
    .page-hero + .pricing-section { padding-top: 24px; padding-bottom: 80px; }
    .included-section { padding: 80px 0; }
    .included-grid { grid-template-columns: 1fr; gap: 20px; }
    .included-section .section-intro { margin-bottom: 40px; }
    .compare-section { padding: 80px 0; }
    .compare-table th, .compare-table td { padding: 14px 16px; font-size: 14px; }
    .final-cta { padding: 72px 0; }
}

/* Feature pages */
.page-hero .hero-ctas {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
    padding-bottom: 60px;
}

/* Stages section (audit trail) */
.stages-section {
    padding: 140px 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.stages-section h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 500;
    color: var(--navy);
    text-align: center;
    margin-bottom: 16px;
}
.stages-section .section-intro {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 60px;
    text-align: center;
    line-height: 1.5;
}
.stages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.stage-card {
    background: var(--light-bg);
    border-radius: 20px;
    padding: 36px 28px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.3s var(--ease-out);
}
.stage-card:hover {
    transform: translateY(-2px);
}
.stage-card .stage-num {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 13px;
    font-weight: 600;
    color: var(--amber);
    letter-spacing: 0.05em;
}
.stage-card h3 {
    font-size: 20px;
    font-weight: 500;
    color: var(--navy);
    margin: 0;
}
.stage-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Narrative / Why section */
.narrative-section {
    padding: 140px 0;
    background: var(--paper);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.narrative-section.bg-white {
    background: var(--white);
}
.narrative-container {
    max-width: 800px;
    margin: 0 auto;
}
.narrative-section h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 24px;
    line-height: 1.2;
}
.narrative-section p {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}
.narrative-section p:last-child {
    margin-bottom: 0;
}

/* Included section variant */
.included-section.bg-paper {
    background: var(--paper);
}
.included-section.bg-paper .included-card {
    background: var(--white);
}

/* Tier cards (multi-company routing) */
.tier-cards-section {
    padding: 140px 0;
    background: var(--paper);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.tier-cards-section h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 500;
    color: var(--navy);
    text-align: center;
    margin-bottom: 16px;
}
.tier-cards-section .section-intro {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 60px;
    text-align: center;
    line-height: 1.5;
}
.tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.tier-card {
    background: var(--white);
    border-radius: 24px;
    padding: 40px 32px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    transition: transform 0.3s var(--ease-out);
}
.tier-card:hover {
    transform: translateY(-2px);
}
.tier-card.featured {
    border: 2px solid var(--amber);
}
.tier-card .tier-label {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--navy);
}
.tier-card.featured .tier-label {
    color: var(--amber);
}
.tier-card h3 {
    font-size: 24px;
    font-weight: 500;
    color: var(--navy);
    margin: 0;
}
.tier-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 1024px) {
    .stages-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 768px) {
    .page-hero .hero-ctas { padding-bottom: 40px; gap: 12px; }
    .stages-section { padding: 80px 0; }
    .stages-grid { grid-template-columns: 1fr; gap: 16px; }
    .stages-section .section-intro { margin-bottom: 40px; }
    .narrative-section { padding: 80px 0; }
    .narrative-section p { font-size: 16px; }
    .tier-cards-section { padding: 80px 0; }
    .tier-grid { grid-template-columns: 1fr; gap: 20px; }
    .tier-cards-section .section-intro { margin-bottom: 40px; }
}

/* Inner pages: industry and e-Invoice */
body.inner-page .stage-card a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: var(--navy);
    font-size: 14px;
    margin-top: auto;
    text-decoration: none;
    transition: color 0.2s;
}
body.inner-page .stage-card a:hover {
    color: var(--amber);
}

body.inner-page .narrative-section a {
    color: var(--navy);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s;
}
body.inner-page .narrative-section a:hover {
    color: var(--amber);
}

body.inner-page .faq-item.active .faq-answer {
    max-height: 600px;
}
body.inner-page .faq-answer p {
    margin: 0 0 12px;
}
body.inner-page .faq-answer p:last-child {
    margin: 0;
}

/* Industry Pain Points */
.industry-pain-section {
    padding: 140px 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.industry-pain-section h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 500;
    color: var(--navy);
    text-align: center;
    margin-bottom: 16px;
}
.industry-pain-section .section-intro {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 60px;
    text-align: center;
    line-height: 1.5;
}
.industry-pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.industry-pain-card {
    background: var(--light-bg);
    border-radius: 20px;
    padding: 36px 32px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.3s var(--ease-out);
}
.industry-pain-card:hover {
    transform: translateY(-2px);
}
.industry-pain-card h3 {
    font-size: 22px;
    font-weight: 500;
    color: var(--navy);
    margin: 0;
}
.industry-pain-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* e-Invoice Hero & Countdown */
body.inner-page .page-hero.einvoice-hero {
    text-align: left;
    padding: 140px 0 60px;
}
.einvoice-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 60px;
}
body.inner-page .page-hero.einvoice-hero h1 {
    margin: 0 0 20px 0;
    text-align: left;
    max-width: none;
}
body.inner-page .page-hero.einvoice-hero h1 span {
    color: var(--amber);
}
body.inner-page .page-hero.einvoice-hero .intro {
    margin: 0 0 32px 0;
    text-align: left;
    max-width: none;
}
body.inner-page .page-hero.einvoice-hero .hero-ctas {
    justify-content: flex-start;
    padding-bottom: 0;
    margin-top: 0;
}

.einvoice-countdown-card {
    background: var(--white);
    border-radius: 24px;
    padding: 36px 32px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    position: relative;
}
.countdown-ref {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}
.countdown-title {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}
.countdown-title .material-symbols-outlined {
    color: var(--navy);
    font-size: 24px;
}
.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    text-align: center;
    margin-bottom: 24px;
}
.countdown-slot {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 16px 8px;
    border: 1px solid var(--border);
}
.countdown-num {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.1;
    margin-bottom: 4px;
}
.countdown-label {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
}
.countdown-fineprint {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted);
    font-style: italic;
    margin: 0;
}

/* e-Invoice Timeline Bar */
.einvoice-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: var(--white);
    border-radius: 20px;
    padding: 24px 32px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
.timeline-step {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}
.timeline-step .timeline-node {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
}
.timeline-step.passed .timeline-node {
    background: var(--navy);
}
.timeline-step.current .timeline-node {
    background: var(--amber);
    box-shadow: 0 0 0 4px rgba(231,163,62,0.25);
}
.timeline-step.target .timeline-node {
    background: var(--navy);
}
.timeline-step.upcoming .timeline-node {
    background: var(--border);
}
.timeline-step .timeline-text {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.4;
}
.timeline-step.current .timeline-text {
    color: var(--amber);
}

/* e-Invoice Prep Section */
.einvoice-prep-section {
    padding: 140px 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.einvoice-prep-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.prep-visual-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.prep-image-wrap {
    background: var(--light-bg);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.prep-image-wrap img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}
.prep-disclaimer-card {
    background: var(--navy);
    color: var(--white);
    border-radius: 16px;
    padding: 24px 28px;
}
.prep-disclaimer-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px 0;
}
.prep-disclaimer-card h3 .material-symbols-outlined {
    color: var(--amber);
    font-size: 20px;
}
.prep-disclaimer-card p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
    font-style: italic;
    margin: 0;
}
.prep-content-col h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 40px;
}
.prep-features {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.prep-feature-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.odometer-box {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--navy);
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 600;
}
.prep-feature-item h3 {
    font-size: 22px;
    font-weight: 500;
    color: var(--navy);
    margin: 0 0 8px 0;
}
.prep-feature-item p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Odometer Roll Animation */
.odometer-wrapper {
    overflow: hidden;
    height: 1.5em;
    display: inline-flex;
    flex-direction: column;
    vertical-align: bottom;
}
.odometer-digit {
    display: inline-block;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}
.odometer-digit > span {
    display: block;
    flex-shrink: 0;
    height: 1.5em;
    line-height: 1.5em;
}

/* e-Invoice Checklist Section */
.einvoice-checklist-section {
    padding: 140px 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
}
.einvoice-checklist-section h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 500;
    color: var(--navy);
    text-align: center;
    margin-bottom: 60px;
}
.checklist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.checklist-card {
    background: var(--white);
    border-radius: 20px;
    padding: 36px 32px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.3s var(--ease-out);
}
.checklist-card:hover {
    transform: translateY(-2px);
}
.checklist-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.checklist-icon {
    font-size: 32px;
    color: var(--navy);
}
.checklist-stamp-box {
    width: 28px;
    height: 28px;
    border: 2px solid var(--navy);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.checklist-stamp-box .material-symbols-outlined {
    font-size: 18px;
    color: var(--navy);
    font-weight: bold;
}
.checklist-card h3 {
    font-size: 22px;
    font-weight: 500;
    color: var(--navy);
    margin: 0;
}
.checklist-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Stamp Physics */
@keyframes stamp-drop {
    0% { transform: scale(1.6) rotate(-10deg); opacity: 0; }
    70% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.stamp-animate {
    opacity: 0;
}
.stamp-animate.active {
    animation: stamp-drop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@media (max-width: 1024px) {
    .einvoice-hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .einvoice-timeline { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .einvoice-prep-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
    .industry-pain-section { padding: 80px 0; }
    .industry-pain-grid { grid-template-columns: 1fr; gap: 20px; }
    .industry-pain-section .section-intro { margin-bottom: 40px; }
    body.inner-page .page-hero.einvoice-hero { padding: 120px 0 40px; }
    .einvoice-hero-grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 32px; }
    .countdown-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .countdown-num { font-size: 24px; }
    .einvoice-timeline { grid-template-columns: 1fr; gap: 12px; padding: 20px 24px; }
    .einvoice-prep-section { padding: 80px 0; }
    .prep-content-col h2 { margin-bottom: 24px; }
    .einvoice-checklist-section { padding: 80px 0; }
    .checklist-grid { grid-template-columns: 1fr; gap: 20px; }
    .einvoice-checklist-section h2 { margin-bottom: 32px; }
}

/* Inner pages: demo and contact */

/* Page hero adjustment for forms/inner pages */
body.inner-page .page-hero + .demo-section,
body.inner-page .page-hero + .contact-section {
    padding-top: 40px;
}

/* Demo page layout */
body.inner-page .demo-section {
    padding: 40px 0 140px;
    background-color: var(--paper);
}

body.inner-page .demo-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 64px;
    align-items: start;
    max-width: 1140px;
    margin: 0 auto;
}

/* Demo steps (Left column) */
body.inner-page .demo-steps {
    padding-top: 12px;
}

body.inner-page .demo-steps h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 36px;
}

body.inner-page .demo-steps-list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

/* Dashed connector line between steps */
body.inner-page .demo-steps-list::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 24px;
    bottom: 24px;
    width: 2px;
    border-left: 2px dashed rgba(35, 39, 82, 0.2);
    pointer-events: none;
}

body.inner-page .demo-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    z-index: 1;
}

body.inner-page .demo-step .step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 0 0 4px var(--paper);
}

body.inner-page .demo-step-content {
    flex: 1;
}

body.inner-page .demo-step h3 {
    font-size: 19px;
    font-weight: 500;
    color: var(--navy);
    margin: 0 0 6px 0;
}

body.inner-page .demo-step p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Demo form card (Right column) */
body.inner-page .demo-card {
    background-color: var(--white);
    border-radius: 24px;
    padding: 44px 40px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

body.inner-page .demo-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

body.inner-page .demo-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

body.inner-page .demo-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.inner-page .demo-form label {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--navy);
}

body.inner-page .demo-form input,
body.inner-page .demo-form select,
body.inner-page .demo-form textarea {
    width: 100%;
    box-sizing: border-box;
    font-family: 'Switzer', sans-serif;
    font-size: 15px;
    color: var(--navy);
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 13px 16px;
    transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

body.inner-page .demo-form input::placeholder,
body.inner-page .demo-form textarea::placeholder {
    color: rgba(58, 63, 85, 0.4);
}

body.inner-page .demo-form input:focus,
body.inner-page .demo-form select:focus,
body.inner-page .demo-form textarea:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(35, 39, 82, 0.12);
}

body.inner-page .demo-form textarea {
    resize: vertical;
    min-height: 100px;
}

body.inner-page .demo-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23232752' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-position: right 16px center;
    background-repeat: no-repeat;
    padding-right: 40px;
}

body.inner-page .demo-form .demo-form-subhead {
    margin: 8px 0 -4px;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted, #3a3f55);
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

body.inner-page .demo-turnstile {
    display: flex;
    justify-content: center;
    padding: 4px 0;
}

/* Error alert */
body.inner-page .demo-error-alert {
    background-color: rgba(225, 97, 75, 0.08);
    border-left: 4px solid #E1614B;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #E1614B;
}

body.inner-page .demo-error-alert .material-symbols-outlined {
    font-size: 20px;
    flex-shrink: 0;
}

body.inner-page .demo-error-alert p {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

/* Form actions */
body.inner-page .demo-form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding-top: 4px;
}

body.inner-page .demo-submit-btn {
    width: 100%;
    padding: 16px 32px;
    font-size: 16px;
    border: none;
}

body.inner-page .demo-form-fineprint {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
    max-width: 320px;
    line-height: 1.5;
}

/* Success state */
body.inner-page .demo-success-card {
    text-align: center;
    padding: 72px 40px;
}

body.inner-page .demo-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #2F9C8F;
    color: #2F9C8F;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

body.inner-page .demo-success-icon .material-symbols-outlined {
    font-size: 44px;
}

body.inner-page .demo-success-card h2 {
    font-size: 28px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 12px;
}

body.inner-page .demo-success-card p {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 380px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Contact page layout */
body.inner-page .contact-section {
    padding: 40px 0 140px;
    background-color: var(--paper);
}

body.inner-page .contact-container {
    max-width: 840px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

body.inner-page .contact-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

body.inner-page .contact-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 36px 32px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.3s var(--ease-out);
}

body.inner-page .contact-card:hover {
    transform: translateY(-2px);
}

body.inner-page .contact-card .contact-icon {
    font-size: 32px;
    color: var(--navy);
    margin-bottom: 4px;
}

body.inner-page .contact-card h2 {
    font-size: 22px;
    font-weight: 500;
    color: var(--navy);
    margin: 0;
}

body.inner-page .contact-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

body.inner-page .contact-card .contact-email {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    text-decoration: underline;
    margin-top: 8px;
    transition: color 0.2s;
}

body.inner-page .contact-card .contact-email:hover {
    color: var(--amber);
}

/* Contact entity / location block */
body.inner-page .contact-entity {
    background-color: var(--white);
    border-radius: 20px;
    padding: 28px 32px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

body.inner-page .contact-entity .contact-icon {
    font-size: 28px;
    color: var(--navy);
    flex-shrink: 0;
    margin-top: 2px;
}

body.inner-page .entity-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

body.inner-page .entity-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
    margin: 0;
}

body.inner-page .entity-reg {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

body.inner-page .entity-location {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* Contact CTAs */
body.inner-page .contact-ctas {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 16px;
}

/* Helper utilities for script interactions */
body.inner-page main .hidden {
    display: none !important;
}

body.inner-page main .opacity-0 {
    opacity: 0 !important;
}

body.inner-page main .pointer-events-none {
    pointer-events: none !important;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    body.inner-page .demo-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
    }
}

@media (max-width: 768px) {
    body.inner-page .demo-section,
    body.inner-page .contact-section {
        padding: 24px 0 80px;
    }
    body.inner-page .demo-card {
        padding: 32px 20px;
    }
    body.inner-page .demo-form .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    body.inner-page .contact-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    body.inner-page .contact-card {
        padding: 28px 24px;
    }
    body.inner-page .contact-entity {
        padding: 24px 20px;
    }
    body.inner-page .contact-ctas {
        flex-direction: column;
    }
    body.inner-page .contact-ctas .btn {
        width: 100%;
    }
}


/* Inner pages: legal and 404 */
body.inner-page.legal-page,
body.inner-page.not-found-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.inner-page.legal-page main,
body.inner-page.not-found-page main {
    flex: 1 0 auto;
}

body.inner-page .legal-hero {
    padding-bottom: 48px;
}

body.inner-page .legal-hero .hero-date,
body.inner-page .legal-hero .hero-fineprint {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

body.inner-page .legal-section {
    padding: 64px 0 120px;
    background: var(--white);
    border-top: 1px solid var(--border);
}

body.inner-page .legal-content {
    max-width: 720px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    color: var(--navy);
}

body.inner-page .legal-content p {
    margin: 0 0 28px;
    color: var(--navy);
}

body.inner-page .legal-content p:last-child {
    margin-bottom: 0;
}

body.inner-page .legal-content a {
    color: var(--navy);
    text-decoration: underline;
    transition: color 0.2s;
}

body.inner-page .legal-content a:hover {
    color: var(--amber);
}

body.inner-page .not-found-hero {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 160px 0 100px;
}

body.inner-page .not-found-hero .container {
    width: 100%;
}

body.inner-page .not-found-hero .hero-ctas {
    padding-bottom: 0;
}

@media (max-width: 768px) {
    body.inner-page .legal-hero {
        padding-bottom: 32px;
    }
    body.inner-page .legal-section {
        padding: 40px 0 80px;
    }
    body.inner-page .not-found-hero {
        padding: 140px 0 60px;
    }
}


/* Articles */
body.inner-page.article-page {
    background-color: var(--white);
}

body.inner-page.article-page .page-hero {
    background-color: var(--paper);
    padding: 140px 0 40px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

body.inner-page.article-page .article-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 20px;
    text-decoration: none;
    transition: color 0.2s var(--ease-out);
}

body.inner-page.article-page .article-back-link:hover {
    color: var(--amber);
}

body.inner-page.article-page .page-hero p.text-secondary {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 auto 16px;
}

body.inner-page.article-page .page-hero h1 {
    font-size: clamp(30px, 4.5vw, 52px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--navy);
    max-width: 840px;
    margin: 0 auto 20px;
}

body.inner-page.article-page .page-hero .intro {
    font-size: clamp(17px, 1.8vw, 20px);
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 20px;
    line-height: 1.5;
}

body.inner-page.article-page .page-hero p.text-on-surface-variant {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 auto;
}

body.inner-page.article-page .article-opinion-note {
    max-width: 680px;
    margin: 20px auto 0;
    text-align: left;
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 3px solid var(--amber);
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
}

body.inner-page.article-page .article-opinion-note span {
    font-family: ui-monospace, Consolas, monospace;
    font-weight: 600;
    color: var(--navy);
}

body.inner-page.article-page .article-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

body.inner-page.article-page .article-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    border-radius: 999px;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--white);
    color: var(--navy);
    border: 1px solid var(--border);
}

body.inner-page.article-page .article-content-section {
    padding: 80px 0 100px;
    background: var(--white);
}

body.inner-page.article-page article.max-w-3xl {
    max-width: 720px;
    margin: 0 auto;
}

body.inner-page.article-page .max-w-7xl {
    max-width: 1200px;
    margin: 0 auto;
}

/* Article Body Typography */
.article-body {
    font-family: 'Switzer', sans-serif;
    font-size: 18px;
    line-height: 1.75;
    color: #2D3248;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--navy);
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.article-body h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: clamp(20px, 2.5vw, 24px);
    line-height: 1.3;
    color: var(--navy);
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
}

/* body.inner-page a (line ~176) resets links, so these need the same specificity or more */
body.inner-page .article-body a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--amber);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    transition: color 0.2s var(--ease-out);
}

body.inner-page .article-body a:hover {
    color: var(--amber);
}

body.inner-page .article-body ul,
body.inner-page .article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    line-height: 1.75;
}

body.inner-page .article-body ul {
    list-style-type: disc;
}

body.inner-page .article-body ol {
    list-style-type: decimal;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body li::marker {
    color: var(--amber);
}

.article-body blockquote {
    border-left: 3px solid var(--amber);
    padding: 14px 22px;
    margin: 2rem 0;
    background: var(--paper);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--text-muted);
}

.article-body blockquote p:last-child {
    margin-bottom: 0;
}

.article-body code {
    font-family: ui-monospace, Consolas, monospace;
    background: var(--light-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 0.88em;
    color: var(--navy);
}

.article-body .overflow-x-auto {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 2rem 0;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.article-body table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    text-align: left;
    font-size: 15px;
}

.article-body th {
    background: var(--light-bg);
    font-family: ui-monospace, Consolas, monospace;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--navy);
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}

.article-body td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    vertical-align: top;
}

.article-body tr:last-child td {
    border-bottom: none;
}

.article-body img {
    border-radius: 16px;
    border: 1px solid var(--border);
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
}

/* Takeaways Card */
.article-takeaways {
    background: var(--paper);
    border: 1px solid var(--border);
    border-left: 4px solid var(--amber);
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.article-takeaways .takeaways-eyebrow {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--navy);
    margin: 0 0 14px;
}

.article-takeaways ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.article-takeaways li {
    font-size: 16px;
    line-height: 1.6;
    color: var(--navy);
    margin-bottom: 8px;
}

.article-takeaways li:last-child {
    margin-bottom: 0;
}

.article-takeaways li::marker {
    color: var(--amber);
}

/* Sources Card */
.article-sources {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px 32px;
    margin-top: 48px;
}

.article-sources .sources-eyebrow {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--navy);
    margin: 0 0 12px;
}

.article-sources ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.article-sources li {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.article-sources li:last-child {
    margin-bottom: 0;
}

.article-sources .source-link {
    color: var(--navy);
    text-decoration: underline;
    transition: color 0.2s;
}

.article-sources .source-link:hover {
    color: var(--amber);
}

/* Share Box */
.article-share {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px 28px;
    margin-top: 48px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.article-share .share-label {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-right: 4px;
}

.article-share .share-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.article-share .share-link {
    display: inline-flex;
    align-items: center;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 16px;
    text-decoration: none;
    transition: transform 0.2s var(--ease-out), border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.article-share .share-link:hover {
    transform: translateY(-1px);
    border-color: var(--amber);
    color: var(--amber);
}

/* Article CTA Card */
.article-cta {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    margin-top: 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    text-align: center;
}

.article-cta .cta-heading {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 500;
    color: var(--navy);
    margin: 0 0 12px;
    line-height: 1.25;
}

.article-cta .cta-body {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 580px;
    margin: 0 auto 28px;
}

.article-cta .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Related Reading Section */
.related-section {
    background: var(--paper);
    border-top: 1px solid var(--border);
    padding: 80px 0;
}

.related-eyebrow {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--navy);
    text-align: center;
    margin-bottom: 32px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1040px;
    margin: 0 auto;
}

.related-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    text-decoration: none;
    transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.related-card:hover {
    transform: translateY(-2px);
    border-color: var(--amber);
}

.related-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--navy);
}

.related-arrow {
    font-size: 18px;
    color: var(--amber);
    align-self: flex-end;
}

/* Articles Index */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.article-index-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.article-index-card:hover {
    transform: translateY(-2px);
    border-color: var(--amber);
}

.article-card-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
    background: var(--light-bg);
    border-bottom: 1px solid var(--border);
}

.article-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease-out);
}

.article-index-card:hover .article-card-thumb img {
    transform: scale(1.03);
}

.article-card-body {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.article-card-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--light-bg);
    color: var(--navy);
    border: 1px solid var(--border);
}

.article-card-date {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.article-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--navy);
    margin: 0 0 12px;
}

.article-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.article-card-title a:hover {
    color: var(--amber);
}

.article-card-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.articles-index-cta {
    margin-top: 80px;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.articles-index-cta .cta-text {
    text-align: left;
}

.articles-index-cta .cta-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 500;
    color: var(--navy);
    margin: 0 0 8px;
}

.articles-index-cta .cta-desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.articles-index-cta .cta-actions {
    display: flex;
    flex-direction: row;
    gap: 16px;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    body.inner-page.article-page .page-hero {
        padding: 120px 0 32px;
    }
    body.inner-page.article-page .article-content-section {
        padding: 48px 0 64px;
    }
    .article-takeaways {
        padding: 24px 20px;
        margin-bottom: 32px;
    }
    .article-sources {
        padding: 24px 20px;
    }
    .article-cta {
        padding: 32px 20px;
    }
    .article-cta .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }
    .article-cta .cta-buttons .btn {
        width: 100%;
    }
    .related-section {
        padding: 60px 0;
    }
    .related-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .articles-index-cta {
        flex-direction: column;
        padding: 36px 24px;
        text-align: center;
        gap: 24px;
        margin-top: 60px;
    }
    .articles-index-cta .cta-text {
        text-align: center;
    }
    .articles-index-cta .cta-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .articles-index-cta .cta-actions .btn {
        width: 100%;
    }
}


/* YouTube click-to-load facade (assets/site.js swaps in the iframe on click) */
.yt-card { margin: 0; }
.yt-facade { position: relative; aspect-ratio: 16 / 9; background: var(--navy); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.yt-facade .yt-play { display: block; position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; }
.yt-facade img { display: block; width: 100%; height: 100%; object-fit: cover; }
.yt-facade .yt-play-icon { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--amber); box-shadow: 0 2px 0 rgba(35, 39, 82, 0.35); transition: transform 0.2s var(--ease-out); }
.yt-facade .yt-play-icon::after { content: ''; position: absolute; top: 50%; left: 50%; margin: -11px 0 0 -7px; border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent var(--navy); }
.yt-facade .yt-play:hover .yt-play-icon, .yt-facade .yt-play:focus-visible .yt-play-icon { transform: scale(1.08); }
.yt-facade .yt-play:focus-visible { outline: 3px solid var(--amber); outline-offset: -3px; }
.yt-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-link { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 500; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.yt-link:hover { color: var(--amber); }

/* Videos page */
.videos-page-section { padding: 48px 0 24px; background: var(--white); }
.videos-page-section + .videos-page-section { padding-top: 24px; }
.videos-page-section:last-of-type { padding-bottom: 96px; }
.videos-page-section h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 500; letter-spacing: -0.02em; color: var(--navy); margin: 0 0 28px; }
.video-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 32px 28px; list-style: none; padding: 0; margin: 0; }
.video-list h3 { font-size: 20px; font-weight: 500; color: var(--navy); margin: 14px 0 4px; }
.video-list p { font-size: 16px; line-height: 1.5; color: rgba(58, 63, 85, 0.8); margin: 0; }
@media (max-width: 480px) { .videos-page-section { padding-top: 32px; } }
