/* Updates page (actualizari.php). Reuses css/achizitie.css (orbit hero, sections, badge, CTA)
   and adds the year disc, "what's included" groups, update kit cards, module price cards, Bani price cards and notes. */

/* ---------- Hero: the jump links sit below the PDF button ---------- */
.site-modern.site-updates .ef-hero__actions { margin-top: 24px; }
.site-modern.site-updates .ef-hero__actions .site-button { gap: 10px; }

/* ---------- Hero visual: robot mascot inside the dashed orbit, year disc top-left, offer disc bottom-right ---------- */
.site-modern .up-robot { position: relative; display: grid; place-items: center; width: min(100%, 500px); aspect-ratio: 1; margin: 0 auto; }
.site-modern .up-robot .ef-orbit { width: 86%; }
/* Soft blue disc behind the robot */
.site-modern .up-robot::before { content: ''; position: absolute; inset: 16%; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #eaf1ff 0%, #d9e6fd 60%, rgba(217, 230, 253, 0) 72%); }
/* The source image is a bust cut at the waist: fade its bottom edge into the disc */
/* efactura.css sets picture { display: contents }; the robot needs a real box for its size, mask and stacking */
.site-modern.site-efactura .up-robot__img { display: block; }
.site-modern .up-robot::before { z-index: 0; }
.site-modern .up-robot__img { position: relative; z-index: 1; display: block; width: 62%; margin-top: 2%; -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%); mask-image: linear-gradient(to bottom, #000 80%, transparent 100%); }
.site-modern .up-robot__img img { display: block; width: 100%; height: auto; }
/* Year disc top-right (beside the head), offer disc bottom-left (free space under the raised arm) */
.site-modern .up-robot .up-robot__year { position: absolute; z-index: 2; top: 5%; right: 3%; width: 28%; aspect-ratio: 1; border-radius: 50%; animation: ac-float 6s ease-in-out infinite; }
.site-modern .up-robot .up-robot__year strong { font-size: clamp(26px, 3vw, 40px); }
.site-modern .up-robot .up-robot__year small { font-size: clamp(8px, .75vw, 11px); }
.site-modern .up-robot .up-robot__offer { --angle: 0deg; z-index: 2; top: auto; left: 4%; bottom: 12%; width: 23%; transform: none; }
.site-modern .up-robot .up-robot__offer:hover, .site-modern .up-robot .up-robot__offer:focus-visible { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .site-modern .up-robot .up-robot__year { animation: none; } }
@media (max-width: 900px) { .site-modern .up-robot { width: min(84vw, 400px); order: -1; } }

/* ---------- What the kits include ---------- */
.site-modern .up-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.site-modern .up-group { padding: 26px 26px 22px; border: 1px solid #e4ebf6; border-radius: 24px; background: #fff; box-shadow: 0 12px 30px rgba(31, 59, 99, .06); }
.site-modern .up-group__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.site-modern .up-group__icon { display: grid; flex: 0 0 auto; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #e3ecfd; color: var(--site-blue); }
.site-modern .up-group h3 { margin: 0; color: var(--site-ink); font-family: var(--site-font-heading); font-size: 19px; font-weight: 700; line-height: 1.3; }
.site-modern .up-group__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-modern .up-group__list li { display: flex; gap: 10px; color: #33435a; font-family: var(--site-font-body); font-size: 15px; line-height: 1.55; }
.site-modern .up-group__check { display: grid; flex: 0 0 auto; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: #e3ecfd; color: var(--site-blue); }

/* ---------- Notes and legal box ---------- */
.site-modern .up-note { max-width: 860px; margin: 28px auto 0; padding: 16px 20px; border-left: 4px solid var(--site-blue); border-radius: 12px; background: #f6f9ff; color: #33435a; font-family: var(--site-font-body); font-size: 15px; line-height: 1.6; }
.site-modern .ac-section--tint .up-note { background: #fff; }
.site-modern .up-note strong { color: var(--site-ink); }
.site-modern .up-note a { color: var(--site-blue); font-weight: 700; }
.site-modern .up-legal { padding-bottom: 56px; }
.site-modern .up-legal__box { padding: 28px 32px; border: 1px solid #d6e3f7; border-radius: 24px; background: linear-gradient(160deg, #ffffff 0%, #eef4ff 100%); }
.site-modern .up-legal__box h2 { margin: 0 0 12px; color: var(--site-blue); font-family: var(--site-font-heading); font-size: 22px; font-weight: 700; }
.site-modern .up-legal__box p { margin: 0 0 10px; color: #4a5a70; font-family: var(--site-font-body); font-size: 15px; line-height: 1.6; }
.site-modern .up-legal__box p:last-child { margin-bottom: 0; }
/* ---------- Integrated fiscal reporting: hub + dashed connectors + 3 module cards with numbered steps ---------- */
.site-modern .up-flow { --flow-gap: 22px; --flow-line: #a9c4f3; }
.site-modern .up-flow__hub {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 14px 26px 14px 14px;
    border-radius: 22px;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255, 255, 255, .25), rgba(255, 255, 255, 0) 70%),
        linear-gradient(180deg, #2c6de5 0%, #2165e8 48%, #1d57c8 100%);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3), 0 18px 36px rgba(33, 101, 232, .3);
    color: #fff;
    font-family: var(--site-font-body);
}
.site-modern .up-flow__hub::after { content: ''; position: absolute; top: 100%; left: 50%; height: 22px; border-left: 2px dashed var(--flow-line); }
.site-modern .up-flow__hub-logo { display: grid; flex: 0 0 auto; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: #fff; }
.site-modern .up-flow__hub-logo picture { display: contents; }
.site-modern .up-flow__hub-logo img { width: 38px; height: 38px; object-fit: contain; }
.site-modern .up-flow__hub strong { display: block; font-family: var(--site-font-heading); font-size: 18px; font-weight: 700; line-height: 1.3; }
.site-modern .up-flow__hub span:not(.up-flow__hub-logo) { display: block; margin-top: 2px; color: rgba(255, 255, 255, .85); font-size: 14px; font-weight: 600; }
.site-modern .up-flow__grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--flow-gap); align-items: start; padding-top: 44px; }
/* Horizontal dashed line from the first card's centre to the last card's centre */
.site-modern .up-flow__grid::before {
    content: '';
    position: absolute;
    top: 22px;
    left: calc((100% - 2 * var(--flow-gap)) / 6);
    right: calc((100% - 2 * var(--flow-gap)) / 6);
    border-top: 2px dashed var(--flow-line);
}
.site-modern .up-flow__card { position: relative; padding: 24px 22px 20px; border: 1px solid #e4ebf6; border-radius: 24px; background: #fff; box-shadow: 0 12px 30px rgba(31, 59, 99, .07); }
.site-modern .up-flow__card::before { content: ''; position: absolute; bottom: 100%; left: 50%; height: 22px; border-left: 2px dashed var(--flow-line); }
.site-modern .up-flow__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.site-modern .up-flow__head h3 { margin: 0; color: var(--site-ink); font-family: var(--site-font-heading); font-size: 19px; font-weight: 700; line-height: 1.3; }
.site-modern .up-flow__head p { margin: 2px 0 0; color: var(--site-muted); font-family: var(--site-font-body); font-size: 14px; line-height: 1.4; }
.site-modern .up-flow__steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: up-step; }
.site-modern .up-flow__steps li { position: relative; padding: 0 0 16px 44px; counter-increment: up-step; font-family: var(--site-font-body); }
.site-modern .up-flow__steps li:last-child { padding-bottom: 0; }
.site-modern .up-flow__steps li::before {
    content: counter(up-step);
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e3ecfd;
    color: var(--site-blue);
    font-size: 14px;
    font-weight: 700;
}
/* Thin line joining the numbered steps */
.site-modern .up-flow__steps li:not(:last-child)::after { content: ''; position: absolute; top: 34px; bottom: 4px; left: 14px; border-left: 2px solid #e3ecfd; }
.site-modern .up-flow__steps strong { display: block; padding-top: 4px; color: var(--site-ink); font-size: 15px; font-weight: 700; line-height: 1.3; }
.site-modern .up-flow__steps span { display: block; margin-top: 3px; color: #4a5a70; font-size: 14px; line-height: 1.5; }
.site-modern .up-flow__note { margin: 16px 0 0; padding: 12px 14px; border-radius: 14px; background: #f6f9ff; color: var(--site-muted); font-family: var(--site-font-body); font-size: 13px; line-height: 1.5; }

/* Saving label on the promotional package rows */
.site-modern .up-module__save { padding: 2px 10px; border-radius: var(--site-pill); background: #e4f5e7; color: #2e7d3c; font-weight: 700; }

.site-modern .up-module__desc { margin: 4px 0 0; color: var(--site-muted); font-family: var(--site-font-body); font-size: 14px; line-height: 1.45; }

/* ---------- Hero: the year in the centre of the orbit ---------- */
.site-modern .up-year {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 52%;
    padding: 0;
    background:
        radial-gradient(ellipse 70% 40% at 50% 8%, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 70%),
        linear-gradient(180deg, #2c6de5 0%, #2165e8 48%, #1d57c8 100%);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -10px 20px rgba(10, 40, 110, .3), 0 0 0 10px #fff, 0 0 0 11px rgba(33, 101, 232, .15), 0 26px 50px rgba(33, 101, 232, .35);
    color: #fff;
    text-align: center;
}
.site-modern .up-year strong { font-family: var(--site-font-heading); font-size: clamp(40px, 5vw, 66px); font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.site-modern .up-year small { color: rgba(255, 255, 255, .85); font-family: var(--site-font-body); font-size: clamp(11px, 1vw, 14px); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.site-modern .up-year small:first-child { margin-bottom: 6px; }
.site-modern .up-year small:last-child { margin-top: 6px; }

/* ---------- Platphorma SQL update kit ---------- */
.site-modern .up-kit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.site-modern .up-kit__card {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 28px 30px;
    border: 1px solid #e4ebf6;
    border-top: 4px solid var(--site-blue);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(31, 59, 99, .07);
    transition: transform .2s, box-shadow .2s;
}
.site-modern .up-kit__card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(31, 59, 99, .12); }
.site-modern .up-kit__icon { display: grid; flex: 0 0 auto; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: #e3ecfd; color: var(--site-blue); }
.site-modern .up-kit__card h3 { margin: 0; color: var(--site-ink); font-family: var(--site-font-heading); font-size: 19px; font-weight: 700; line-height: 1.3; }
.site-modern .up-kit__price { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 0; font-family: var(--site-font-body); }
.site-modern .up-kit__price strong { color: var(--site-blue); font-family: var(--site-font-heading); font-size: 40px; font-weight: 700; line-height: 1; }
.site-modern .up-kit__price span { color: var(--site-muted); font-size: 15px; font-weight: 600; }

/* ---------- Module price cards ---------- */
/* Two balanced columns (masonry-like) so cards of different heights leave no gaps */
.site-modern .up-modules { columns: 2; column-gap: 22px; }
.site-modern .up-modules > .up-module { break-inside: avoid; margin-bottom: 22px; }
.site-modern .up-module { padding: 24px 24px 20px; border: 1px solid #e4ebf6; border-radius: 24px; background: #fff; box-shadow: 0 12px 30px rgba(31, 59, 99, .06); }
.site-modern .up-module--promo { border: 2px solid var(--site-blue); background: linear-gradient(160deg, #ffffff 0%, #eef4ff 100%); box-shadow: 0 18px 40px rgba(33, 101, 232, .16); }
.site-modern .up-module__head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.site-modern .up-module__logo { position: relative; flex: 0 0 auto; width: 58px; height: 58px; margin: 0; }
.site-modern .up-module__logo picture { display: contents; }
.site-modern .up-module__logo img { position: absolute; inset: 22%; width: 56%; height: 56%; object-fit: contain; }
.site-modern .up-module__badge { flex: 0 0 auto; padding: 6px 12px; border-radius: var(--site-pill); background: linear-gradient(180deg, #2c6de5 0%, #2165e8 48%, #1d57c8 100%); color: #fff; font-family: var(--site-font-body); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.site-modern .up-module h3 { margin: 0; color: var(--site-ink); font-family: var(--site-font-heading); font-size: 18px; font-weight: 700; line-height: 1.35; }
.site-modern .up-module__rows { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-modern .up-module__rows li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name price" "meta price";
    column-gap: 14px;
    row-gap: 4px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f6f9ff;
}
.site-modern .up-module__name { grid-area: name; color: var(--site-ink); font-family: var(--site-font-body); font-size: 15px; font-weight: 700; line-height: 1.4; }
.site-modern .up-module__meta { grid-area: meta; display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--site-muted); font-family: var(--site-font-body); font-size: 13px; }
.site-modern .up-module__meta strong { color: #33435a; }
.site-modern .up-module__price { grid-area: price; padding: 7px 14px; border-radius: var(--site-pill); background: #e3ecfd; color: var(--site-blue); font-family: var(--site-font-body); font-size: 15px; font-weight: 700; white-space: nowrap; }
.site-modern .up-module--promo .up-module__price { background: var(--site-blue); color: #fff; }

/* ---------- Bani ---------- */
.site-modern .up-bani { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.site-modern .up-bani__card { padding: 26px 24px; border: 1px solid #e4ebf6; border-radius: 24px; background: #fff; box-shadow: 0 12px 30px rgba(31, 59, 99, .07); text-align: center; transition: transform .2s, box-shadow .2s; }
.site-modern .up-bani__card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(31, 59, 99, .12); }
.site-modern .up-bani__card--mid { border: 2px solid var(--site-blue); }
.site-modern .up-bani__card h3 { margin: 0 0 16px; color: var(--site-ink); font-family: var(--site-font-heading); font-size: 20px; font-weight: 700; text-align: center; }
.site-modern .up-bani__card dl { display: grid; gap: 10px; margin: 0; }
.site-modern .up-bani__card dl div { padding: 12px; border-radius: 14px; background: #f6f9ff; }
.site-modern .up-bani__card dt { color: var(--site-muted); font-family: var(--site-font-body); font-size: 13px; font-weight: 600; }
.site-modern .up-bani__card dd { margin: 4px 0 0; color: var(--site-muted); font-family: var(--site-font-body); font-size: 14px; }
.site-modern .up-bani__card dd strong { color: var(--site-blue); font-family: var(--site-font-heading); font-size: 26px; font-weight: 700; }

@media (max-width: 900px) {
    .site-modern .up-modules { columns: 1; max-width: 640px; margin: 0 auto; }
    .site-modern .up-groups { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin: 0 auto; }
    /* One column: a single vertical dashed line runs from the hub down past the cards */
    .site-modern .up-flow__grid { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin: 0 auto; gap: 30px; padding-top: 30px; }
    .site-modern .up-flow__grid::before { display: none; }
    .site-modern .up-flow__hub::after { height: 30px; }
    .site-modern .up-flow__card::before { height: 30px; }
    .site-modern .up-flow__card:first-child::before { display: none; }
}
@media (max-width: 760px) {
    .site-modern .up-kit, .site-modern .up-bani { grid-template-columns: minmax(0, 1fr); }
    .site-modern .up-kit__card { padding: 22px 20px; gap: 16px; }
    .site-modern .up-kit__icon { width: 58px; height: 58px; }
    .site-modern .up-kit__price strong { font-size: 34px; }
    .site-modern .up-module { padding: 20px 16px 16px; }
    .site-modern .up-module__rows li { grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "meta" "price"; }
    .site-modern .up-module__price { justify-self: start; margin-top: 6px; }
    .site-modern .up-group { padding: 20px 16px 16px; }
    .site-modern .up-legal__box { padding: 22px 18px; }
    .site-modern .up-flow__hub { padding: 12px 16px 12px 12px; gap: 12px; }
    .site-modern .up-flow__hub-logo { width: 48px; height: 48px; }
    .site-modern .up-flow__hub-logo img { width: 32px; height: 32px; }
    .site-modern .up-flow__hub strong { font-size: 16px; }
    .site-modern .up-flow__card { padding: 20px 16px 16px; }
}
