/* Groww pricing chooser — shared by the homepage pricing section and the
   questionnaire result. Paired with js/pricing-chooser.js. */

.pricing-switch { position: relative; display: flex; width: 320px; max-width: calc(100% - 30px); margin: 0 auto; background: #fff; border: 1px solid #ececea; border-radius: 100px; padding: 5px; box-shadow: 0 10px 30px rgba(0,0,0,.07); }
.pricing-switch li { flex: 1 1 0; list-style: none; position: relative; z-index: 1; margin: 0; }
.pricing-switch .switch-link { display: block; width: 100%; border: 0; background: transparent; border-radius: 100px; padding: 12px 0; text-align: center; font-weight: 600; font-size: 16px; line-height: 1.4; color: var(--medium-gray); cursor: pointer; transition: color .25s ease; }
.pricing-switch .switch-link:hover { color: var(--dark-gray); }
.pricing-switch .switch-link.active { background: var(--dark-gray); color: #fff; }
@supports selector(:has(a)) {
    .pricing-switch .switch-link.active { background: transparent; }
    .pricing-switch::before { content: ""; position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); background: var(--dark-gray); border-radius: 100px; box-shadow: 0 4px 14px rgba(0,0,0,.22); transition: transform .3s cubic-bezier(.4,0,.2,1); }
    .pricing-switch:has(li:last-child .switch-link.active)::before { transform: translateX(100%); }
}
@media (max-width: 575px) { .pricing-switch .switch-link { padding: 11px 0; font-size: 15px; } }

.plan-list { list-style: none; padding: 0; margin: 0; }
.plan-group { font-size: 13px; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; color: #a0a0a0; padding: 0 0 14px 10px; }
.plan-group.second { padding-top: 26px; }
.plan-row { position: relative; display: block; cursor: pointer; background: #fff; border: 2px solid transparent; border-radius: 8px; padding: 26px 34px; margin-bottom: 22px; box-shadow: 0 8px 26px rgba(0,0,0,.06); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.plan-list li:last-child .plan-row { margin-bottom: 0; }
.plan-row:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.10); }
.plan-row.rec { border-color: var(--base-color); }
.plan-row.rec::before { content: "Doporučuji"; position: absolute; top: -11px; left: 26px; background: var(--base-color); color: #fff; border-radius: 100px; padding: 0 13px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; line-height: 21px; box-shadow: 0 3px 10px rgba(249,111,74,.35); }
.plan-row.viewing { border-color: var(--dark-gray); box-shadow: 0 14px 34px rgba(0,0,0,.12); }
.plan-row-inner { display: flex; align-items: center; gap: 14px; }
.plan-tick { width: 30px; height: 30px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 2px solid #e2e2de; border-radius: 100px; font-size: 11px; color: #c8c8c4; transition: all .18s ease; }
.plan-row.chosen .plan-tick { background: var(--green); border-color: var(--green); color: #fff; }
.plan-name { font-size: 20px; font-weight: 600; color: var(--dark-gray); margin-right: auto; }
.plan-price { font-size: 24px; font-weight: 800; color: var(--dark-gray); white-space: nowrap; }
.plan-price span { font-size: 14px; font-weight: 400; opacity: .6; margin-left: 5px; }
@media (max-width: 575px) {
    .plan-row { padding: 20px; }
    .plan-row.rec::before { left: 18px; }
    .plan-row-inner { flex-wrap: wrap; row-gap: 10px; }
    .plan-name { font-size: 18px; }
    .plan-price { font-size: 21px; }
}

.pricing-grid { display: grid; gap: 30px; }
@media (min-width: 992px) {
    .pricing-grid { grid-template-columns: 1fr 1fr; }
    .pg-plans { grid-column: 1; grid-row: 1; }
    .pg-card { grid-column: 2; grid-row: 1 / span 2; }
    .pg-info { grid-column: 1; grid-row: 2; }
}
@media (min-width: 1200px) { .pricing-grid { grid-template-columns: 1.06fr 0.94fr; gap: 34px; } }
.plan-info { background: #f2f2ef; border: 1px solid #e6e6e0; border-radius: 8px; padding: 22px 26px; }
.plan-info-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; color: var(--medium-gray); margin-bottom: 12px; }
.plan-info-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px solid #e6e6e0; }
.plan-info-row:last-of-type { border-bottom: 0; }
.plan-info-row .iname { color: #555; font-size: 14.5px; }
.plan-info-row .iname a { color: var(--base-color); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.plan-info-row .ival { color: var(--dark-gray); font-weight: 700; font-size: 15px; white-space: nowrap; }
.plan-info-note { font-size: 12.5px; color: #9a9a95; margin: 12px 0 0; }
@media (max-width: 575px) { .plan-info { padding: 18px 20px; } }
.plan-card { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: 10px; box-shadow: 0 18px 50px rgba(0,0,0,.10); overflow: hidden; }
.plan-card-head { padding: 34px 40px 0; }
.plan-card-head h4 { font-size: 24px; font-weight: 700; color: var(--dark-gray); margin: 0; letter-spacing: -.3px; }
.plan-card-head p { font-size: 15px; color: #999; margin: 6px 0 0; }
.plan-perks { list-style: none; margin: 22px 0 0; padding: 0 40px; flex-grow: 1; }
.plan-perks li { padding: 13px 0; border-bottom: 1px solid #f0f0ec; font-weight: 500; color: #333; font-size: 15px; }
.plan-perks li:last-child { border-bottom: 0; }
.plan-perks i { color: var(--green); margin-right: 10px; }
.plan-card-foot { background: #f8f8f6; padding: 26px 40px 30px; margin-top: 26px; }
.price-split { display: flex; gap: 14px; margin-bottom: 22px; }
.price-split > div { flex: 1 1 0; }
.price-split .plabel { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; color: #999; margin-bottom: 4px; }
.price-split .pnum { font-size: 25px; font-weight: 800; color: var(--dark-gray); line-height: 1.2; }
.price-split .pnum small { font-size: 13px; font-weight: 500; opacity: .6; }
.price-split .ptier { display: block; font-size: 12.5px; color: var(--base-color); font-weight: 600; margin-top: 2px; }
.price-plus { align-self: center; font-size: 20px; font-weight: 700; color: #ccc; flex: 0 0 auto !important; padding-top: 14px; }
.plan-note { display: block; font-size: 12.5px; color: #999; margin-top: 14px; line-height: 1.5; }
@media (max-width: 575px) {
    .plan-card-head { padding: 26px 24px 0; }
    .plan-perks { padding: 0 24px; }
    .plan-card-foot { padding: 22px 24px 26px; }
}

/* switch spacing when rendered by the component */
.pricing-switch { margin: 0 auto 45px; }

/* stacked variant: single column at every width (narrow hosts, e.g. the questionnaire result) */
@media (min-width: 992px) {
    .pricing-grid.stacked { grid-template-columns: 1fr; }
    .pricing-grid.stacked .pg-plans,
    .pricing-grid.stacked .pg-card,
    .pricing-grid.stacked .pg-info { grid-column: 1; grid-row: auto; }
}
@media (min-width: 1200px) { .pricing-grid.stacked { grid-template-columns: 1fr; } }
