/* ERPSync public pages — shared pieces used outside the home page
   (feature / product pages and the site menus). */

:root {
    --fx-ink: #0b1b3a;
    --fx-muted: #5b6b86;
    --fx-line: rgba(15, 42, 92, 0.09);
    --fx-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Tone palette (icons, illustrations) ---------- */
.fx-tone-0 { --fx-a: #1565d8; --fx-b: #2ba8f7; }
.fx-tone-1 { --fx-a: #6d5dfc; --fx-b: #a78bfa; }
.fx-tone-2 { --fx-a: #0f9d74; --fx-b: #34d399; }
.fx-tone-3 { --fx-a: #e8590c; --fx-b: #fbbf24; }
.fx-tone-4 { --fx-a: #d6336c; --fx-b: #f472b6; }
.fx-tone-5 { --fx-a: #0c8599; --fx-b: #22d3ee; }

/* Icon tile shown when a feature/product has no uploaded image */
.fx-icon-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--fx-a, #1565d8), var(--fx-b, #2ba8f7));
    font-size: 1.05em;
    line-height: 1;
}

/* ---------- Illustration (mock app window) ---------- */
.fx-illus {
    --fx-a: #1565d8; --fx-b: #2ba8f7;
    position: relative;
    max-width: 540px;
    margin: 0 auto;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--fx-line);
    box-shadow: 0 10px 24px rgba(11, 27, 58, 0.07), 0 30px 60px -16px rgba(21, 101, 216, 0.25);
    overflow: hidden;
    transition: transform 400ms var(--fx-ease), box-shadow 400ms var(--fx-ease);
}
.fx-illus::before {
    content: "";
    position: absolute;
    inset: auto -30% -60% auto;
    width: 70%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--fx-b) 22%, transparent), transparent 70%);
    pointer-events: none;
}
.fx-illus:hover { transform: translateY(-4px); }
/* The tone classes sit on the same element, so re-apply them after the defaults */
.fx-illus.fx-tone-0 { --fx-a: #1565d8; --fx-b: #2ba8f7; }
.fx-illus.fx-tone-1 { --fx-a: #6d5dfc; --fx-b: #a78bfa; }
.fx-illus.fx-tone-2 { --fx-a: #0f9d74; --fx-b: #34d399; }
.fx-illus.fx-tone-3 { --fx-a: #e8590c; --fx-b: #fbbf24; }
.fx-illus.fx-tone-4 { --fx-a: #d6336c; --fx-b: #f472b6; }
.fx-illus.fx-tone-5 { --fx-a: #0c8599; --fx-b: #22d3ee; }

.fx-illus-bar {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--fx-line);
    background: #f8faff;
}
.fx-illus-bar span { width: 10px; height: 10px; border-radius: 50%; background: #e3e8f2; }
.fx-illus-bar span:nth-child(1) { background: #ff6b6b; }
.fx-illus-bar span:nth-child(2) { background: #ffc24b; }
.fx-illus-bar span:nth-child(3) { background: #2fd07a; }

.fx-illus-body { position: relative; padding: 1.25rem 1.25rem 1.1rem; }

.fx-illus-head { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; }
.fx-illus-icon {
    flex: 0 0 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #fff;
    font-size: 22px;
    background: linear-gradient(135deg, var(--fx-a), var(--fx-b));
    box-shadow: 0 8px 18px -6px color-mix(in srgb, var(--fx-a) 60%, transparent);
}
.fx-illus-name { min-width: 0; flex: 1; }
.fx-illus-name strong {
    display: block;
    color: var(--fx-ink);
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fx-illus-name small { color: var(--fx-muted); font-size: 12px; }
.fx-illus-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: #0f9d74;
    background: rgba(15, 157, 116, 0.1);
}
.fx-illus-live i {
    width: 7px; height: 7px; border-radius: 50%;
    background: currentColor;
    animation: fx-pulse 1.8s ease-out infinite;
}

.fx-illus-rows { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 8px; }
.fx-illus-rows li {
    display: grid;
    grid-template-columns: auto 1fr 32%;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    background: #f6f9ff;
    border: 1px solid var(--fx-line);
    font-size: 13px;
    color: var(--fx-ink);
    animation: fx-rise 600ms var(--fx-ease) both;
    animation-delay: var(--d, 0ms);
}
.fx-illus-rows li > i { color: var(--fx-a); font-size: 16px; }
.fx-illus-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-illus-meter { height: 6px; border-radius: 99px; background: #e6ecf7; overflow: hidden; }
.fx-illus-meter b {
    display: block;
    height: 100%;
    width: var(--w, 60%);
    border-radius: inherit;
    background: linear-gradient(90deg, var(--fx-a), var(--fx-b));
    transform-origin: left;
    animation: fx-grow 900ms var(--fx-ease) both 250ms;
}

.fx-illus-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 78px;
    padding: 10px 12px 0;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8faff, #fff);
    border: 1px solid var(--fx-line);
}
.fx-illus-chart span {
    flex: 1;
    height: var(--h, 50%);
    border-radius: 6px 6px 0 0;
    background: linear-gradient(180deg, var(--fx-b), var(--fx-a));
    opacity: 0.85;
    transform-origin: bottom;
    animation: fx-grow-y 800ms var(--fx-ease) both;
    animation-delay: calc(300ms + var(--d, 0ms));
}

@keyframes fx-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fx-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fx-grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes fx-pulse {
    0% { box-shadow: 0 0 0 0 rgba(15, 157, 116, 0.5); }
    100% { box-shadow: 0 0 0 8px rgba(15, 157, 116, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .fx-illus, .fx-illus * { animation: none !important; transition: none !important; }
}

/* Icon tiles inside existing containers */
.erp-mega-icon .fx-icon-tile { border-radius: 11px; font-size: 1.15rem; }
.erp-compact .erp-mega-icon .fx-icon-tile { border-radius: 9px; font-size: 1.05rem; }
.eh-mod-icon .fx-icon-tile { border-radius: 18px; font-size: 1.75rem; box-shadow: 0 10px 20px -10px var(--fx-a); }
.eh-marquee-icon { color: #1565d8; font-size: 1.1rem; line-height: 1; }
@media (max-width: 767.98px) {
    .eh-mod-icon .fx-icon-tile { border-radius: 15px; font-size: 1.45rem; }
}

/* =====================================================================
   Feature / product detail pages (front::feature, front::product)
   Built on the home page tokens in front-home.css (.erp-home, eh-*).
   ===================================================================== */
.fx-hero { padding-bottom: clamp(3.5rem, 6vw, 5rem); }
.fx-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    color: var(--eh-muted);
}
.fx-crumbs a { color: var(--eh-muted) !important; font-weight: 500; border-radius: 6px; }
.fx-crumbs a:hover { color: var(--eh-blue) !important; }
.fx-crumbs span { color: var(--eh-ink); font-weight: 600; }
.fx-hero .eh-badge b { display: inline-grid; place-items: center; padding: 0.3rem 0.45rem; font-size: 0.9rem; line-height: 1; }
.fx-title { font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.08; }
.fx-lead p { margin: 0 0 0.75rem; }
.fx-lead p:last-child { margin-bottom: 0; }
.fx-hero-img { display: block; width: 100%; height: auto; }

.fx-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}
.fx-chips li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 100%;
    padding: 0.45rem 0.85rem 0.45rem 0.5rem;
    border-radius: 999px;
    background: var(--eh-card, #fff);
    border: 1px solid var(--eh-line);
    box-shadow: var(--eh-shadow-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--eh-ink);
    transition: transform 200ms var(--fx-ease), border-color 200ms ease;
}
.fx-chips li:hover { transform: translateY(-2px); border-color: rgba(21, 101, 216, 0.3); }
.fx-chips i {
    flex: 0 0 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(22, 163, 111, 0.12);
    color: #16a36f;
    font-size: 0.85rem;
}
.fx-chips-hero { margin-top: -0.5rem; }

.fx-details { padding-top: clamp(3rem, 6vw, 5rem); }
.fx-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}
.fx-row + .fx-row { margin-top: clamp(3.5rem, 8vw, 6.5rem); }
.fx-row-copy .eh-h2 { font-size: clamp(1.6rem, 2.8vw, 2.35rem); margin-top: 0.9rem; }
.fx-row-copy > .eh-h2:first-child { margin-top: 0; }
.fx-row-desc { color: var(--eh-muted); font-size: 1.05rem; line-height: 1.7; margin-bottom: 1.5rem; }
.fx-row-desc p { margin: 0 0 0.75rem; }
.fx-row-desc p:last-child { margin: 0; }
.fx-row .fx-chips { margin-bottom: 0; }
.fx-frame img { display: block; width: 100%; height: auto; }
@media (min-width: 992px) {
    .fx-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 5.5rem); }
    .fx-row-reverse .fx-row-copy { order: 2; }
    .fx-row-reverse .fx-row-visual { order: 1; }
}

.fx-icon-wrap { background: transparent; box-shadow: none; padding: 0; overflow: hidden; }
.fx-icon-wrap .fx-icon-tile { border-radius: 15px; font-size: 1.5rem; }

/* =====================================================================
   Pricing page (front::plan)
   ===================================================================== */
.pr-hero { padding-bottom: clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.pr-title { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.pr-billing {
    display: inline-flex;
    gap: 0.25rem;
    margin-top: 1.75rem;
    padding: 0.3rem;
    border-radius: 999px;
    background: var(--eh-card, #fff);
    border: 1px solid var(--eh-line);
    box-shadow: var(--eh-shadow-sm);
}
.pr-billing .nav-link {
    border-radius: 999px;
    padding: 0.55rem 1.4rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--eh-muted) !important;
    transition: color 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
}
.pr-billing .nav-link:hover { color: var(--eh-blue) !important; }
.pr-billing .nav-link.active {
    color: #fff !important;
    background: var(--eh-grad);
    box-shadow: 0 8px 18px -8px rgba(21, 101, 216, 0.65);
}
.pr-hero-note {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin: 1.1rem 0 0;
    color: var(--eh-muted);
    font-size: 0.925rem;
}
.pr-hero-note i { color: var(--eh-blue); }

.pr-plans { padding-top: clamp(2rem, 4vw, 3rem); }
.pr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    align-items: start;
}
@media (min-width: 1200px) { .pr-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 300px)); justify-content: center; } }
.pr-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.75rem 1.5rem 1.5rem;
    border-radius: 24px;
    background: var(--eh-card, #fff);
    border: 1px solid var(--eh-line);
    box-shadow: var(--eh-shadow-sm);
    transition: transform 300ms var(--fx-ease), box-shadow 300ms var(--fx-ease), border-color 300ms ease;
}
.pr-card:hover { box-shadow: var(--eh-shadow); }
.pr-card-popular {
    border: 1.5px solid transparent;
    background:
        linear-gradient(var(--eh-card, #fff), var(--eh-card, #fff)) padding-box,
        var(--eh-grad) border-box;
    box-shadow: var(--eh-shadow-lg);
}
.pr-ribbon {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    background: var(--eh-grad);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 8px 18px -8px rgba(21, 101, 216, 0.7);
}
.pr-name { font-size: 1.25rem; font-weight: 800; margin: 0 0 0.35rem; color: var(--eh-ink); }
.pr-desc { color: var(--eh-muted); font-size: 0.9rem; line-height: 1.5; margin: 0; min-height: 2.7em; }
.pr-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.2rem; margin: 1.25rem 0; color: var(--eh-ink); min-height: 3.25rem; }
.pr-price sup { font-size: 1.1rem; font-weight: 700; top: -1.1em; color: var(--eh-muted); }
.pr-amount { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.pr-per { color: var(--eh-muted); font-size: 0.9rem; margin-left: 0.25rem; }
.pr-contact { font-weight: 700; font-size: 1.05rem; color: var(--eh-ink); align-self: center; }
.pr-cta { justify-content: center; width: 100%; }
.pr-limits { list-style: none; padding: 0; margin: 1.35rem 0 0; display: grid; gap: 0.55rem; font-size: 0.9rem; color: var(--eh-ink); }
.pr-limits li { display: flex; align-items: flex-start; gap: 0.5rem; }
.pr-limits li > i { color: var(--eh-blue); font-size: 1.05rem; line-height: 1.35; }
.pr-limits strong { margin-left: auto; font-weight: 700; }
.pr-off { color: var(--eh-muted) !important; }
.pr-off > i { color: #c0c8d6 !important; }

.pr-modules { margin-top: 1.35rem; padding-top: 1.25rem; border-top: 1px dashed var(--eh-line); }
.pr-modules-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.85rem; color: var(--eh-muted); font-weight: 600; }
.pr-modules-head strong { color: var(--eh-ink); font-size: 0.95rem; }
.pr-meter { height: 6px; border-radius: 99px; background: #e6ecf7; overflow: hidden; margin: 0.5rem 0 0.9rem; }
.pr-meter b { display: block; height: 100%; border-radius: inherit; background: var(--eh-grad); }
.pr-areas { display: grid; gap: 0.2rem; }
.pr-area { border-radius: 10px; transition: background-color 200ms ease; }
.pr-area[open] { background: var(--eh-bg); }
.pr-area summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    border-radius: 10px;
    cursor: pointer;
    list-style: none;
    font-size: 0.875rem;
    color: var(--eh-ink);
    font-weight: 500;
}
.pr-area summary::-webkit-details-marker { display: none; }
.pr-area summary:hover { background: var(--eh-bg); }
.pr-area summary:focus-visible { outline: 3px solid rgba(43, 168, 247, 0.45); outline-offset: 1px; }
.pr-area-state { font-size: 1rem; }
.pr-area-full .pr-area-state { color: #16a36f; }
.pr-area-part .pr-area-state { color: #e8890c; }
.pr-area-none .pr-area-state { color: #c0c8d6; }
.pr-area-none .pr-area-name { color: var(--eh-muted); }
.pr-area-name { flex: 1; min-width: 0; }
.pr-area-count { font-size: 0.78rem; font-weight: 600; color: var(--eh-muted); font-variant-numeric: tabular-nums; }
.pr-area-caret { color: var(--eh-muted); transition: transform 250ms var(--fx-ease); }
.pr-area[open] .pr-area-caret { transform: rotate(180deg); }
.pr-area ul { list-style: none; margin: 0; padding: 0.15rem 0.5rem 0.6rem 2rem; display: grid; gap: 0.25rem; font-size: 0.84rem; color: var(--eh-ink); }
.pr-area li { display: flex; gap: 0.4rem; align-items: center; }
.pr-area li > i { color: #16a36f; }
.pr-compare-link { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.9rem; font-size: 0.875rem; font-weight: 600; color: var(--eh-blue) !important; }
.pr-pagination { display: flex; justify-content: center; margin-top: 1.5rem; }
.pr-pagination:empty { display: none; }

.pr-compare { margin-top: clamp(4rem, 8vw, 6rem); scroll-margin-top: 100px; }
.pr-compare-head { margin-bottom: 2rem; }
.pr-compare-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1rem;
    border-radius: 24px;
    background: var(--eh-card, #fff);
    border: 1px solid var(--eh-line);
    box-shadow: var(--eh-shadow);
}
.pr-area-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0.15rem;
    margin: 0;
}
.pr-area-tabs::-webkit-scrollbar { display: none; }
.pr-area-tabs .nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    white-space: nowrap;
    padding: 0.55rem 0.8rem;
    border-radius: 12px;
    border: 0;
    background: transparent;
    color: var(--eh-muted) !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: left;
    transition: background-color 200ms ease, color 200ms ease;
}
.pr-area-tabs .nav-link i { font-size: 1.1rem; }
.pr-area-tabs .nav-link small {
    margin-left: auto;
    padding: 0.05rem 0.45rem;
    border-radius: 99px;
    background: rgba(15, 42, 92, 0.06);
    font-size: 0.72rem;
    font-weight: 700;
}
.pr-area-tabs .nav-link:hover { color: var(--eh-blue) !important; background: var(--eh-bg); }
.pr-area-tabs .nav-link.active { color: var(--eh-blue) !important; background: rgba(21, 101, 216, 0.08); }
.pr-area-tabs .nav-link.active small { background: var(--eh-grad); color: #fff; }
.pr-area-tabs .nav-link:focus-visible { outline: 3px solid rgba(43, 168, 247, 0.45); outline-offset: 1px; }
.pr-table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--eh-line); }
.pr-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 480px; }
.pr-table th, .pr-table td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--eh-line); }
.pr-table thead th {
    background: var(--eh-bg);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--eh-muted);
    text-align: center;
}
.pr-table thead th:first-child { text-align: left; color: var(--eh-ink); }
.pr-table tbody th { font-weight: 500; color: var(--eh-ink); text-align: left; }
.pr-table td { text-align: center; }
.pr-table tbody tr:last-child > * { border-bottom: 0; }
.pr-table tbody tr:hover { background: rgba(21, 101, 216, 0.03); }
.pr-yes { color: #16a36f; font-size: 1.15rem; }
.pr-no { color: #c0c8d6; font-size: 1.1rem; }
@media (min-width: 992px) {
    .pr-compare-body { grid-template-columns: 260px minmax(0, 1fr); padding: 1.25rem; align-items: start; }
    .pr-area-tabs { flex-direction: column; max-height: 600px; overflow-x: hidden; overflow-y: auto; }
}

.pr-faq-sub { display: flex; align-items: center; gap: 0.5rem; font-size: 1.05rem; font-weight: 700; color: var(--eh-ink); margin: 0 0 1rem; }
.pr-faq-sub i { color: var(--eh-blue); }
.pr-accordion { display: grid; gap: 0.75rem; }
.pr-accordion .accordion-item {
    border: 1px solid var(--eh-line) !important;
    border-radius: 16px !important;
    background: var(--eh-card, #fff);
    overflow: hidden;
    box-shadow: var(--eh-shadow-sm);
}
.pr-accordion .accordion-button {
    padding: 1.05rem 1.25rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--eh-ink);
    background: transparent;
    box-shadow: none;
}
.pr-accordion .accordion-button:not(.collapsed) { color: var(--eh-blue); background: rgba(21, 101, 216, 0.04); }
.pr-accordion .accordion-button:focus-visible { box-shadow: inset 0 0 0 3px rgba(43, 168, 247, 0.4); }
.pr-accordion .accordion-body { padding: 0 1.25rem 1.15rem; color: var(--eh-muted); font-size: 0.95rem; line-height: 1.7; }

@media (prefers-reduced-motion: reduce) {
    .pr-card, .fx-chips li, .pr-area-caret, .pr-area { transition: none !important; }
}
