/* "כמה זה עולה בפועל?" worked examples, r3 "3-second card": ONE stylesheet for /pricing and every /lp page
   (app/Views/partials/pricing_examples.php). Self-contained brand tokens (the /lp pages do not load homepage2/main.css).
   Visual first, text last: deep-green card, amber "חודש וחצי מתנה" ribbon, the big first-year average, the post-trial price at
   half the numeral height (legal ML-2), a wordless first-year bar with the brand icon, the one-line footnote + "פרטי החישוב".
   Below 768px the two offices are two tabs (JS); without JS both cards show. Logical properties only. */
.th-ex {
    --ex-hat: #0F5C45; --ex-deep: #0A2A21; --ex-cream: #F6EFD9; --ex-amber: #F0A32F; --ex-ink: #1a1a1a;
    --ex-mint: #CFE6DA; --ex-mint-bg: #F2F7F4; --ex-muted: #4C6158; --ex-focus: 0 0 0 .25rem rgba(240, 163, 47, .55);
    --ex-num: clamp(2.6rem, 2rem + 2.4vw, 3.4rem);   /* the big numeral; the post-trial numerals are half of it (ML-2) */
    background: radial-gradient(70% 60% at 100% 0%, #E6F2EC 0%, transparent 60%), linear-gradient(180deg, var(--ex-mint-bg), #fff);
}
.th-ex--lp { padding-block: 44px; color: var(--ex-deep); }
.th-ex__h { text-align: center; }
.th-ex__block { max-inline-size: 920px; margin: 1.25rem auto 0; }
.th-ex__grid { display: grid; gap: 1.25rem; }

.th-ex__card { position: relative; overflow: hidden; display: grid; gap: .75rem; padding: 1.4rem 1.25rem 1.25rem; border-radius: 1.5rem; color: var(--ex-cream);
    background: radial-gradient(120% 70% at 85% 0%, #1B6B50 0%, transparent 60%), linear-gradient(180deg, var(--ex-deep), #0D3528);
    box-shadow: 0 2px 4px rgba(10, 42, 33, .12), 0 30px 60px -24px rgba(10, 42, 33, .55); }
.th-ex__ribbon { position: absolute; z-index: 2; inset-block-start: 18px; inset-inline-end: -46px; inline-size: 190px; padding: 6px 0; rotate: 45deg; background: var(--ex-amber); color: var(--ex-ink); font-weight: 800; font-size: .85rem; text-align: center; box-shadow: 0 6px 14px rgba(0, 0, 0, .3); }
:dir(rtl) .th-ex__ribbon { rotate: -45deg; }
.th-ex__head { padding-inline-end: 4rem; }
.th-ex__size { margin: 0; font-size: 1.4rem; font-weight: 900; color: var(--ex-amber); }
.th-ex__plan { margin: .1rem 0 0; font-size: .95rem; font-weight: 600; color: var(--ex-cream); }

.th-ex__chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.th-ex__chip { display: inline-flex; align-items: center; gap: .4rem; min-block-size: 44px; padding: 0 1rem; border: 2px solid rgba(246, 239, 217, .45); border-radius: 999px; background: transparent; color: var(--ex-cream); font: inherit; font-weight: 700; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.th-ex__chip[hidden] { display: none; }
.th-ex__ck { inline-size: 1rem; block-size: 1rem; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.th-ex__chip[aria-pressed="true"] { background: var(--ex-cream); border-color: var(--ex-cream); color: var(--ex-deep); }
.th-ex__chip[aria-pressed="true"] .th-ex__ck { opacity: 1; color: var(--ex-hat); }
.th-ex__chip:focus-visible, .th-ex__tab:focus-visible, .th-ex__det summary:focus-visible { outline: none; box-shadow: var(--ex-focus); }

.th-ex__calc { margin: 0; font-size: .95rem; font-weight: 600; color: var(--ex-cream); }
.th-ex__calc[hidden] { display: none; }
.th-ex__price { display: grid; gap: .1rem; }
.th-ex__lbl { margin: 0; font-size: .95rem; font-weight: 700; color: var(--ex-cream); }
.th-ex__lbl--then { margin-block-start: .45rem; }
.th-ex__big { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; }
.th-ex__amount { font-size: var(--ex-num); font-weight: 900; line-height: 1.05; color: #fff; font-variant-numeric: tabular-nums; }
.th-ex__per { font-weight: 600; font-size: .95rem; }
.th-ex__star { margin-inline-start: .15rem; color: var(--ex-amber); font-weight: 800; text-decoration: none; }
.th-ex__then { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .45rem; }
.th-ex__then-n { font-size: max(18px, calc(var(--ex-num) / 2)); font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }   /* legal ML-2 */
.th-ex__small { font-size: max(14px, .9rem); font-weight: 600; }
.th-ex__card.is-bump .th-ex__amount { animation: th-ex-bump .3s ease-out; }
@keyframes th-ex-bump { 40% { transform: scale(1.04); text-shadow: 0 0 24px rgba(240, 163, 47, .55); } }

/* wordless first-year bar: the trial share glows amber, the brand icon sits where billing starts */
.th-ex__bar { position: relative; display: flex; block-size: 1.5rem; margin-block: .35rem .1rem; border-radius: .6rem; background: rgba(246, 239, 217, .14); }
.th-ex__bar-free { flex: 0 0 max(var(--free), 3rem); display: grid; place-items: center; border-radius: .6rem; background: var(--ex-amber); color: var(--ex-ink); font-size: .75rem; font-weight: 800; box-shadow: 0 0 18px rgba(240, 163, 47, .65); }
.th-ex__car { position: absolute; inset-block-start: 50%; inset-inline-start: calc(max(var(--free), 3rem) + .2rem); translate: 0 -50%; inline-size: 1.75rem; block-size: 1.75rem; border-radius: 22%; box-shadow: 0 4px 10px rgba(0, 0, 0, .45); }

/* footnote: one visible line + the calculation details (legal ML-1) */
.th-ex__fn { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .6rem; font-size: max(14px, .85rem); line-height: 1.5; color: var(--ex-cream); }
.th-ex__fn-l { margin: 0; }
.th-ex__det { flex: 0 0 auto; }
.th-ex__det[open] { flex-basis: 100%; }
.th-ex__det summary { display: inline-flex; align-items: center; gap: .3rem; min-block-size: 32px; cursor: pointer; font-weight: 800; color: var(--ex-amber); text-decoration: underline; text-underline-offset: 3px; list-style: none; }
.th-ex__det summary::-webkit-details-marker { display: none; }
.th-ex__det summary::after { content: ""; inline-size: .45rem; block-size: .45rem; border-block-end: 2px solid currentColor; border-inline-end: 2px solid currentColor; rotate: 45deg; translate: 0 -2px; transition: rotate .15s; }
.th-ex__det[open] summary::after { rotate: -135deg; translate: 0 2px; }
.th-ex__det p { margin: .4rem 0 0; }
.th-ex__cta { inline-size: 100%; }

.th-ex__note { margin: 1rem 0 0; text-align: center; font-size: .92rem; color: var(--ex-muted); }
.th-ex__lpcta { max-inline-size: 420px; margin: 1.1rem auto 0; }
.th-ex__lpcta .lp-btn { inline-size: 100%; }

.th-ex__tabs { display: none; }
@media (max-width: 767px) {
    .th-ex.is-js .th-ex__tabs { display: flex; gap: .4rem; margin-block-end: .8rem; padding: .3rem; border-radius: 999px; background: var(--ex-mint); }
    .th-ex__tab { flex: 1; min-block-size: 44px; border: 0; border-radius: 999px; background: none; color: var(--ex-deep); font: inherit; font-weight: 700; cursor: pointer; }
    .th-ex__tab[aria-selected="true"] { background: var(--ex-deep); color: var(--ex-cream); }
    .th-ex.is-js .th-ex__card:not(.is-on) { display: none; }
}
@media (min-width: 768px) {
    .th-ex__grid { grid-template-columns: 1fr 1fr; }
    .th-ex__card { padding: 1.7rem 1.6rem 1.5rem; }
    .th-ex--lp { padding-block: 64px; }
}
@media (prefers-reduced-motion: reduce) {
    .th-ex__card.is-bump .th-ex__amount { animation: none; }
    .th-ex__chip, .th-ex__det summary::after { transition: none; }
}
