/* Pricing page (achizitie_software.php): logo-orbit hero, price cards, included features, module price list, CTA.
   Builds on css/product-page.css and the hero grid from css/efactura.css. */
.site-modern.site-pricing :is(h1, h2, h3, p) { float: none; width: auto; border-left: 0; }

/* ---------- Hero ---------- */
.site-modern .ac-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.site-modern .ac-jump a {
    padding: 7px 14px;
    border: 1px solid #c9daf8;
    border-radius: var(--site-pill);
    background: #fff;
    color: var(--site-blue);
    font-family: var(--site-font-body);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
}
.site-modern .ac-jump a:hover, .site-modern .ac-jump a:focus-visible { border-color: var(--site-blue); background: var(--site-blue); color: #fff; }

.site-modern .ac-orbit { position: relative; display: grid; place-items: center; width: min(100%, 500px); aspect-ratio: 1; margin: 0 auto; }
.site-modern .ac-orbit .ef-orbit { width: 82%; }
.site-modern .ac-orbit picture { display: contents; }
.site-modern .ac-orbit__center {
    display: grid;
    place-items: center;
    width: 40%;
    aspect-ratio: 1;
    padding: 9%;
    border-radius: 50%;
    background:
        radial-gradient(ellipse 72% 42% at 50% 6%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%),
        linear-gradient(180deg, #ffffff 0%, #f3f7ff 55%, #e3ecfd 100%);
    box-shadow: inset 0 2px 0 #fff, inset 0 -8px 16px rgba(33, 101, 232, .12), 0 0 0 10px rgba(33, 101, 232, .06), 0 24px 48px rgba(23, 38, 61, .18);
}
/* Photo in the centre: the source image is already round, crop slightly inside its white corners */
.site-modern .ac-orbit__center--photo { width: 60%; padding: 0; overflow: hidden; border: 8px solid #fff; background: #fff; box-shadow: 0 0 0 1px rgba(33, 101, 232, .12), 0 30px 60px rgba(23, 38, 61, .2); }
.site-modern .ac-orbit__center--photo img { transform: scale(1.06); object-fit: cover; }
.site-modern .ac-orbit__center img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* Logos are positioned inside the disc, so a tall logo (Platphorma WEB) can never stretch the disc into an oval */
.site-modern .ac-orbit__logo img { position: absolute; inset: 20%; display: block; width: 60%; height: 60%; object-fit: contain; }
/* Product discs and the offer button share 6 slots on the dashed orbit: angle = slot * 60deg, starting at the top */
.site-modern .ac-orbit__logo {
    --angle: calc(var(--slot) * 60deg - 90deg);
    position: absolute;
    z-index: 1;
    top: calc(50% + 41% * sin(var(--angle)));
    left: calc(50% + 41% * cos(var(--angle)));
    display: grid;
    place-items: center;
    width: 16%;
    height: auto;
    aspect-ratio: 1;
    padding: 0;
    overflow: hidden;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(33, 101, 232, .1), 0 14px 28px rgba(23, 38, 61, .14);
    transform: translate(-50%, -50%);
    animation: ac-float 6s ease-in-out infinite;
    animation-delay: calc(var(--i) * -1.2s);
}
/* Blue "Cere o ofertă" button: a slightly larger disc on the orbit */
.site-modern .ac-orbit__offer {
    --angle: calc(var(--slot) * 60deg - 90deg);
    position: absolute;
    z-index: 2;
    top: calc(50% + 41% * sin(var(--angle)));
    left: calc(50% + 41% * cos(var(--angle)));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 22%;
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(ellipse 70% 40% at 50% 8%, rgba(255, 255, 255, .35), 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 -8px 16px rgba(10, 40, 110, .3), 0 0 0 6px rgba(255, 255, 255, .85), 0 16px 32px rgba(33, 101, 232, .35);
    color: #fff;
    font-family: var(--site-font-body);
    font-size: clamp(15px, 1.6vw, 20px);
    font-weight: 700;
    line-height: 1.12;
    text-align: center;
    text-decoration: none;
    transform: translate(-50%, -50%);
    transition: transform .2s, box-shadow .2s;
}
.site-modern .ac-orbit__offer:hover, .site-modern .ac-orbit__offer:focus-visible { transform: translate(-50%, -50%) scale(1.06); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -8px 16px rgba(10, 40, 110, .3), 0 0 0 6px rgba(255, 255, 255, .95), 0 22px 40px rgba(33, 101, 232, .45); }
.site-modern .ac-orbit__offer:focus-visible { outline: 3px solid #17263d; outline-offset: 8px; }
/* Coloured dots in the Platphorma logo colours, placed in the gaps of the orbit */
.site-modern .ac-dot { position: absolute; border-radius: 50%; animation: ac-float 7s ease-in-out infinite; }
.site-modern .ac-dot--orange { top: 6%; left: 22%; width: 14px; height: 14px; background: #f46a25; box-shadow: 0 6px 12px rgba(244, 106, 37, .35); }
.site-modern .ac-dot--purple { top: 10%; right: 14%; width: 11px; height: 11px; background: #91288f; animation-delay: -1.5s; }
.site-modern .ac-dot--red { top: 50%; right: 1%; width: 9px; height: 9px; background: #e5242b; animation-delay: -3s; }
.site-modern .ac-dot--green { bottom: 7%; right: 22%; width: 13px; height: 13px; background: #3bb54a; box-shadow: 0 6px 12px rgba(59, 181, 74, .3); animation-delay: -4.5s; }
.site-modern .ac-dot--blue { top: 46%; left: 0; width: 16px; height: 16px; background: #2165e8; box-shadow: 0 6px 14px rgba(33, 101, 232, .35); animation-delay: -2.2s; }
@keyframes ac-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@media (prefers-reduced-motion: reduce) { .site-modern :is(.ac-orbit__logo, .ac-dot) { animation: none; } }

/* ---------- Sections ---------- */
.site-modern .ac-section { padding: 80px 24px; scroll-margin-top: 90px; }
/* The hero keeps its normal bottom padding (nothing gets clipped); the first section starts a bit closer */
.site-modern.site-pricing .ef-hero + .ac-section { padding-top: 48px; }
.site-modern .ac-section--tint { background: linear-gradient(180deg, #f6f9ff 0%, #eef3fd 100%); }
.site-modern .ac-section__inner { max-width: 1160px; margin: 0 auto; }
.site-modern .ac-section__inner--narrow { max-width: 920px; }
.site-modern .ac-badge { display: inline-block; margin-right: 6px; padding: 3px 10px; border-radius: var(--site-pill); background: var(--site-blue); color: #fff; letter-spacing: .06em; }

/* Monthly / yearly switch */
.site-modern .ac-billing { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: -12px 0 32px; }
.site-modern .ac-switch { display: inline-flex; padding: 4px; border: 1px solid #c9daf8; border-radius: var(--site-pill); background: #fff; box-shadow: 0 6px 14px rgba(33, 101, 232, .08); }
.site-modern .ac-switch button {
    padding: 9px 20px;
    border: 0;
    border-radius: var(--site-pill);
    background: transparent;
    color: var(--site-blue);
    font-family: var(--site-font-body);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.site-modern .ac-switch button.is-active { background: linear-gradient(180deg, #2c6de5 0%, #2165e8 48%, #1d57c8 100%); color: #fff; }
.site-modern .ac-switch button:focus-visible { outline: 3px solid #17263d; outline-offset: 2px; }
.site-modern .ac-billing__note { margin: 0; color: #2e7d3c; font-family: var(--site-font-body); font-size: 15px; font-weight: 600; text-align: center; }

/* Price cards */
.site-modern .ac-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.site-modern .ac-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 34px 26px 26px;
    border: 1px solid #e4ebf6;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(31, 59, 99, .07);
    transition: transform .2s, box-shadow .2s;
}
.site-modern .ac-plan:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(31, 59, 99, .12); }
.site-modern .ac-plan--popular { border: 2px solid var(--site-blue); box-shadow: 0 20px 44px rgba(33, 101, 232, .18); }
.site-modern .ac-plan__popular {
    position: absolute;
    top: 0;
    left: 50%;
    padding: 6px 16px;
    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;
    white-space: nowrap;
    transform: translate(-50%, -50%);
}
.site-modern .ac-plan__logo { width: 84px; height: 84px; margin: 0 auto 16px; padding: 18px; }
.site-modern .ac-plan__logo picture { display: contents; }
.site-modern .ac-plan__logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.site-modern .ac-plan h3 { margin: 0; color: var(--site-ink); font-family: var(--site-font-heading); font-size: 22px; font-weight: 700; text-align: center; }
.site-modern .ac-plan__price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 6px; margin: 14px 0 20px; padding-bottom: 20px; border-bottom: 1px solid #e4ebf6; font-family: var(--site-font-body); text-align: center; }
.site-modern .ac-plan__price strong { color: var(--site-blue); font-family: var(--site-font-heading); font-size: 42px; font-weight: 700; line-height: 1; }
.site-modern .ac-plan__price span { color: var(--site-muted); font-size: 15px; font-weight: 600; }
.site-modern .ac-plan__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-modern .ac-plan__list li { display: flex; gap: 10px; color: #33435a; font-family: var(--site-font-body); font-size: 15px; line-height: 1.5; }
.site-modern .ac-plan__check { display: grid; flex: 0 0 auto; place-items: center; width: 18px; height: 22px; color: var(--site-blue); }

/* Included features */
.site-modern .ac-included { margin-top: 40px; padding: 32px 34px; border: 1px solid #d6e3f7; border-radius: 24px; background: #fff; box-shadow: 0 12px 30px rgba(31, 59, 99, .06); }
.site-modern .ac-included h3 { margin: 0 0 20px; color: var(--site-ink); font-family: var(--site-font-heading); font-size: 22px; font-weight: 700; }
.site-modern .ac-included h3 span { color: var(--site-blue); }
.site-modern .ac-included .ac-plan__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }

/* Module price list */
.site-modern .ac-modules { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-modern .ac-modules li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 20px;
    border: 1px solid #e4ebf6;
    border-radius: 16px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.site-modern .ac-modules li:hover { border-color: #c9daf8; box-shadow: 0 10px 22px rgba(31, 59, 99, .08); }
.site-modern .ac-modules__name { color: var(--site-ink); font-family: var(--site-font-body); font-size: 16px; font-weight: 600; line-height: 1.45; }
.site-modern .ac-modules__price { flex: 0 0 auto; padding: 6px 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 .ac-modules__price--text { max-width: 46%; background: #f1f4f9; color: #4a5a70; font-size: 14px; white-space: normal; text-align: right; }
.site-modern .ac-modules__link { flex: 0 0 auto; color: var(--site-blue); font-family: var(--site-font-body); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-modern .ac-modules__link:hover { text-decoration: underline; }

@media (max-width: 1000px) {
    .site-modern .ac-plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; gap: 30px; }
}
@media (max-width: 900px) {
    .site-modern .ac-orbit { width: min(84vw, 400px); order: -1; }
    .site-modern .ac-jump { justify-content: center; }
}
@media (max-width: 760px) {
    .site-modern .ac-section { padding: 56px 16px; }
    .site-modern.site-pricing .ef-hero + .ac-section { padding-top: 32px; }
    .site-modern .ac-included { padding: 24px 20px; }
    .site-modern .ac-included .ac-plan__list { grid-template-columns: minmax(0, 1fr); }
    .site-modern .ac-modules li { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; }
    .site-modern .ac-modules__price--text { max-width: none; text-align: left; }
    .site-modern .ac-plan__price strong { font-size: 36px; }
}
