/* =========================================================================
   site.css — the fyscaltech.com design language, applied on top of
   styles.css. Values are taken from the live site (fyscalarcx page):
   type scale, eyebrows, the 6 x 4 hero grid with plus markers, joined
   bordered card grids, the ink band, a solid brand-blue CTA band,
   the dark multi-column footer, and the motion (heroUp, glassIn, float,
   ping, reveal, card lift). Shared by the Platform Guide and the Developer
   Portal; keep the two copies identical.
   ========================================================================= */

:root {
    --surface-soft: #f8f8f8;
    --mono-400: #999;
    --mono-500: #7f7f7f;
    --mono-600: #666;
    --mono-700: #4c4c4c;
    --ink: #171717;
    --ease-site: cubic-bezier(.2, .7, .2, 1);
    --site-grid-line: rgba(10, 16, 40, .055);
}

::selection { background: var(--primary); color: #fff; }
body { overflow-x: clip; }

/* ---------- Header: white glass, as on the website ---------- */
.nav {
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
.nav-links a { color: var(--mono-600); transition: color .15s; }
.nav-links a:hover { color: var(--primary); }
.nav-ai-pill {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transition: background .15s, border-color .15s;
}
.nav-ai-pill:hover { background: var(--tertiary-2); border-color: var(--tertiary-2); color: #fff; }

/* ---------- Buttons (WBtn: square, 1.5px border) ---------- */
.btn { font-size: 15px; padding: 14px 26px; letter-spacing: -.01em; transition: all .15s; }
.btn-primary { box-shadow: none; }
.btn-ghost { background: rgba(255, 255, 255, .5); border: 1.5px solid rgba(10, 16, 40, .18); }
.btn-ghost:hover { background: #fff; }
.btn-light { background: #fff; color: var(--primary); border: 1.5px solid #fff; }
.btn-light:hover { background: rgba(255, 255, 255, .85); }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .5); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); }
.btn-lg { padding: 15px 28px; font-size: 15px; font-weight: 600; }

/* ---------- Eyebrows: a short rule + spaced capitals ---------- */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 18px;
}
.section-eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }

/* ---------- Type scale ---------- */
#landingMain .section-head h2,
.cta-band h2 {
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -.03em;
    line-height: 1.1;
    text-wrap: balance;
}
#landingMain .section-sub { font-size: 18px; line-height: 1.6; color: var(--mono-500); max-width: 620px; margin-top: 16px; }
#landingMain .section-head { margin-bottom: 52px; }
#landingMain > .section { padding-top: 88px; padding-bottom: 88px; }

/* ---------- Hero ---------- */
.hero { isolation: isolate; overflow: visible; }
.hero::before, .hero::after { display: none; }
.hero > .cx-grid {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(50% - 50vw);
    right: calc(50% - 50vw);
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(to right, var(--site-grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--site-grid-line) 1px, transparent 1px);
    background-size: 16.666% 25%;
    background-position: -1px -1px;
    border-bottom: 1px solid var(--border);
}
.hero > .cx-grid::after {
    /* the website's scrim: keeps the headline crisp over the grid */
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, .45) 26%, rgba(255, 255, 255, 0) 52%);
}
.cx-grid-plus { position: absolute; width: 13px; height: 13px; transform: translate(-50%, -50%); }
.cx-grid-plus::before, .cx-grid-plus::after { content: ""; position: absolute; background: rgba(53, 46, 255, .32); }
.cx-grid-plus::before { width: 1.5px; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); }
.cx-grid-plus::after { height: 1.5px; left: 0; right: 0; top: 50%; transform: translateY(-50%); }

@media (min-width: 1281px) { .hero { max-width: 1184px; padding-left: 0; padding-right: 0; } }
.hero h1 {
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -.035em;
    text-wrap: balance;
}
.hero h1 .accent { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--primary); }
.hero-lead { font-size: 17px; line-height: 1.6; color: var(--mono-600); }

/* hero badge: exactly the website's .hero-badge (fyscaltech.com/who-we-are) —
   translucent white pill whose 1px border is white too, so no grey outline */
.hero-content > .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
    color: #4c4c4c;
    padding: 6px 13px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .6);
    border: 1px solid rgba(255, 255, 255, .8);
    box-shadow: none;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.hero-eyebrow .dot {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1f8a5b;
    box-shadow: 0 0 8px rgba(31, 138, 91, .7);
}
/* stats: the website's metric style, set in FT Sans */
.hero-stats { background: rgba(255, 255, 255, .7); border-color: rgba(10, 16, 40, .1); }
.hero-stat .num { font-family: var(--font-body); font-size: 30px; font-weight: 600; letter-spacing: -.04em; }
.hero-stat .label { color: var(--mono-500); }

/* mock-panel window bar: red / amber / green dots */
.hero-shot-bar span:nth-child(1), .code-tabbar .win-dots i:nth-child(1) { background: #ff5f57; }
.hero-shot-bar span:nth-child(2), .code-tabbar .win-dots i:nth-child(2) { background: #febc2e; }
.hero-shot-bar span:nth-child(3), .code-tabbar .win-dots i:nth-child(3) { background: #28c840; }
.hero-shot { box-shadow: 0 24px 60px rgba(10, 16, 40, .14); }

/* ---------- Trust strip: a joined, bordered row ---------- */
.trust-row {
    gap: 0;
    padding: 0;
    max-width: 1184px;
    margin: 56px auto 0;
    border: 1px solid var(--border);
    background: var(--bg);
}
.trust-row:has(+ .section--soft) { margin-bottom: 72px; }
@media (max-width: 1280px) { .trust-row { margin-left: 48px; margin-right: 48px; } }
@media (max-width: 768px) { .trust-row { margin: 40px 20px 0; } }
.trust-item {
    padding: 26px 28px;
    border-right: 1px solid var(--border);
    transition: background .3s, transform .3s;
}
.trust-item:last-child { border-right: 0; }
.trust-item:hover { background: var(--surface-soft); }
.trust-icon {
    width: 40px;
    height: 40px;
    flex: none;
    background: var(--primary-soft);
    color: var(--primary);
}
.trust-icon svg { stroke: currentColor; }

/* ---------- Joined card grids (capabilities, modules) ---------- */
.capability-grid,
.mod-grid--flat {
    gap: 0;
    border: 1px solid var(--border);
    background: var(--border);
    grid-gap: 1px;
}
.capability-card {
    display: block;
    background: var(--bg);
    padding: 32px 28px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transition: background .3s, transform .3s var(--ease-site);
}
.capability-card:hover { background: var(--surface-soft); transform: translateY(-4px); box-shadow: none; }
.capability-card .cap-icon {
    width: 40px;
    height: 40px;
    border-radius: 0;
    margin-bottom: 20px;
}
.capability-card h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 10px; }
.capability-card p { font-size: 14px; line-height: 1.6; color: var(--mono-500); }

.mod-grid--flat {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: auto;
    max-width: none !important;
}
.mod-grid--flat .mod-card {
    background: var(--bg);
    border: 0;
    border-radius: 0;
    padding: 28px 26px 24px;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
    transition: transform .3s var(--ease-site), background .3s;
}
.mod-grid--flat .mod-card, .mod-grid--flat .mod-card.revealed { opacity: 1; transition-delay: 0s !important; }
.mod-grid--flat .mod-card:not(:hover) { transform: none; }
.mod-grid--flat .mod-card:hover { background: var(--surface-soft); transform: translateY(-4px); box-shadow: none; }
.mod-card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.mod-num { font: 700 12px var(--font-mono); letter-spacing: .08em; color: var(--mono-400); }
.mod-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 4px 0 10px;
}
.mod-cat .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.mod-grid--flat .mod-card h3 { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 8px; }
.mod-grid--flat .mod-icon { width: 40px; height: 40px; margin-bottom: 18px; box-shadow: none; }
.mod-grid--flat .mod-cat { align-self: flex-start; }
.mod-grid--flat .mod-explore { align-self: flex-start; }
.mod-grid--flat .mod-card p { font-size: 13.5px; line-height: 1.6; color: var(--mono-500); flex: 1; }
.mod-explore { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--primary); transition: gap .15s; }
.mod-card:hover .mod-explore { gap: 11px; }
.mod-card--fill { background: var(--surface-soft) !important; }
.mod-card--fill:hover { background: var(--primary) !important; }
.mod-card--fill:hover h3, .mod-card--fill:hover p, .mod-card--fill:hover .mod-cat, .mod-card--fill:hover .mod-explore { color: #fff; }
.mod-card--fill kbd { font: 600 11px var(--font-mono); padding: 1px 6px; border: 1px solid var(--border); background: var(--bg); color: var(--fg); }

/* ---------- Quick Start: the website's ink band ---------- */
#landingMain > #quickstart, #landingMain > #quickstart-teaser { position: relative; isolation: isolate; }
#landingMain > #quickstart::before, #landingMain > #quickstart-teaser::before {
    content: "";
    position: absolute;
    inset: 0 calc(50% - 50vw);
    background: var(--ink);
    z-index: -1;
}
.quickstart { background: none; padding: 0; gap: 56px; }
.quickstart h2 { font-size: 40px; font-weight: 600; letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; }
.quickstart p { color: rgba(255, 255, 255, .62); font-size: 16.5px; line-height: 1.6; }
.qs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font: 700 12px var(--font-mono);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--tertiary-1);
    margin-bottom: 22px;
}
.qs-eyebrow::before { content: ""; width: 11px; height: 11px; background: var(--primary); }
.qs-steps { gap: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.qs-step { padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.qs-num { width: 28px; height: 28px; background: var(--primary); font: 700 12px var(--font-mono); }
.qs-step h3 { color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 3px; }
.qs-step p { color: rgba(255, 255, 255, .55); font-size: 14px; margin: 0; }

/* ---------- Release teaser ---------- */
#landingMain > #updates { padding-top: 56px; padding-bottom: 56px; }

/* ---------- Closing call to action (solid brand blue) ---------- */
.cta-band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 88px 32px;
    text-align: center;
    color: #fff;
    background: var(--primary);
}
.cta-wrap { max-width: 700px; margin: 0 auto; }
.cta-band h2 { color: #fff; margin-bottom: 20px; }
.cta-band p { font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .9); margin-bottom: 32px; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-buttons .btn { cursor: pointer; font-family: var(--font-body); }

/* ---------- Footer: dark, multi-column ---------- */
footer { background: var(--ink); color: #fff; padding: 64px 32px 36px; border-top: 0; margin-top: 0; }
body.docs-open footer { margin-top: 64px; }

/* back to top: square, brand, like the website's buttons */
.back-to-top { border-radius: 0; background: var(--primary); border: 1.5px solid var(--primary); color: #fff; box-shadow: 0 10px 26px rgba(53, 46, 255, .3); }
.back-to-top:hover { background: var(--tertiary-2); border-color: var(--tertiary-2); }
footer .foot-inner { max-width: 1200px; margin: 0 auto; }
.foot-grid {
    flex: 0 0 100%;
    width: 100%;
    display: grid;
    grid-template-columns: 1.6fr repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 44px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.foot-col h4 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
    margin: 4px 0 18px;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 12px; }
.foot-col li a { font-size: 14.5px; color: rgba(255, 255, 255, .78); text-decoration: none; transition: color .2s; }
.foot-col li a:hover { color: #fff; }
footer .foot-brand img { filter: brightness(0) invert(1); height: 34px; width: auto; }
.foot-tagline { font-size: 14.5px; line-height: 1.55; color: rgba(255, 255, 255, .6); margin: 18px 0 22px; max-width: 300px; }
.foot-social { display: flex; gap: 10px; margin-bottom: 24px; }
.foot-social a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: background .2s, border-color .2s;
}
.foot-social a:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.foot-cert { display: block; width: 76px; height: 76px; padding: 8px; background: #fff; border-radius: 10px; }
footer .foot-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px 24px;
    padding-top: 26px;
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
    border-top: 0;
}
footer .foot-bottom .foot-edition { color: rgba(255, 255, 255, .6); }
footer .foot-bottom .foot-edition a { color: #fff; }

/* ---------- FAQ accordion (website .faq-item) ---------- */
.faq-list { border-top: 1px solid var(--border); margin: 8px 0 32px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
    font-size: 17px;
    font-weight: 600;
    line-height: normal;
    letter-spacing: -.01em;
    color: var(--fg);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--primary); }
.faq-icon { flex: none; width: 24px; height: 24px; position: relative; margin-top: 1px; }
.faq-icon::before, .faq-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--primary);
    transform: translate(-50%, -50%);
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; transition: transform .25s var(--ease-site); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-a { padding: 0 44px 26px 0; max-width: 600px; }
.faq-a, .faq-a p { font-size: 15px; line-height: 1.7; color: var(--mono-500); }
.faq-a strong { color: var(--fg); font-weight: 600; }
.faq-a > :first-child { margin-top: 0; }
.faq-a > :last-child { margin-bottom: 0; }

/* ---------- Doc chapters: eyebrow in the website's style ---------- */
.doc-section .sec-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: .12em;
    background: none;
    padding: 0;
}
.doc-section .sec-tag::before { content: ""; width: 24px; height: 2px; background: currentColor; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .mod-grid--flat { grid-template-columns: repeat(2, 1fr); }
    .trust-row { grid-template-columns: repeat(2, 1fr); }
    .trust-item:nth-child(2n) { border-right: 0; }
    .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
    .foot-grid { grid-template-columns: repeat(3, 1fr); }
    .foot-col--brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    #landingMain .section-head h2, .cta-band h2, .quickstart h2 { font-size: 32px; }
    #landingMain > .section { padding-top: 64px; padding-bottom: 64px; }
    .cta-band { padding: 64px 20px; }
    .foot-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .hero-stat { min-width: 0; padding: 12px 14px; }
    .hero-stat .num { font-size: 22px; white-space: nowrap; }
    .mod-grid--flat, .trust-row { grid-template-columns: 1fr; }
    .mod-grid--flat .mod-card { padding: 22px 20px; }
    .mod-grid--flat .mod-icon { width: 36px; height: 36px; margin-bottom: 12px; }
    .mod-grid--flat .mod-card p { flex: none; }
    .mod-explore { margin-top: 8px; }
    .trust-item { border-right: 0; border-bottom: 1px solid var(--border); }
    .trust-item:last-child { border-bottom: 0; }
    .cta-buttons .btn { width: 100%; }
    .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* ---------- Motion (the website's keyframes and timings) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .hero-tour, .hero-code {
        opacity: 0;
        animation: glassIn 1s var(--ease-site) .5s forwards, floatA 8s ease-in-out 1.6s infinite;
    }
    @keyframes heroUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
    @keyframes glassIn { from { opacity: 0; transform: translateY(34px) scale(.97); } to { opacity: 1; transform: none; } }
    @keyframes floatA { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

    .hero-eyebrow .dot::after {
        content: "";
        position: absolute;
        inset: -4px;
        border-radius: 50%;
        border: 1.5px solid #1f8a5b;
        animation: ping 2s cubic-bezier(0, 0, .2, 1) infinite;
    }
    .hero-eyebrow .dot { animation: badgePulse 1.8s ease-in-out infinite; }
    @keyframes badgePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(31, 138, 91, .5); } 50% { box-shadow: 0 0 0 5px rgba(31, 138, 91, 0); } }
    @keyframes ping { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(2.2); opacity: 0; } }

    html.reveal-on .reveal {
        opacity: 0;
        transform: translateY(28px);
        transition: opacity .7s var(--ease-site), transform .7s var(--ease-site);
    }
    html.reveal-on .reveal.in { opacity: 1; transform: none; }
    html.reveal-on .reveal.d1 { transition-delay: .08s; }
    html.reveal-on .reveal.d2 { transition-delay: .16s; }
    html.reveal-on .reveal.d3 { transition-delay: .24s; }


}

@media print {
    .cx-grid, .cta-band, .foot-social, .foot-cert { display: none !important; }
    footer { background: none; color: inherit; }
}

/* ---------- Dark theme (the website's dark mode: ink, magenta accents) ---------- */
@media screen {
    :root[data-theme="dark"] { --site-grid-line: rgba(255, 255, 255, .06); --surface-soft: var(--dk-surface-2); --mono-500: var(--dk-muted); --mono-600: var(--dk-body); --mono-700: var(--dk-body); }
    :root[data-theme="dark"] .nav { background: rgba(23, 23, 23, .86); }
    :root[data-theme="dark"] .nav-ai-pill { background: transparent; border-color: var(--dk-pink); color: var(--dk-pink); }
    :root[data-theme="dark"] .nav-ai-pill:hover { background: var(--dk-pink-soft); }
    :root[data-theme="dark"] .hero > .cx-grid::after {
        background:
            linear-gradient(180deg, rgba(23, 23, 23, .85) 0%, rgba(23, 23, 23, .45) 26%, rgba(23, 23, 23, 0) 52%);
    }
    :root[data-theme="dark"] .cx-grid-plus::before, :root[data-theme="dark"] .cx-grid-plus::after { background: rgba(255, 92, 255, .4); }
    :root[data-theme="dark"] .hero h1 .accent { background-image: none; color: var(--dk-pink); -webkit-text-fill-color: var(--dk-pink); }
    /* dark: no visible pill. On the site the badge sits on a white hero, so its 60% white fill never reads as an oval; on our dark hero it would. Text as the site's light-on-dark badge (.hbadge-dark): 90% white. */
    :root[data-theme="dark"] .hero-content > .hero-eyebrow { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; color: rgba(255, 255, 255, .9); }
    :root[data-theme="dark"] .hero-stats { background: rgba(255, 255, 255, .02); border-color: var(--dk-line); }
    :root[data-theme="dark"] .trust-row, :root[data-theme="dark"] .capability-grid, :root[data-theme="dark"] .mod-grid--flat { border-color: var(--dk-line); background: var(--dk-line); }
    :root[data-theme="dark"] .trust-row { background: var(--dk-bg); }
    :root[data-theme="dark"] .trust-item { border-color: var(--dk-line); }
    :root[data-theme="dark"] .trust-icon { background: var(--dk-pink-soft); color: var(--dk-pink); }
    :root[data-theme="dark"] .capability-card, :root[data-theme="dark"] .mod-grid--flat .mod-card { background: var(--dk-bg); }
    :root[data-theme="dark"] .capability-card:hover, :root[data-theme="dark"] .mod-grid--flat .mod-card:hover { background: var(--dk-surface); }
    :root[data-theme="dark"] .mod-cat, :root[data-theme="dark"] .mod-explore, :root[data-theme="dark"] .section-eyebrow { color: var(--dk-pink); }
    :root[data-theme="dark"] .mod-card--fill { background: var(--dk-surface) !important; }
    :root[data-theme="dark"] .mod-card--fill:hover { background: var(--dk-pink-soft) !important; }
    :root[data-theme="dark"] #landingMain > #quickstart::before, :root[data-theme="dark"] #landingMain > #quickstart-teaser::before { background: #000; }
    :root[data-theme="dark"] .quickstart { background: none; border: 0; }
    :root[data-theme="dark"] .qs-eyebrow { color: var(--dk-pink); }
    :root[data-theme="dark"] .qs-eyebrow::before, :root[data-theme="dark"] .qs-num { background: #ff00ff; }
    :root[data-theme="dark"] .cta-band { background: #352eff; }
    :root[data-theme="dark"] footer { background: #000; }
    :root[data-theme="dark"] .faq-q { color: var(--dk-text); }
    :root[data-theme="dark"] .faq-icon::before, :root[data-theme="dark"] .faq-icon::after { background: var(--dk-pink); }
}

/* ---------- Soft band behind one landing section (website .pe-section) ---------- */
#landingMain > #lifecycle, #landingMain > #capabilities.section--soft { position: relative; isolation: isolate; }
#landingMain > #lifecycle::before, #landingMain > #capabilities.section--soft::before {
    content: "";
    position: absolute;
    inset: 0 calc(50% - 50vw);
    z-index: -1;
    background: var(--surface-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
:root[data-theme="dark"] .back-to-top { background: #352eff; border-color: #352eff; color: #fff; }

/* ---------- Module groups by category (Platform Guide) ---------- */
.mod-groups--site { display: flex; flex-direction: column; gap: 44px; }
.mod-groups--site .mod-row { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 20px; row-gap: 48px; }
.mod-groups--site .mod-group { grid-column: span var(--span); min-width: 0; margin: 0; display: flex; flex-direction: column; }
.mod-groups--site .mod-group > .mod-grid--flat { flex: 1; }
.mod-groups--site .mod-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
}
.mod-groups--site .mod-group-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--primary);
}
.mod-groups--site .mod-group-title::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.mod-groups--site .mod-group-count { font-size: 12.5px; color: var(--mono-500); }
@media (max-width: 1024px) {
    .mod-groups--site .mod-row { grid-template-columns: 1fr; }
    .mod-groups--site .mod-group { grid-column: auto; }
    .mod-groups--site .mod-grid--flat { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) { .mod-groups--site .mod-grid--flat { grid-template-columns: 1fr !important; } }
:root[data-theme="dark"] .mod-groups--site .mod-group-title { color: var(--dk-pink); }

/* ---------- Compact footer (Platform Guide) ---------- */
footer:has(.foot-grid--neat) { padding-top: 52px; }
.foot-grid--neat { grid-template-columns: 2fr repeat(3, 1fr); padding-bottom: 36px; }
.foot-grid--neat .foot-tagline { margin-bottom: 0; }
@media (max-width: 1024px) { .foot-grid--neat { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .foot-grid--neat { grid-template-columns: 1fr 1fr; } }
.mod-grid--flat .mod-card p code { overflow-wrap: anywhere; }

/* ---------- Independent module cards (website .blog-card) ----------
   Each card stands on its own: white, 1px #efefef border, square corners,
   20px apart; on hover it lifts 4px with the site's --shadow-md and the
   Explore arrow slides. */
.mod-groups--site .mod-grid--flat {
    gap: 20px;
    grid-gap: 20px;
    border: 0;
    background: none;
}
.mod-groups--site .mod-grid--flat .mod-card {
    background: var(--bg);
    border: 1px solid var(--border);
    box-shadow: none;
    transition: transform .22s, box-shadow .22s, border-color .22s;
}
.mod-groups--site .mod-grid--flat .mod-card:hover {
    background: var(--bg);
    transform: translateY(-4px);
    box-shadow: 0 2px 4px 0 rgba(16, 16, 19, .04), 0 24px 48px -8px rgba(16, 16, 19, .12);
}
.mod-groups--site .mod-grid--flat .mod-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.mod-groups--site .mod-card:hover .mod-icon { transform: none; }
:root[data-theme="dark"] .mod-groups--site .mod-grid--flat { background: none; }
:root[data-theme="dark"] .mod-groups--site .mod-grid--flat .mod-card { background: var(--dk-surface); border-color: var(--dk-line-strong); }
:root[data-theme="dark"] .mod-groups--site .mod-grid--flat .mod-card:hover { background: var(--dk-surface); border-color: var(--dk-pink); box-shadow: 0 24px 48px -12px rgba(0, 0, 0, .6); }

/* ---------- Icon system: fyscaltech.com's icon tiles ----------
   Researched from the site's 68 icons (/assets/icons/icon-N.svg) and their
   tiles (.core-benefit-ic, .core-zzic, .nav-link-ic):
   - tile: square, 10% brand blue (#352eff1a), 46px (48px on large cards)
   - icon: 22px line drawing, hairline stroke (1.875 in a ~74 box, ~0.6px
     rendered), round joins, two colours only: magenta #FF00FF and brand blue
     #352EFF; here the outer shape is magenta and the detail blue
   - no fills, gradients, shadows or tilt. */
.trust-icon, .capability-card .cap-icon, .cap-icon, .mod-grid--flat .mod-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 0;
    background: rgba(53, 46, 255, .1);
    box-shadow: none;
    transform: none;
}
.mod-grid--flat .mod-icon { width: 48px; height: 48px; }
.trust-icon svg, .cap-icon svg, .mod-grid--flat .mod-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #352eff;
    stroke-width: .9;
    stroke-linejoin: round;
    stroke-linecap: round;
}
.trust-icon svg > :first-child, .cap-icon svg > :first-child, .mod-grid--flat .mod-icon svg > :first-child { stroke: #ff00ff; }
.mod-card:hover .mod-icon, .capability-card:hover .cap-icon { transform: none; box-shadow: none; }
/* dark: the site's dark tile (#ff00ff26); blue lifted to the site's #7c9dff so it reads on dark */
:root[data-theme="dark"] .trust-icon, :root[data-theme="dark"] .cap-icon, :root[data-theme="dark"] .mod-grid--flat .mod-icon { background: rgba(255, 0, 255, .15); }
:root[data-theme="dark"] .trust-icon svg, :root[data-theme="dark"] .cap-icon svg, :root[data-theme="dark"] .mod-grid--flat .mod-icon svg { stroke: #7c9dff; }
:root[data-theme="dark"] .trust-icon svg > :first-child, :root[data-theme="dark"] .cap-icon svg > :first-child, :root[data-theme="dark"] .mod-grid--flat .mod-icon svg > :first-child { stroke: #ff00ff; }

/* Dark theme: headings are white, as on fyscaltech.com; pink stays for eyebrows, tags and accents */
:root[data-theme="dark"] .section-head h2,
:root[data-theme="dark"] .mod-groups ~ h2,
:root[data-theme="dark"] main > section > .section-head h2 { color: var(--dk-text); }

/* ---------- No gradient fills (solid brand colours only) ---------- */
.lc { background: #352eff; box-shadow: none; }
.lc::before { display: none; }
:root[data-theme="dark"] .lc { background: #1f1c6b; border: 1px solid #2c2766; }
.scroll-progress, :root[data-theme="dark"] .scroll-progress { background: var(--primary); }
:root[data-theme="dark"] .scroll-progress { background: #ff5cff; }
.hero-stat::before { background: var(--primary); }
/* lines under headings and between sections: solid blue, solid pink in dark */
.doc-section h2::before,
.doc-section hr.section-end,
.walk-tracker-fill { background: var(--primary); }
.doc-section .chapter-banner { background: #f8f8ff; }
:root[data-theme="dark"] .doc-section h2::before,
:root[data-theme="dark"] .doc-section hr.section-end,
:root[data-theme="dark"] .walk-tracker-fill { background: var(--dk-pink); }
:root[data-theme="dark"] .doc-section .chapter-banner { background: #1f1c22; }

:root[data-theme="dark"] .doc-section .sec-tag { background: none; padding: 0; }

/* =========================================================================
   Audit against fyscaltech.com (computed styles, 1440px), 12 Oct 2026.
   Each value below is the website's own.
   ========================================================================= */
/* base type on the marketing parts: 16px / 24px */
#landingMain, .nav, footer { font-size: 16px; line-height: 1.5; }

/* header: content in a 1200px row with 20px inner padding; 79px tall */
.nav {
    height: 79px;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: max(20px, calc((100% - 1200px) / 2 + 20px));
    padding-right: max(20px, calc((100% - 1200px) / 2 + 20px));
}
.nav-links { gap: 6px; }
.nav-links a { font-size: 15.4px; font-weight: 500; color: #4c4c4c; padding: 9px 13px; line-height: normal; }
.nav-ai-pill {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    line-height: 21px;
    letter-spacing: -.01em;
    padding: 12px 22px;
    border-width: 1.5px;
}

/* content width: 1200px, 32px side padding, as the website's sections */
#landingMain > .section { max-width: 1264px; padding-left: 32px; padding-right: 32px; }
.trust-row { max-width: 1200px; }
@media (min-width: 1281px) { .hero { max-width: 1180px; padding-left: 36px; padding-right: 36px; } }
footer .foot-inner { max-width: 1200px; }

/* full-width 1px rule under each landing section (website: border-bottom #efefef) */
#landingMain > .section:not(#quickstart):not(#quickstart-teaser) { position: relative; }
#landingMain > .section:not(#quickstart):not(#quickstart-teaser)::after {
    content: "";
    position: absolute;
    left: calc(50% - 50vw);
    right: calc(50% - 50vw);
    bottom: 0;
    height: 1px;
    background: var(--border);
    pointer-events: none;
}

/* headline */
.hero h1 { font-size: clamp(36px, 4.4vw, 56px); max-width: 620px; }

/* buttons: 15px / 22.5px, 15px 28px */
.btn, .btn-lg { padding: 15px 28px; font-size: 15px; line-height: 1.5; font-family: var(--font-body); }

/* eyebrow line-height */
.section-eyebrow { line-height: 1.5; }

/* capability cards: 28px padding, 16px/24px titles, 13px/1.6 body */
.capability-card { padding: 28px; }
.capability-card h3 { font-size: 16px; line-height: 1.5; letter-spacing: normal; margin-bottom: 10px; }
.capability-card p { font-size: 13px; line-height: 1.6; }

/* footer: website type and spacing */
footer { padding-top: 64px; }
footer:has(.foot-grid--neat) { padding-top: 64px; }
.foot-grid, .foot-grid--neat { padding-bottom: 44px; border-bottom-color: rgba(255, 255, 255, .12); }
.foot-col h4 { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; line-height: 1.5; color: rgba(255, 255, 255, .45); margin: 0 0 16px; }
.foot-col li { margin-bottom: 12px; }
.foot-col li a { font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .75); }
.foot-tagline { font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, .55); max-width: 240px; }
footer .foot-bottom { gap: 12px 24px; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .5); }
footer .foot-bottom .foot-edition { color: rgba(255, 255, 255, .5); }
/* chapter pages use a full-width three-column layout: align the header with the sidebar */
body.docs-open .nav { padding-left: 32px; padding-right: 32px; }
/* header controls share the CTA's 48px height */
.nav-search-pill { height: 48px; }
#themeToggle { width: 48px; height: 48px; }
@media (max-width: 768px) { .nav { height: 64px; } .nav-search-pill, #themeToggle { height: 40px; } #themeToggle { width: 40px; } .nav-ai-pill { padding: 9px 14px; } }
/* website breakpoints: headline 36px under 768px, 28px under 480px; hero buttons full width */
@media (max-width: 768px) { .hero h1 { font-size: 36px; } }
@media (max-width: 480px) {
    .hero h1 { font-size: 28px; }
    .hero-cta-row { flex-direction: column; align-items: stretch; }
    .hero-cta-row .btn { width: 100%; justify-content: center; }
    .hero-cta-row .btn-pdf { align-self: flex-start; }
}

/* ---------- Clickable cards: solid icon tile, as the site's clickable items ----------
   fyscaltech.com gives clickable items a solid brand tile with a white icon
   (.nav-group-ic, .ln-hubcard-ic: background var(--primary), icon
   filter brightness(0) invert(1)); the pale two-tone tile is for
   non-clickable feature items. --primary is blue, and magenta in dark. */
.mod-grid--flat .mod-icon,
a.capability-card .cap-icon { background: #352eff; }
.mod-grid--flat .mod-icon svg,
.mod-grid--flat .mod-icon svg > :first-child,
a.capability-card .cap-icon svg,
a.capability-card .cap-icon svg > :first-child { stroke: #fff; stroke-width: 1.1; }
:root[data-theme="dark"] .mod-grid--flat .mod-icon,
:root[data-theme="dark"] a.capability-card .cap-icon { background: #ff00ff; }
:root[data-theme="dark"] .mod-grid--flat .mod-icon svg,
:root[data-theme="dark"] .mod-grid--flat .mod-icon svg > :first-child,
:root[data-theme="dark"] a.capability-card .cap-icon svg,
:root[data-theme="dark"] a.capability-card .cap-icon svg > :first-child { stroke: #fff; }

/* ---------- Module category names: the site's card badge (dot + capitals) ----------
   As .capability-badge on fyscaltech.com/fyscalarcx ("• QUALITY"):
   11px, 700, .08em, uppercase, brand colour, 5px round dot, 6px gap. */
.mod-groups--site .mod-group-title {
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.5;
}
.mod-groups--site .mod-group-title::before {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

/* ---------- Trust strip with the site's 3D illustrations ----------
   As fyscaltech.com's .cx-tech-card (e.g. /runsync "Observability Stack"):
   card 32px 28px, a 130px illustration centred above the title (22px gap),
   title 19px/700/-.01em, text 14.5px/1.6 #7f7f7f, hover tint.
   The illustrations are Fyscal's own assets (images/brand/3d). */
.trust-item:has(.trust-vis) { display: block; padding: 32px 28px; transition: background .22s; }
.trust-item:has(.trust-vis):hover { background: var(--surface-soft); }
.trust-vis { display: flex; justify-content: center; align-items: center; height: 130px; margin-bottom: 22px; }
.trust-vis img { width: auto; max-width: 100%; height: auto; max-height: 130px; }
.trust-item:has(.trust-vis) h2 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; line-height: 1.5; margin: 0 0 9px; }
.trust-item:has(.trust-vis) p { font-size: 14.5px; line-height: 1.6; color: var(--mono-500); margin: 0; }
:root[data-theme="dark"] .trust-item:has(.trust-vis):hover { background: var(--dk-surface); }
/* the site's .cx-tech-grid: one 1px outer border, no dividers between cards (gap 0) */
.trust-row:has(.trust-vis) .trust-item,
.trust-row:has(.trust-vis) .trust-item:nth-child(n) { border: 0; }

/* =========================================================================
   Hero (Platform Guide). Left: headline, two buttons, the site's .hero-feats
   row (search and Ask AI stay in the header only). Right: the signal map.
   ========================================================================= */
.hero-feats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 38px;
    padding-top: 26px;
    border-top: 1px solid rgba(10, 16, 40, .12);
    max-width: 560px;
}
.hfeat { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: #4c4c4c; text-decoration: none; }
.hfeat .check { width: 16px; height: 16px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; font-size: 10px; }
.hfeat-link:hover { color: var(--primary); }

@media (max-width: 560px) { .hero-feats { gap: 14px 18px; } }

:root[data-theme="dark"] .hero-feats { border-top-color: var(--dk-line); }
:root[data-theme="dark"] .hfeat .check { background: #ff00ff; }
:root[data-theme="dark"] .hfeat { color: var(--dk-body); }

/* hero buttons sit 30px under the lead, as the site's .hero-ctas */
.hero-content .hero-cta-row { margin-top: 30px; margin-bottom: 0; gap: 12px; }

/* =========================================================================
   Hero signal map (Platform Guide): a living diagram of how data moves
   through Fyscal ARCX. Motion reuses the site's own SEA-section language:
   dashed data arcs (stroke-dasharray 9 26, 1.8s) and node halo pings.
   Glass nodes, two-tone icons, solid fills only.
   ========================================================================= */
.hero-flow {
    position: relative;
    z-index: 1;
    min-width: 0;
    padding: 20px 20px 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    box-shadow: 0 24px 60px rgba(10, 16, 40, .12);
}
.flow-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.flow-head-t { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mono-500); }
.flow-live { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 9999px; background: var(--primary-soft); color: var(--primary); }
.flow-live .dot { width: 6px; height: 6px; border-radius: 50%; background: #1f8a5b; }
.flow-map { position: relative; height: 220px; }
.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.flow-track { fill: none; stroke: rgba(53, 46, 255, .14); stroke-width: 1.5; }
.flow-edge { fill: none; stroke: rgba(53, 46, 255, .55); stroke-width: 1.5; stroke-dasharray: 5 9; stroke-linecap: round; transition: stroke .3s; }
.flow-edge.is-on { stroke: #ff00ff; stroke-width: 2; }
.flow-node {
    position: absolute;
    width: 27%;
    height: 62px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--fg);
    text-decoration: none;
    transition: border-color .25s, box-shadow .25s, transform .25s var(--ease-site);
}
.flow-node:hover, .flow-node.is-on { border-color: var(--primary); box-shadow: 0 12px 28px -12px rgba(53, 46, 255, .45); transform: translateY(-2px); }
.flow-node:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.flow-ic { position: relative; flex: none; width: 34px; height: 34px; display: grid; place-items: center; background: rgba(53, 46, 255, .1); }
.flow-ic svg { width: 18px; height: 18px; stroke: #352eff; stroke-width: 1.2; }
.flow-ic svg > :first-child { stroke: #ff00ff; }
.flow-node.is-on .flow-ic { background: #352eff; }
.flow-node.is-on .flow-ic svg, .flow-node.is-on .flow-ic svg > :first-child { stroke: #fff; }
.flow-tx { display: flex; flex-direction: column; min-width: 0; }
.flow-t { font-size: 12.5px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.flow-d { display: none; }
.flow-caps { min-height: 118px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(10, 16, 40, .08); }
.flow-cap { display: flex; flex-direction: column; gap: 4px; }
.flow-cap[hidden] { display: none; }
.flow-cap-n { font: 700 11px var(--font-mono); letter-spacing: .08em; color: var(--primary); }
.flow-cap-t { font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--fg); }
.flow-cap-d { font-size: 13.5px; line-height: 1.55; color: var(--mono-600); }
.flow-cap-link { align-self: flex-start; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--primary); text-decoration: none; }
.flow-cap-link:hover { text-decoration: underline; }
.flow-dots { display: flex; gap: 6px; margin-top: 12px; }
.flow-dot { width: 22px; height: 4px; padding: 0; border: 0; background: var(--border); cursor: pointer; transition: background .2s, width .2s; }
.flow-dot.is-on { width: 34px; background: var(--primary); }
.flow-dot:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
}
@media (max-width: 560px) {
    .flow-map { height: 230px; }
    .flow-node { padding: 8px; gap: 0; justify-content: center; flex-direction: column; text-align: center; }
    .flow-d { display: none; }
    .flow-t { font-size: 11px; margin-top: 6px; }
}
:root[data-theme="dark"] .hero-flow { background: var(--dk-surface); border-color: var(--dk-line-strong); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
:root[data-theme="dark"] .flow-node { background: var(--dk-surface); border-color: var(--dk-line-strong); color: var(--dk-text); }
:root[data-theme="dark"] .flow-node:hover, :root[data-theme="dark"] .flow-node.is-on { border-color: #ff00ff; box-shadow: 0 12px 28px -12px rgba(255, 0, 255, .45); }
:root[data-theme="dark"] .flow-ic { background: rgba(255, 0, 255, .15); }
:root[data-theme="dark"] .flow-ic svg { stroke: #7c9dff; }
:root[data-theme="dark"] .flow-node.is-on .flow-ic { background: #ff00ff; }
:root[data-theme="dark"] .flow-edge { stroke: rgba(124, 157, 255, .35); }
:root[data-theme="dark"] .flow-caps { border-top-color: var(--dk-line); }
:root[data-theme="dark"] .flow-cap-t { color: var(--dk-text); }
:root[data-theme="dark"] .flow-cap-d { color: var(--dk-body); }
:root[data-theme="dark"] .flow-cap-n, :root[data-theme="dark"] .flow-cap-link { color: var(--dk-pink); }
:root[data-theme="dark"] .flow-live { background: var(--dk-pink-soft); color: var(--dk-pink); }
:root[data-theme="dark"] .flow-dot { background: var(--dk-line); }
:root[data-theme="dark"] .flow-dot.is-on { background: #ff00ff; }
:root[data-theme="dark"] .flow-track { stroke: rgba(124, 157, 255, .16); }
:root[data-theme="dark"] .flow-edge { stroke: rgba(124, 157, 255, .6); }
.flow-edge.is-on { stroke: #ff00ff; }
:root[data-theme="dark"] .flow-edge.is-on { stroke: #ff00ff; }
@media (max-width: 560px) { .flow-node { height: 74px; } .flow-map { height: 210px; } }

/* the map pauses its motion while off screen (set by site.js) */
.hero-flow.is-idle .flow-edge, .hero-flow.is-idle .flow-ic::after, .hero-flow.is-idle .dot { animation-play-state: paused !important; }



/* stage numbers on the map nodes, matching the caption counter */
.flow-node { position: absolute; }
.flow-no { position: absolute; top: 5px; right: 7px; font: 700 9.5px var(--font-mono); letter-spacing: .04em; color: var(--mono-500); }
.flow-node.is-on .flow-no { color: var(--primary); }
:root[data-theme="dark"] .flow-node.is-on .flow-no { color: var(--dk-pink); }

/* =========================================================================
   Lifecycle in four steps (Platform Guide), in the website's blue theme:
   the homepage hero's solid #1a1aee band, white type, the pale-blue accent
   rgb(200,210,255) and its dark-glass chips (white 12-15% fill, 30% border).
   Solid fills only. Same band in light and dark mode.
   ========================================================================= */
#landingMain > #lifecycle::before { background: #1a1aee; border: 0; }
#landingMain > #lifecycle::after { display: none; }
#lifecycle, :root[data-theme="dark"] #lifecycle { color: #fff; }
#lifecycle .section-eyebrow, :root[data-theme="dark"] #lifecycle .section-eyebrow { color: rgba(255, 255, 255, .78); }
#lifecycle .section-head h2, :root[data-theme="dark"] #lifecycle .section-head h2 { color: #fff; }
#lifecycle .lc-accent { color: rgb(200, 210, 255); }
#lifecycle .section-sub, :root[data-theme="dark"] #lifecycle .section-sub { color: rgba(255, 255, 255, .82); }

.lc4 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.lc4-step {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 28px 26px 26px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .22);
    transition: background .25s, border-color .25s, transform .35s var(--ease-site);
}
.lc4-step:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .45); transform: translateY(-4px); }
/* connector: a white rule with a node dot, from one step to the next */
.lc4-step:not(:last-child)::after { content: ""; position: absolute; z-index: 1; top: 47px; right: -21px; width: 21px; height: 1.5px; background: rgba(255, 255, 255, .55); }
.lc4-step:not(:last-child)::before { content: ""; position: absolute; z-index: 2; top: 44px; right: -14px; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.lc4-top { display: flex; align-items: center; justify-content: space-between; }
.lc4-ic { width: 44px; height: 44px; display: grid; place-items: center; background: #fff; color: #1a1aee; }
.lc4-ic svg { width: 22px; height: 22px; stroke: #1a1aee; stroke-width: 1.5; }
.lc4-ic svg > :first-child { stroke: #ff00ff; }
.lc4-n { font: 700 12px var(--font-mono); letter-spacing: .08em; color: rgba(255, 255, 255, .6); }
.lc4-step h3 { margin: 22px 0 8px; font-size: 20px; font-weight: 700; letter-spacing: -.01em; color: #fff; }
.lc4-step p { flex: 1; margin: 0 0 18px; font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, .78); }
.lc4-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 76px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .2); }
.lc4-links a { font-size: 13.5px; font-weight: 600; color: #fff; text-decoration: none; }
.lc4-links a::after { content: "\2192"; display: inline-block; margin-left: 5px; transition: transform .2s; }
.lc4-links a:hover::after { transform: translateX(4px); }
.lc4-links a:hover { color: rgb(200, 210, 255); }
.lc4-loop {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0 0;
    padding: 14px 20px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .3);
    font-size: 14.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .88);
}
.lc4-loop strong { color: #fff; }
.lc4-loop-ic { flex: none; width: 30px; height: 30px; display: grid; place-items: center; background: #fff; color: #1a1aee; font-size: 16px; font-weight: 700; }
.lc4-loop a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lc4-step a:focus-visible, .lc4-loop a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 1024px) { .lc4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lc4-step:nth-child(2)::after, .lc4-step:nth-child(2)::before { display: none; } }
@media (max-width: 560px) { .lc4 { grid-template-columns: 1fr; gap: 12px; } .lc4-step::after, .lc4-step::before { display: none; } .lc4-loop { align-items: flex-start; } }
@media print { #landingMain > #lifecycle::before { background: none; } }

/* Hero, calm: no looping motion in the hero. The badge dot is still (the
   ping ring and pulse are off); the signal map's lines are static, and only
   the highlighted stage changes, slowly. */
.hero .hero-eyebrow .dot, .hero .hero-eyebrow .dot::after { animation: none !important; }
.hero .hero-eyebrow .dot::after { display: none; }

/* =========================================================================
   Footer: fyscaltech.com's footer, value for value (computed on
   /fyscalarcx, 1440px): brand column (22px logo, tagline, social squares,
   ISO 27001 badge), six link columns, then copyright and legal links.
   ========================================================================= */
footer.site-footer { margin: 0; padding: 64px 32px 36px; background: #171717; color: #fff; border: 0; font-size: 16px; line-height: 1.5; text-align: left; }
.sf-inner { max-width: 1200px; margin: 0 auto; }
.sf-grid { display: grid; grid-template-columns: 1.6fr repeat(6, 1fr); gap: 36px; padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.sf-logo { display: inline-block; }
.sf-logo svg { display: block; height: 22px; width: auto; }
.sf-tagline { margin: 18px 0 0; max-width: 240px; font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, .55); }
.sf-social { display: flex; gap: 10px; margin-top: 20px; }
.sf-social a { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .2); font-size: 13px; line-height: 1; color: rgba(255, 255, 255, .7); text-decoration: none; transition: color .15s, border-color .15s; }
.sf-social a:hover { color: #fff; border-color: rgba(255, 255, 255, .6); }
.sf-cert { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.sf-cert-box { display: flex; align-items: center; padding: 8px 12px; background: #fff; border-radius: 10px; }
.sf-cert-box img { display: block; width: auto; height: 52px; }
.sf-h { margin: 0 0 16px; font-size: 11.5px; line-height: 17.25px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.sf-links { display: flex; flex-direction: column; gap: 11px; }
.sf-links a { font-size: 13px; line-height: 19.5px; color: rgba(255, 255, 255, .75); text-decoration: none; transition: color .15s; }
.sf-links a:hover, .sf-legal a:hover { color: #fff; }
.sf-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 26px; font-size: 13px; color: rgba(255, 255, 255, .5); }
.sf-bottom > span { font-size: 12.5px; color: rgba(255, 255, 255, .45); }
.sf-legal { display: flex; gap: 22px; }
.sf-legal a { font-size: 12.5px; color: rgba(255, 255, 255, .55); text-decoration: none; transition: color .15s; }
footer.site-footer a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
footer.site-footer #google_translate_element { display: none; }
/* keep the legal links clear of the fixed back-to-top button */
@media (max-width: 1400px) { .sf-bottom { padding-right: 72px; } }
@media (max-width: 900px) { .sf-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 560px) {
    .sf-grid { gap: 24px; }
    .sf-bottom { flex-direction: column; align-items: flex-start; gap: 14px; padding-right: 0; }
}
:root[data-theme="dark"] footer.site-footer { background: #171717; border-top: 1px solid var(--dk-line); }
@media print { footer.site-footer { display: none; } }

/* No reading-progress bar at the top of the page. */
.scroll-progress { display: none !important; }

/* =========================================================================
   Language picker in the header: a bordered square-cornered control like
   the theme toggle beside it (globe + language code); its menu drops down
   as the website's nav panels do (white, #efefef border, soft shadow).
   ========================================================================= */
.nav-actions .nav-lang {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: none;
    height: 48px;
    padding: 0 14px;
    background: transparent;
    border: 1px solid #e3e3ea;
    color: #4a4c58;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    cursor: pointer;
    user-select: none;
    transition: color .15s ease, border-color .15s ease;
}
.nav-actions .nav-lang:hover, .nav-actions .nav-lang[aria-expanded="true"] { color: var(--primary); border-color: #cfcdfc; }
.nav-actions .nav-lang:focus-visible { outline: 3px solid #b9b6ff; outline-offset: 2px; }
.nav-actions .nav-lang .lang-text { color: inherit; white-space: nowrap; }
.nav-actions .nav-lang .lang-menu {
    top: calc(100% + 8px);
    bottom: auto;
    right: 0;
    min-width: 250px;
    max-height: min(420px, 70vh);
    padding: 8px;
    background: rgba(255, 255, 255, .97);
    border: 1px solid #efefef;
    border-radius: 0;
    box-shadow: 0 20px 56px rgba(10, 16, 40, .16);
    z-index: 1000;
}
.nav-actions .nav-lang .lang-menu li { padding: 9px 12px; font-size: 14px; font-weight: 500; color: #171717; letter-spacing: normal; }
.nav-actions .nav-lang .lang-menu li:hover { background: #f5f5f5; }
.nav-actions .nav-lang .lang-menu li.active { background: rgba(53, 46, 255, .06); color: var(--primary); font-weight: 600; }
.nav-actions .nav-lang .lang-menu li img { box-shadow: 0 0 0 1px rgba(10, 16, 40, .1); }
@media (max-width: 600px) { .nav-actions .nav-lang { height: 38px; padding: 0 10px; } }
@media (max-width: 480px) { .nav-actions .nav-lang { width: 38px; padding: 0; } .nav-actions .nav-lang .lang-text { display: none; } }
:root[data-theme="dark"] .nav-actions .nav-lang { border-color: var(--dk-line-strong); color: var(--dk-body); }
:root[data-theme="dark"] .nav-actions .nav-lang:hover, :root[data-theme="dark"] .nav-actions .nav-lang[aria-expanded="true"] { color: var(--dk-pink); border-color: var(--dk-pink); }
:root[data-theme="dark"] .nav-actions .nav-lang .lang-menu { background: var(--dk-surface); border-color: var(--dk-line-strong); box-shadow: 0 20px 56px rgba(0, 0, 0, .5); }
:root[data-theme="dark"] .nav-actions .nav-lang .lang-menu li { color: var(--dk-text); }
:root[data-theme="dark"] .nav-actions .nav-lang .lang-menu li:hover { background: rgba(255, 255, 255, .06); }
:root[data-theme="dark"] .nav-actions .nav-lang .lang-menu li.active { background: var(--dk-pink-soft); color: var(--dk-pink); }
/* phones: the header row keeps every control in view with the language
   button added (tighter gaps, Ask AI without its spark), and the language
   menu opens centred under its button so it never leaves the screen */
@media (max-width: 600px) { .nav-actions .nav-lang .lang-menu { right: auto; left: 50%; transform: translateX(-50%); } }
@media (max-width: 480px) {
    .nav-actions { gap: 4px; }
    .nav-ai-pill { padding: 10px; }
    .nav-ai-pill .ai-spark { display: none; }
}

/* Google Translate: our header picker drives it, so Google's own banner,
   hover tooltips and page offset stay hidden */
iframe.skiptranslate, .VIpgJd-ZVi9od-ORHb-OEVmcd, #goog-gt-tt, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
body { top: 0 !important; }

/* =========================================================================
   Chapter pages matched to fyscaltech.com (13 Oct 2026 audit)
   ========================================================================= */
/* Square corners, as every card, panel and image on the website (radius 0).
   Round dots and pills keep their shape. */
.shot-wide, .shot-wide img, .doc-section figure img, .doc-section img, .flow-step-num, .copy-link,
.table-wrap, .cmdk-item-snippet mark, .step-list > li, .step-list > li::before, .dg-step, .task-card, kbd,
.dg-state, .dg-q::before, .diagram, .doc-section figure.diagram, .key-facts, .page-helpful,
.page-helpful > button, .doc-section .chapter-banner, .chapter-banner, .chapter-map, .dg-out, .dg-task,
.http, .code-copy, .endpoint, .ep-method, .btn-build, .code, pre.code, .code-tabs, .req, .callout,
.note-box, .doc-section pre, .doc-section code, .lightbox img, .release-tag { border-radius: 0 !important; }

/* Solid fills only: no glow on the chapter banner, no dot pattern behind
   diagrams, solid timeline bars and tracker, no glow layers in the hero. */
.doc-section .chapter-banner, :root[data-theme="dark"] .doc-section .chapter-banner,
.doc-section figure.diagram, :root[data-theme="dark"] .doc-section figure.diagram,
.callout, .hero::before, .hero::after { background-image: none !important; }
.doc-section .diagram.timeline .dg-bar::before, .walk-tracker-fill { background: #352eff !important; }
:root[data-theme="dark"] .doc-section .diagram.timeline .dg-bar::before,
:root[data-theme="dark"] .walk-tracker-fill { background: #ff00ff !important; }

/* Dark mode: one accent, the site's magenta/pink (the periwinkle blue that
   chapter links, numbers, notes and active items used is retired). Icon
   tiles keep their two-tone blue detail, as the site's icons. */
:root[data-theme="dark"] {
    --dk-blue: var(--dk-pink);
    --dk-blue-soft: rgba(255, 0, 255, .14);
    --dk-blue-line: rgba(255, 0, 255, .4);
    --vx-accent: #ff5cff;
    --vx-accent-soft: rgba(255, 0, 255, .14);
    --vx-accent-line: rgba(255, 0, 255, .45);
    --vx-note: #ff9cff;
}
@media screen {
    :root[data-theme="dark"] .doc-section :is(p, li, td, dd, figcaption, .note-box) a:not([class]) { color: var(--dk-pink); text-decoration-color: rgba(255, 92, 255, .45); }
}
:root[data-theme="dark"] code, :root[data-theme="dark"] .doc-section code { background: #2a2230; color: #ffc2ff; border-color: #463650; }
:root[data-theme="dark"] .update-tag.improved { color: var(--dk-pink); }

/* Small grey text: #6b6b6b (4.9:1 on white) instead of the site's #7f7f7f
   (4.0:1), so it passes WCAG AA; visually almost the same grey. */
:root { --mono-500: #6b6b6b; }

/* Chapter layout: a hairline divides the sidebar from the reading column
   (the site's #efefef rule), and the column is a little wider (816 -> 848px
   at 1440px: gaps 52 -> 40px, "On this page" 216 -> 208px). */
.layout { grid-template-columns: 240px minmax(0, 1fr) 208px; gap: 40px; }
.layout.sidebar-collapsed { grid-template-columns: 52px minmax(0, 1fr) 208px; }
.layout > .page-toc { max-width: 208px; }
.layout > .sidebar { border-right: 1px solid #efefef; padding-right: 16px; }
:root[data-theme="dark"] .layout > .sidebar { border-right-color: var(--dk-line); }
@media (max-width: 1200px) {
    .layout { grid-template-columns: 240px minmax(0, 1fr); gap: 36px; }
    .layout.sidebar-collapsed { grid-template-columns: 52px minmax(0, 1fr); }
}
@media (max-width: 860px) { .layout > .sidebar { border-right: 0; padding-right: 0; } }
/* images carry their pixel size (build.py) for layout stability; keep them fluid */
.doc-section img[width][height], .content img[width][height] { height: auto; max-width: 100%; }
/* one rule under the breadcrumb bar, not two (the open chapter drops its own top border) */
.content .doc-section.active-tab { border-top: 0; }

/* =========================================================================
   Sidebar divider and collapse control: neutral grey with a soft shadow.
   A grey hairline plus a faint shadow separates the sidebar from the
   reading column; the collapse control is a round white button on that
   line with a grey arrow and a soft shadow, a label and the "[" shortcut.
   ========================================================================= */
@media (min-width: 861px) {
    .layout > .sidebar { border-right: 1px solid #e3e3e3; box-shadow: 6px 0 14px -12px rgba(10, 16, 40, .28); }
    :root[data-theme="dark"] .layout > .sidebar { border-right-color: #3a3a3a; box-shadow: 6px 0 16px -12px rgba(0, 0, 0, .8); }
}
.sidebar-collapse-arrow {
    top: 96px;
    width: 28px;
    height: 28px;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 50%;
    color: #6b6b6b;
    box-shadow: 0 2px 8px rgba(10, 16, 40, .12);
    transition: left .22s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .15s ease;
}
.sidebar-collapse-arrow svg { transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.sidebar-collapse-arrow:hover, .sidebar-collapse-arrow:focus-visible {
    background: #fff;
    color: #171717;
    border-color: #cfcfcf;
    box-shadow: 0 6px 16px rgba(10, 16, 40, .18);
    transform: scale(1.06);
}
.sidebar-collapse-arrow:hover svg { transform: translateX(-1.5px); }
.sidebar-collapse-arrow:active { transform: scale(.94); }
.sidebar-collapse-arrow:focus-visible { outline: 2px solid #9b9b9b; outline-offset: 3px; }
.layout.sidebar-collapsed .sidebar-collapse-arrow { color: #6b6b6b; }
.layout.sidebar-collapsed .sidebar-collapse-arrow:hover, .layout.sidebar-collapsed .sidebar-collapse-arrow:focus-visible { color: #171717; }
.layout.sidebar-collapsed .sidebar-collapse-arrow svg { transform: rotate(180deg); }
.layout.sidebar-collapsed .sidebar-collapse-arrow:hover svg { transform: rotate(180deg) translateX(-1.5px); }
/* label: small dark tooltip to the right of the button */
.sidebar-collapse-arrow::after {
    content: attr(data-tip) "  [";
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translate(-4px, -50%);
    padding: 6px 10px;
    background: #171717;
    color: #fff;
    font: 600 12px/1.2 var(--font-sans, 'FT Sans', system-ui, sans-serif);
    white-space: pre;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
}
.sidebar-collapse-arrow:hover::after, .sidebar-collapse-arrow:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
:root[data-theme="dark"] .sidebar-collapse-arrow { background: var(--dk-surface-2, #242424); border-color: #3a3a3a; color: #a3a3ad; box-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
:root[data-theme="dark"] .sidebar-collapse-arrow:hover, :root[data-theme="dark"] .sidebar-collapse-arrow:focus-visible { background: var(--dk-surface-2, #242424); color: #fff; border-color: #555; box-shadow: 0 6px 18px rgba(0, 0, 0, .7); }
:root[data-theme="dark"] .layout.sidebar-collapsed .sidebar-collapse-arrow { color: #a3a3ad; }
:root[data-theme="dark"] .layout.sidebar-collapsed .sidebar-collapse-arrow:hover { color: #fff; }
:root[data-theme="dark"] .sidebar-collapse-arrow::after { background: #fff; color: #171717; }
@media (prefers-reduced-motion: reduce) { .sidebar-collapse-arrow, .sidebar-collapse-arrow svg, .sidebar-collapse-arrow::after { transition: none; } }
@media (max-width: 860px) { .layout > .sidebar, :root[data-theme="dark"] .layout > .sidebar { border-right: 0; } }

/* =========================================================================
   Chapter sidebar: plain line icons with no tile or fill, in the same
   colour as their label; the open chapter's icon turns brand blue
   (#352eff) with its name and the blue bar at the left. Chapters the back office splits into sub-menus open into
   them (Case Manager: Cases, Alerts, Config), on a grey guide line.
   ========================================================================= */
.sidebar .side-link { align-items: center; gap: 11px; padding-top: 4px; padding-bottom: 4px; }
.sidebar .side-link-icon {
    width: 22px; height: 30px; flex: none;
    display: inline-grid; place-items: center;
    background: none !important;
    color: inherit !important;
    border-radius: 0;
}
.sidebar .side-link.active .side-link-icon,
.sidebar .side-link.is-current .side-link-icon { color: #352eff !important; }
.sidebar .side-link-icon svg { width: 20px; height: 20px; stroke: currentColor !important; display: block; }
.sidebar .side-link.is-current, .sidebar .side-link.is-current .side-link-text { color: var(--primary) !important; }
.sidebar .side-link.is-current { border-left-color: var(--accent); }
.sidebar .side-link-name { flex: 1; min-width: 0; }

.sidebar .side-group--subs > .side-link .side-caret {
    display: inline-grid; place-items: center;
    width: 22px; height: 22px; margin: 0 -4px 0 0; flex: none;
    color: #9a9a9a; cursor: pointer;
    transition: transform .18s ease, color .15s ease;
}
.sidebar .side-group--subs > .side-link .side-caret:hover { color: #171717; }
.sidebar .side-group--subs.expanded > .side-link .side-caret { transform: rotate(90deg); }
.sidebar .side-group--subs .side-sublist {
    display: none; flex-direction: column;
    margin: 2px 0 8px 22px; padding: 0 0 0 12px;
    border-left: 1px solid #e3e3e3;
}
.sidebar .side-group--subs.expanded .side-sublist { display: flex; }
.sidebar .side-group--subs .side-sublink {
    position: relative;
    font-size: 13px; line-height: 1.35; font-weight: 400;
    color: #6b6b6b !important; padding: 6px 10px; border-radius: 0; background: none;
    transition: color .15s ease, background .15s ease;
}
.sidebar .side-group--subs .side-sublink:hover { color: #171717 !important; background: #f5f5f5; }
.sidebar .side-group--subs .side-sublink.active,
.sidebar .side-group--subs .side-sublink.active-sublink { color: #6b6b6b !important; font-weight: 400; background: none; }
.sidebar .side-group--subs .side-sublink.is-current { color: #352eff !important; font-weight: 500; background: rgba(53, 46, 255, .06); }
.sidebar .side-group--subs .side-sublink.is-current::before {
    content: ""; position: absolute; left: -13px; top: 4px; bottom: 4px; width: 2px; background: #352eff;
}
.layout.sidebar-collapsed .sidebar .side-sublist,
.layout.sidebar-collapsed .sidebar .side-caret { display: none !important; }

/* dark mode marks the open chapter in its accent; the icon matches its label */
:root[data-theme="dark"] .sidebar .side-link.active .side-link-icon,
:root[data-theme="dark"] .sidebar .side-link.is-current .side-link-icon { color: inherit !important; }
:root[data-theme="dark"] .sidebar .side-link.is-current { color: var(--dk-blue) !important; background: var(--dk-blue-soft); border-color: var(--dk-blue); }
:root[data-theme="dark"] .sidebar .side-group--subs > .side-link .side-caret { color: #8a8a93; }
:root[data-theme="dark"] .sidebar .side-group--subs > .side-link .side-caret:hover { color: #fff; }
:root[data-theme="dark"] .sidebar .side-group--subs .side-sublist { border-left-color: var(--dk-line, #333); }
:root[data-theme="dark"] .sidebar .side-group--subs .side-sublink,
:root[data-theme="dark"] .sidebar .side-group--subs .side-sublink.active,
:root[data-theme="dark"] .sidebar .side-group--subs .side-sublink.active-sublink { color: #a3a3ad !important; }
:root[data-theme="dark"] .sidebar .side-group--subs .side-sublink:hover { color: #fff !important; background: rgba(255, 255, 255, .05); }
:root[data-theme="dark"] .sidebar .side-group--subs .side-sublink.is-current { color: #a29eff !important; background: rgba(53, 46, 255, .16); }
:root[data-theme="dark"] .sidebar .side-group--subs .side-sublink.is-current::before { background: #a29eff; }
/* filled details in an icon (the config sliders' knobs) follow the icon colour */
.mod-icon svg [fill="currentColor"], .cap-icon svg [fill="currentColor"] { fill: #fff; }
