/* Shared colour, surface and interaction rules for the reviewed public pages. */
.public-refined {
    --primary: #0066e6;
    --primary-dark: #0054c2;
    --accent: #16d6f7;
    --ink: #15243b;
    --muted: #526176;
    --line: #e2e8f0;
    --night: #101827;
    --surface-soft: #f5f8fc;
    --shadow-card: 0 6px 24px rgba(21, 36, 59, .045);
    --shadow-raised: 0 16px 40px rgba(21, 36, 59, .12);
    background: #fff;
}
.public-refined [hidden] { display: none !important; }
.public-refined .eyebrow { color: var(--primary); }
.public-refined .nav::before { background: rgba(255,255,255,.94); border-color: var(--line); box-shadow: 0 6px 20px #15243b05, 0 0 0 100vmax rgba(255,255,255,.94); }
.public-refined .nav-link.is-active, .public-refined .language-link.is-active { background: #eaf2ff; color: var(--primary-dark); }
.public-refined .button {
    border-color: #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    box-shadow: none;
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.public-refined .button:hover { background: #f5f8fc; border-color: #a8bbd4; box-shadow: none; transform: none; }
/* Clear azure glass: translucent colour with a soft, curved internal lens.
   Keep refraction behind the label; no rim, bevel or sweeping white shine. */
.public-refined .button.primary {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid rgba(0,91,209,.2);
    border-radius: 12px;
    color: #fff;
    background-color: #1a63e0;
    background-image:
        radial-gradient(ellipse at 100% 115%, rgba(0,222,242,.3), transparent 65%),
        linear-gradient(118deg, rgba(109,184,255,.1), transparent 42%, rgba(0,77,226,.08) 66%, rgba(0,193,245,.1));
    background-size: 115% 125%;
    background-position: 50% 50%;
    box-shadow: 0 8px 22px rgba(0,102,230,.12), 0 2px 4px rgba(0,82,195,.05);
    text-shadow: none;
    transition: background-color 220ms ease, background-position 320ms ease, transform 180ms cubic-bezier(.2,.7,.2,1), box-shadow 220ms ease;
    -webkit-tap-highlight-color: transparent;
}
.public-refined .button.primary::before {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    width: 135%;
    height: 230%;
    left: -48%;
    top: -165%;
    border-radius: 50%;
    background: linear-gradient(155deg, transparent 32%, rgba(151,219,255,.2) 72%, rgba(151,219,255,.06));
    filter: blur(5px);
    transform: rotate(-12deg);
    transition: transform 360ms cubic-bezier(.2,.7,.2,1);
}
@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
    .public-refined .button.primary {
        background-color: rgba(0,71,218,.88);
        -webkit-backdrop-filter: blur(10px) saturate(170%);
        backdrop-filter: blur(10px) saturate(170%);
    }
}
.public-refined .button.primary:hover {
    color: #fff;
    background-color: rgba(0,77,216,.92);
    background-position: 65% 60%;
    border-color: rgba(0,91,209,.26);
    box-shadow: 0 9px 22px rgba(0,102,230,.18), 0 2px 4px rgba(0,82,195,.05);
}
.public-refined .button.primary:active {
    transform: translateY(0) scale(.99);
    background-color: rgba(0,72,207,.94);
    box-shadow: 0 2px 6px rgba(0,102,230,.12);
}
.public-refined .button.primary:is(:disabled, [aria-disabled="true"]) { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .public-refined .button.primary:not(:disabled):not([aria-disabled="true"]):hover::before { transform: translate(4%, 5%) rotate(-8deg); }
    .public-refined .button.primary:not(:disabled):not([aria-disabled="true"]):hover { transform: translateY(-1px); }
    .public-refined .button.primary:not(:disabled):not([aria-disabled="true"]):active { transform: translateY(0) scale(.99); }
}
.public-refined :is(a, button, summary, input, select, textarea):focus-visible { outline: 3px solid #0066e6; outline-offset: 4px; }
.public-refined .button:active { transform: scale(.98); }
.public-refined .button > span[aria-hidden="true"] { display: inline-block; transition: transform 180ms ease; }
.public-refined .button:hover > span[aria-hidden="true"] { transform: translateX(3px); }
.public-refined :is(.card, .info-card, .faq-card, .legal-card, .hero-note, .plan, .cta-strip, .final-cta, .product-overview, .hero-visual-card) { border-radius: 14px; }
.public-refined :is(.card, .info-card, .faq-card, .legal-card, .hero-note, .plan) { border-color: var(--line); background: #fff; box-shadow: var(--shadow-card); }
.public-refined :is(.card, .info-card, .faq-card, .legal-card, .hero-note, .plan):hover { border-color: var(--line); box-shadow: var(--shadow-card); transform: none; }
.public-refined :is(.hero-platform, .fast-path-card, .trust-item, .legal-nav) { background: var(--surface-soft); border: 1px solid transparent; border-radius: 12px; box-shadow: none; }
.public-refined :is(.fast-path-card, .trust-item):hover { background: var(--surface-soft); border-color: transparent; box-shadow: none; transform: none; }
.public-refined :is(.cta-strip, .final-cta) { background: #f0f5fd; border-color: #e1eafb; box-shadow: none; }
.public-refined :is(.cta-strip, .final-cta):hover { border-color: #e1eafb; box-shadow: none; transform: none; }
.public-home .final-cta { background: #fff; border-color: var(--line); }
@media (max-width: 600px) {
    .public-home .final-cta { margin-block: 40px 48px; }
}
.public-refined .contact-intents span { color: var(--primary-dark); background: #edf4ff; border-color: transparent; }
.public-refined .field :is(input, select, textarea) { border-radius: 10px; transition: border-color 180ms ease, box-shadow 180ms ease; }
.public-refined .field :is(input, select, textarea):focus { border-color: var(--primary); outline: 2px solid #0066e626; outline-offset: 1px; box-shadow: 0 0 0 4px #0066e60a; }
.public-refined .field:has(.error) :is(input, select, textarea) { border-color: #b42318; }
.public-refined .error { color: #b42318; }
.public-refined .site-footer { background: var(--night); }
.public-refined :is(.app-coming-soon-panel, .analysis-lightbox, .home-overview-dialog) { border-radius: 16px; box-shadow: var(--shadow-raised); }

/* Use open space and quiet surfaces between the larger product sections. */
.public-home :is(.industry-band, .hero-kpi-strip) { background: var(--surface-soft); border-color: transparent; box-shadow: none; }
.public-home .hero-platform-label { color: var(--primary-dark); }
.public-home .hero-floating-card { border-color: #ffffffb3; box-shadow: var(--shadow-card); }
.public-home .hero-visual-card { box-shadow: var(--shadow-raised); }
.public-home .product-overview { background: var(--night); border-color: var(--night); box-shadow: none; }
.public-home .product-overview .eyebrow { color: #7bc8ff; }
.public-home .overview-feature > svg { stroke: #7bc8ff; }
.public-home .pricing { position: relative; isolation: isolate; }
.public-home .pricing::before { content: ""; position: absolute; z-index: -1; inset: 0 calc((100% - 100vw) / 2); background: var(--surface-soft); pointer-events: none; }
.public-home .plan { transition: border-color 180ms ease, box-shadow 180ms ease; }
.public-home .plan.featured { background: #fff; border-color: var(--line); }
.public-home .plan.is-selected, .public-home .plan.is-selected:hover { background: #fff; border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow-card); transform: none; }
.public-home .plan-value-badge { background: #fff6dd; border-color: #ecd7a5; color: #795511; }
.public-home .plan .price { color: var(--ink); }
.public-home .plan-fit { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 16px 0 0; color: var(--muted); }
.public-home .billing-highlight { gap: 0; padding-block: 4px; border-block: 1px solid var(--line); }
.public-home .billing-chip { background: transparent; border: 0; border-radius: 0; padding: 10px 0; box-shadow: none; overflow: visible; }
.public-home .billing-chip::after { content: none; }
.public-home .billing-chip span { color: var(--muted); }
.public-home .plan-limits { border: 0; background: var(--surface-soft); border-radius: 10px; gap: 0; }
.public-home .plan-limit { border: 0; background: transparent; border-radius: 0; padding: 14px 12px; }
.public-home .plan-limit + .plan-limit { border-left: 1px solid var(--line); }
.public-home .plan-action { display: grid; gap: 12px; }
.public-home .plan-select[aria-pressed="true"] { color: var(--primary-dark); border-color: #abcafa; background: #edf4ff; }
.public-home .plan-select[aria-pressed="true"]:hover { background: #e4efff; border-color: var(--primary); }
.public-home .plan-continue { text-wrap: balance; }
.public-home #pricing-currency { border-color: var(--line); border-radius: 12px; }
.public-home #pricing-currency span { transition: color 180ms ease, background-color 180ms ease; }
.public-home #pricing-currency input:checked + span { background: var(--primary); }
.public-home .selected-plan-note { padding: 14px 16px; color: var(--ink); border: 1px solid var(--line); background: #fff; border-radius: 10px; }
.public-home .billing-note { background: transparent; border-color: transparent; color: var(--muted); }

/* The same progressive navigation on all four reviewed public pages. */
.public-refined .home-nav-tools { display: none; }
.public-refined .home-nav-toggle { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; }
@media (max-width: 980px) {
    .public-refined .nav.is-enhanced { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0 12px; align-items: center; padding-block: 12px; position: relative; }
    .public-refined .nav.is-enhanced .home-nav-tools { display: flex; align-items: center; gap: 8px; }
    .public-refined .home-nav-tools .button { flex: none; min-height: 44px; padding: 10px 12px; font-size: 13px; white-space: nowrap; }
    .public-refined .home-nav-toggle { display: flex; flex: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
    .public-refined .home-nav-toggle span { width: 17px; height: 1.5px; background: currentColor; transition: transform 180ms ease, opacity 180ms ease; }
    .public-refined .home-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .public-refined .home-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .public-refined .home-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
    .public-refined .nav.is-enhanced :is(.nav-center, .nav-actions) { grid-column: 1 / -1; width: 100%; }
    .public-refined .nav.is-enhanced:not(.is-menu-open) :is(.nav-center, .nav-actions) { display: none; }
    .public-refined .nav.is-menu-open .nav-center { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin-top: 16px; order: 1; }
    .public-refined .nav.is-menu-open .nav-link { display: grid; place-items: center; min-height: 44px; padding: 10px 8px; font-size: 14px; text-align: center; border-radius: 10px; }
    .public-refined .nav.is-menu-open .nav-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 16px; order: 2; }
    .public-refined .nav.is-menu-open .language-switcher { flex: 1; display: flex; width: auto; min-width: 0; }
    .public-refined .nav.is-menu-open .language-link { flex: 1; display: grid; place-items: center; min-height: 44px; padding: 8px; }
    .public-refined .nav.is-menu-open .language-full { display: none; }
    .public-refined .nav.is-menu-open .language-short { display: inline; }
    .public-refined .nav.is-menu-open .nav-actions > .button:not(.primary) { flex: 0 0 auto; width: auto; padding-inline: 16px; }
    .public-refined .nav.is-menu-open .nav-actions > .primary { display: none; }
}
@media (max-width: 600px) {
    .public-refined .brand { font-size: 17px; gap: 7px; }
    .public-refined .brand-icon { width: 32px; height: 32px; }
}
@media (max-width: 360px) {
    .public-refined .brand { font-size: 15px; gap: 5px; }
    .public-refined .home-nav-tools .button { padding-inline: 10px; font-size: 12px; }
    .public-refined .nav.is-enhanced { column-gap: 8px; }
}

/* Native details preserve readable answers and links without JavaScript. */
.public-faq [data-faq-index] > summary { font-size: 14px; font-weight: 600; cursor: default; list-style: none; }
.public-faq [data-faq-index] > summary::-webkit-details-marker { display: none; }
.public-faq [data-faq-index][open] > summary { margin-bottom: 16px; }
.public-faq .legal-section > summary { display: flex; align-items: start; gap: 16px; list-style: none; cursor: default; }
.public-faq .legal-section > summary::-webkit-details-marker { display: none; }
.public-faq .legal-section > summary h2 { flex: 1; min-width: 0; margin: 0; }
.public-faq .faq-answer { padding-top: 14px; }
.public-faq .faq-toggle-mark { display: none; }
@media (max-width: 600px) {
    .public-faq [data-faq-index] > summary { display: flex; align-items: center; justify-content: space-between; min-height: 28px; cursor: pointer; }
    .public-faq [data-faq-index] > summary::after { content: "⌄"; color: var(--primary); font-size: 20px; }
    .public-faq [data-faq-index][open] > summary::after { transform: rotate(180deg); }
    .public-faq .legal-section > summary { cursor: pointer; }
    .public-faq .faq-toggle-mark { position: relative; display: block; flex: 0 0 24px; width: 24px; height: 28px; color: var(--primary); }
    .public-faq .faq-toggle-mark::before, .public-faq .faq-toggle-mark::after { content: ""; position: absolute; top: 13px; left: 5px; width: 14px; height: 2px; border-radius: 1px; background: currentColor; transition: transform 180ms ease; }
    .public-faq .faq-toggle-mark::after { transform: rotate(90deg); }
    .public-faq details[open] .faq-toggle-mark::after { transform: rotate(0); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .public-refined .store-button { transition: transform 180ms ease, box-shadow 180ms ease; }
    .public-refined .store-button:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
    .public-home .illustrated-stage:hover .flow-visual { transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
    .public-home .flow-stage.is-flow-seen .flow-visual { animation-duration: 400ms; animation-delay: calc(var(--flow-order) * 70ms); }
    .public-refined .nav.is-menu-open :is(.nav-center, .nav-actions), .public-faq .legal-section[open] .faq-answer { animation: public-soft-reveal 200ms ease-out; }
    @keyframes public-soft-reveal { from { opacity: .65; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
    html:has(.public-refined) { scroll-behavior: auto; }
    .public-refined *, .public-refined *::before, .public-refined *::after { animation: none !important; transition: none !important; }
    .public-refined .button:active, .public-refined .button:hover > span[aria-hidden="true"], .public-refined .store-button:hover, .public-home .illustrated-stage:hover .flow-visual { transform: none; }
    .public-refined .button.primary:hover, .public-refined .button.primary:active { transform: none; }
}

/* One mobile reading and touch scale across Home, Features, FAQ and Contact. */
.public-home .store-button strong { font-weight: 600; }
.public-home .store-button > span > span { font-weight: 400; }
@media (max-width: 600px) {
    .public-refined .page { padding-inline: 20px; }
    .public-refined .page .button { min-height: 48px; padding: 12px 20px; font-size: 16px; font-weight: 600; line-height: 1.4; }
    .public-refined .page .nav .button { min-height: 44px; padding: 10px 12px; font-size: 13px; }
    .public-refined .subpage-title:is(#faq-heading, #contact-heading) { line-height: 1.15; }
    .public-refined .subpage-hero.compact { gap: 0; }
    .public-home .ff-insights-cta-arrow { width: 24px; height: 22px; font-size: 18px; }
    .public-home .pricing-tools > .button { flex: 0 0 100%; width: 100%; }
    .public-refined .hero-actions { gap: 12px; }
    .public-refined .footer-list a { display: inline-flex; align-items: center; min-height: 44px; }
    .public-refined .footer-list { gap: 0; }
    .public-contact .fast-path-card .button { width: 100%; }
    .public-contact .side-stack .cta-strip { grid-template-columns: 1fr; }
    .public-faq [data-faq-index] > summary { min-height: 44px; }
}

/* A consistent navigation rhythm with an azure active marker. */
.public-refined .nav .brand { line-height: 1; }
.public-refined .nav .nav-link {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; box-sizing: border-box; padding: 10px 11px;
    font-family: var(--font-public); font-size: 14px; font-weight: 600; line-height: 24px;
    border-radius: 0; background: transparent; color: #43536b; white-space: nowrap;
}
.public-refined .nav .nav-link::after {
    content: ""; position: absolute; left: 11px; right: 11px; bottom: 3px; height: 2px;
    border-radius: 2px; background: linear-gradient(90deg, #0066e6, #17bce7);
    opacity: 0; transform: scaleX(.5); transition: opacity 180ms ease, transform 180ms ease;
}
.public-refined .nav .nav-link:hover, .public-refined .nav .nav-link.is-active { color: #005fcc; background: transparent; }
.public-refined .nav .nav-link.is-active::after { opacity: 1; transform: scaleX(1); }
.public-refined .nav .nav-link:focus-visible, .public-refined .nav .language-link:focus-visible { outline: 2px solid #0066e6; outline-offset: 3px; }
.public-refined .nav .nav-actions > .button, .public-refined .nav .home-nav-tools > .button {
    display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
    min-height: 44px; padding-block: 10px; font-family: var(--font-public); font-size: 14px;
    font-weight: 600; line-height: 22px; white-space: nowrap;
}
.public-refined .nav .language-switcher { box-sizing: border-box; min-height: 44px; padding: 3px; gap: 2px; border-color: #d8e5f5; border-radius: 10px; background: #fff; }
.public-refined .nav .language-link {
    display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
    min-height: 36px; padding: 7px 9px; font-family: var(--font-public); font-size: 12px;
    font-weight: 600; line-height: 22px; border-radius: 7px; color: #43536b;
}
.public-refined .nav .language-link:hover { color: #005fcc; background: #f0f7ff; }
.public-refined .nav .language-link.is-active { color: #fff; background: linear-gradient(135deg, #087be9, #0058d4); box-shadow: 0 2px 6px #0066e624; }
@media (min-width: 981px) {
    .public-refined .nav { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; padding-block: 20px; }
    .public-refined .nav .nav-center, .public-refined .nav .nav-actions { flex-wrap: nowrap; }
    .public-refined .nav .nav-center { gap: 2px; }
}
@media (min-width: 981px) and (max-width: 1200px) {
    .public-refined .nav { gap: 12px; }
    .public-refined .nav .language-full { display: none; }
    .public-refined .nav .language-short { display: inline; }
    .public-refined .nav .nav-link { padding-inline: 8px; }
}
@media (max-width: 980px) {
    .public-refined .nav.is-menu-open .nav-link::after { left: calc(50% - 14px); right: auto; width: 28px; }
    .public-refined .nav.is-menu-open .language-link { min-height: 36px; }
    .public-refined .nav.is-menu-open .nav-actions > .primary { display: none; }
    .public-refined .nav .home-nav-tools > .button { font-size: 13px; }
}
@media (max-width: 360px) {
    .public-refined .nav .home-nav-tools > .button { font-size: 12px; }
}
@media (min-width: 981px) and (max-width: 1100px) {
    .public-refined .nav .nav-link { font-size: 13px; padding-inline: 6px; }
    .public-refined .nav .nav-actions > .button { font-size: 13px; padding-inline: 12px; }
}
