/* Homepage "Choose your program" selector — template-parts/content-program-selector.php */

@font-face { font-family: 'LevSelMedium'; src: url('../fonts/SuisseIntl-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@property --lev-sel-cta-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

.lev-sel {
    --ls-bg: #042820;
    --ls-panel: #063228;
    --ls-option: #073c30;
    --ls-option-on: #0b4937;
    --ls-mint: #9af5bd;
    --ls-heading: #c1f7d5;
    --ls-text: #d7f4e3;
    --ls-muted: #90a99c;
    --ls-stroke: rgba(154, 245, 189, .19);
    --ls-divider: rgba(154, 245, 189, .14);
    --ls-light: 'SuisseIntl-Light', 'SuisseIntl', Arial, sans-serif;
    --ls-regular: 'SuisseIntl', Arial, sans-serif;
    --ls-medium: 'LevSelMedium', 'SuisseIntl', Arial, sans-serif;
    position: relative;
    padding: 64px 40px 48px;
    background: var(--ls-bg);
    color: var(--ls-mint);
    font-family: var(--ls-light);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;
}
.lev-sel *, .lev-sel *::before, .lev-sel *::after { box-sizing: border-box; }
.lev-sel h2, .lev-sel h3, .lev-sel h4, .lev-sel p, .lev-sel dl, .lev-sel dd { margin: 0; padding: 0; text-transform: none; }
.lev-sel button { font: inherit; color: inherit; margin: 0; }
.lev-sel__inner { max-width: 1240px; margin: 0 auto; }

/* Header */
.lev-sel__head { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-bottom: 36px; text-align: center; }
.lev-sel__title { margin: 0 0 14px; font-family: var(--ls-light); font-size: 45px; font-weight: 300; line-height: 1.14; letter-spacing: -1.2px; color: var(--ls-mint); text-shadow: 0 2px 20px rgba(0, 25, 12, .44); }
.lev-sel__intro { font-size: 17px; line-height: 1.5; color: #a3c6b8; }

/* Two columns */
.lev-sel__board { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.lev-sel__col { display: flex; flex-direction: column; gap: 15px; min-width: 0; }
.lev-sel__col-label { margin-bottom: -5px; padding: 0 2px; font-family: var(--ls-light); font-size: 17px; font-weight: 300; line-height: 1.4; color: var(--ls-mint); text-align: left; }
.lev-sel__panel { position: relative; isolation: isolate; background: var(--ls-panel); border: 1px solid var(--ls-stroke); border-radius: 20px; box-shadow: inset 0 1px 0 rgba(210, 255, 233, .035); }

/* Product panel: family, program, size */
.lev-sel__product { padding: 0 25px; }
.lev-sel__group { padding: 23px 0; }
.lev-sel__group + .lev-sel__group { border-top: 1px solid var(--ls-divider); }
.lev-sel__label { display: flex; align-items: center; gap: 4px; margin-bottom: 17px; font-family: var(--ls-regular); font-size: 14px; font-weight: 400; line-height: 1.4; color: var(--ls-heading); }

.lev-sel__options, .lev-sel__programs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lev-sel__programs { gap: 9px; padding-top: 5px; }
.lev-sel__option, .lev-sel__program, .lev-sel__size {
    position: relative;
    border: 1px solid var(--ls-stroke);
    border-radius: 12px;
    background: var(--ls-option);
    color: var(--ls-text);
    text-align: left;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, box-shadow .15s, color .15s;
}
.lev-sel__option:hover:not(:disabled), .lev-sel__program:hover, .lev-sel__size:hover { border-color: rgba(154, 245, 189, .45); }
.lev-sel__option[aria-pressed="true"], .lev-sel__program[aria-pressed="true"], .lev-sel__size[aria-pressed="true"] {
    background: var(--ls-option-on);
    border-color: var(--ls-mint);
    box-shadow: inset 0 0 0 1px rgba(154, 245, 189, .25);
    color: var(--ls-mint);
}
.lev-sel__option:focus-visible, .lev-sel__program:focus-visible, .lev-sel__size:focus-visible, .lev-sel__info:focus-visible, .lev-sel__cta:focus-visible { outline: 2px solid var(--ls-mint); outline-offset: 3px; }

/* Radio dot for family + program options */
.lev-sel__option::before, .lev-sel__program::before {
    content: "";
    position: absolute;
    top: 23px;
    left: 16px;
    width: 13px;
    height: 13px;
    border: 1px solid #78ad93;
    border-radius: 50%;
}
.lev-sel__program::before { top: 21px; left: 14px; }
.lev-sel__option[aria-pressed="true"]::before, .lev-sel__program[aria-pressed="true"]::before { border: 4px solid var(--ls-mint); }

.lev-sel__option { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 86px; padding: 16px 16px 16px 38px; }
.lev-sel__option:disabled { opacity: .65; cursor: not-allowed; }
.lev-sel__option strong { display: block; font-family: var(--ls-regular); font-size: 17px; font-weight: 400; line-height: 1.3; color: var(--ls-heading); }
.lev-sel__option span { display: block; font-size: 14px; line-height: 1.4; color: var(--ls-muted); }

.lev-sel__tag {
    position: absolute;
    top: -11px;
    right: 9px;
    z-index: 2;
    padding: 3px 9px;
    border-radius: 20px;
    background: var(--ls-mint);
    color: var(--ls-bg);
    font-family: var(--ls-medium);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    pointer-events: none;
}
.lev-sel__option .lev-sel__tag { right: 11px; }

.lev-sel__programs.is-single { grid-template-columns: minmax(0, 1fr); max-width: 33.333%; }
.lev-sel__program { display: flex; flex-direction: column; align-items: flex-start; min-height: 118px; padding: 18px 12px 18px 37px; }
.lev-sel__program[hidden] { display: none; }
.lev-sel__program-name { display: flex; align-items: center; width: 100%; height: 24px; margin-bottom: 10px; container-type: inline-size; font-family: var(--ls-medium); font-size: 15px; font-weight: 500; line-height: 1; letter-spacing: -.2px; color: #edf2ee; }
.lev-sel__wordmark { display: block; width: auto; max-width: none; height: 15px; object-fit: contain; object-position: left center; }
@supports (height: 1cqw) { .lev-sel__wordmark { height: min(20px, 10.82cqw); } }
.lev-sel__program-desc { max-width: 200px; font-family: var(--ls-regular); font-size: 13px; font-weight: 400; line-height: 1.45; color: var(--ls-muted); }

.lev-sel__sizes { display: grid; grid-template-columns: repeat(var(--lev-sel-sizes, 6), minmax(0, 1fr)); gap: 8px; padding-top: 6px; }
.lev-sel__size { display: flex; align-items: center; justify-content: center; min-height: 45px; padding: 10px 4px; font-family: var(--ls-medium); font-size: 14px; font-weight: 500; line-height: 1.5; text-align: center; }
.lev-sel__size .lev-sel__tag { right: 5px; padding: 3px 7px; font-size: 9px; }

.lev-sel__info { display: inline-flex; align-items: center; justify-content: center; width: 21px; height: 21px; margin-left: 1px; padding: 2px; border: 0; border-radius: 50%; background: none; color: #9ac4af; cursor: pointer; }
.lev-sel__info svg { display: block; width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.65; }
.lev-sel__info:hover, .lev-sel__info[aria-expanded="true"] { color: var(--ls-mint); }

/* How it works */
.lev-sel__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; }
.lev-sel__step { padding: 21px 20px; }
.lev-sel__step + .lev-sel__step { border-left: 1px solid var(--ls-divider); }
.lev-sel__step-icon { display: block; width: 23px; height: 23px; margin-bottom: 12px; stroke: var(--ls-mint); stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.lev-sel__step h4 { margin-bottom: 7px; font-family: var(--ls-regular); font-size: 13px; font-weight: 400; line-height: 1.3; color: var(--ls-heading); }
.lev-sel__step p { font-size: 12px; line-height: 1.55; color: var(--ls-muted); }

/* Rules */
.lev-sel__rules { padding: 8px 20px 10px; }
/* Rule name + one column per stage (--lev-sel-rcols: 2, or 4 for Executive's three phases). */
.lev-sel__rrow { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(var(--lev-sel-rcols, 2), minmax(0, 1fr)); min-height: 46px; border-top: 1px solid var(--ls-divider); }
.lev-sel__rrow--head { min-height: 44px; border-top: 0; }
.lev-sel__rcell { position: relative; z-index: 1; display: flex; align-items: center; min-width: 0; padding: 10px 14px; }
.lev-sel__rcell:first-child { padding-left: 0; }
.lev-sel__rcell--reward { background: var(--ls-option-on); }
.lev-sel__rrow--head .lev-sel__rcell--reward { border-radius: 10px 10px 0 0; }
.lev-sel__rrow:last-of-type .lev-sel__rcell--reward { border-radius: 0 0 10px 10px; }
.lev-sel__rhead { font-size: 12px; line-height: 1.4; color: var(--ls-muted); }
.lev-sel__rhead--eval { font-family: var(--ls-medium); font-weight: 500; color: #c6e2d4; }
.lev-sel__rhead--reward { font-family: var(--ls-medium); font-weight: 500; color: var(--ls-mint); }
.lev-sel__rname { font-size: 13px; font-weight: 300; line-height: 1.4; color: #c6e2d4; }
.lev-sel__ast { margin-left: 2px; color: #ffee00; }
.lev-sel__rval { font-family: var(--ls-medium); font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--ls-mint); overflow-wrap: anywhere; }
.lev-sel__rval.is-na { font-family: var(--ls-regular); font-weight: 300; color: #6b8b76; }

/* Checkout */
.lev-sel__checkout { display: grid; gap: 8px; padding: 25px; }
.lev-sel__fee { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13px; line-height: 1.5; color: var(--ls-muted); }
.lev-sel__fee::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #86efac; }
.lev-sel__price { font-family: var(--ls-light); font-size: 51px; font-weight: 300; line-height: 1.05; letter-spacing: -2px; color: #c4f8d7; }
.lev-sel__price sup { top: auto; font-size: 48%; letter-spacing: -1px; vertical-align: super; }
.lev-sel__cost { font-size: 12px; line-height: 1.6; color: var(--ls-muted); }

.lev-sel__cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 50px;
    margin: 10px 0 7px;
    padding: 14px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    background:
        linear-gradient(175deg, #fff9a1 0%, #ffee00 42%, #dfcf00 100%) padding-box,
        conic-gradient(from var(--lev-sel-cta-angle), #b8ab00 0deg, #ffffdf 48deg, #fff26e 85deg, #a89a00 170deg, #ffee00 260deg, #ffffef 300deg, #b8ab00 360deg) border-box;
    box-shadow: inset 0 2px 1px #ffffff94, inset 0 -3px 2px #7166004d, 0 4px 0 #817600, 0 9px 28px #ffee0018;
    color: var(--ls-bg) !important;
    font-family: var(--ls-regular);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    text-decoration: none !important;
    transition: box-shadow .25s, filter .25s;
    animation: lev-sel-edge-turn 6s linear infinite;
}
.lev-sel__cta > * { position: relative; z-index: 2; }
/* Dot texture + periodic shine */
.lev-sel__cta::before { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; background-image: radial-gradient(#0428204d .6px, transparent .8px); background-size: 5px 5px; opacity: .16; mask-image: linear-gradient(transparent, #000 75%); pointer-events: none; }
.lev-sel__cta::after { content: ""; position: absolute; inset: -100% auto -100% -55%; z-index: 1; width: 34%; background: linear-gradient(90deg, transparent, #ffffff9c 45%, #fff 50%, #ffffff8c 55%, transparent); filter: blur(3px); transform: translateX(-150%) rotate(22deg); animation: lev-sel-cta-shine 6.5s ease-in-out infinite; pointer-events: none; }
.lev-sel__cta:hover, .lev-sel__cta:focus-visible {
    background:
        linear-gradient(175deg, #fffbc0, #fff347 44%, #f4e624) padding-box,
        conic-gradient(from var(--lev-sel-cta-angle), #e5d719, #fff, #ffee00, #a89a00, #fffbd9, #e5d719) border-box;
    box-shadow: inset 0 2px 1px #ffffffb3, inset 0 -3px 2px #71660033, 0 4px 0 #968900, 0 0 34px #ffee005c, 0 10px 28px #ffee002b;
}
.lev-sel__cta:active { box-shadow: inset 0 2px 5px #71660033, 0 1px 0 #817600, 0 0 20px #ffee0026; }
@keyframes lev-sel-edge-turn { to { --lev-sel-cta-angle: 360deg; } }
@keyframes lev-sel-cta-shine {
    0%, 8% { transform: translateX(-150%) rotate(22deg); opacity: 0; }
    11% { opacity: .65; }
    32%, 100% { transform: translateX(620%) rotate(22deg); opacity: 0; }
}

/* Payment methods */
.lev-sel__payments { padding: 1px 5px 0; }
.lev-sel__payments h4 { margin-bottom: 9px; font-family: var(--ls-regular); font-size: 11px; font-weight: 400; line-height: 1.4; color: var(--ls-muted); }
/* Equal-width chips: five columns, capped so they don't stretch across wide panels. */
.lev-sel__payment-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; max-width: 360px; }
.lev-sel__payment { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; height: 27px; padding: 0 8px; border: 1px solid var(--ls-stroke); border-radius: 5px; background: var(--ls-panel); color: #b8dcca; font-family: var(--ls-regular); font-size: 10px; line-height: 1; white-space: nowrap; }
.lev-sel__payment--visa { font-family: var(--ls-medium); font-size: 15px; font-style: italic; font-weight: 500; letter-spacing: -.6px; }
.lev-sel__payment img { display: block; width: auto; height: 18px; }
.lev-sel__mastercard { display: flex; align-items: center; width: 25px; height: 17px; }
.lev-sel__mastercard i { flex: none; width: 16px; height: 16px; border-radius: 50%; background: #ca8d72; }
.lev-sel__mastercard i + i { margin-left: -7px; background: #c4ae79; opacity: .9; }
.lev-sel__bitcoin { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #c4ab79; color: #163224; font-size: 12px; }
.lev-sel__payments p { margin-top: 8px; font-size: 9px; line-height: 1.5; color: #6b8b76; }
.lev-sel__payments .lev-sel__addons { margin: 0 0 12px; font-size: 11px; color: var(--ls-muted); }

.lev-sel__note { margin-top: 22px; font-size: 11px; line-height: 1.5; color: #8cb29f; }

/* Info popover (appended to <body> by the script) */
.lev-sel-popover { position: fixed; z-index: 10000; width: 310px; max-width: calc(100vw - 24px); padding: 16px 18px; border: 1px solid #9af5bd55; border-radius: 12px; background: #123223; box-shadow: 0 14px 36px #0008, inset 0 1px #caffda18; font-family: 'SuisseIntl', Arial, sans-serif; font-size: 12px; line-height: 1.6; }
.lev-sel-popover[hidden] { display: none; }
.lev-sel-popover strong { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 400; line-height: 1.4; color: #dcffe7; }
.lev-sel-popover p { margin: 0; color: #abc9b5; }

/* Pointer-following edge light (layers added by the script on fine pointers only) */
[data-glow] { --glow-angle: 135deg; --glow-strength: .18; }
.lev-sel__glow { position: absolute; inset: -1px; z-index: 1; padding: 2px; border-radius: inherit; pointer-events: none; background: conic-gradient(from var(--glow-angle), transparent 0deg, #9af5bd33 30deg, #9af5bd 65deg, #e0ffec 85deg, #9af5bd 105deg, #9af5bd33 140deg, transparent 170deg); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#fff 0 0) content-box exclude, linear-gradient(#fff 0 0); opacity: var(--glow-strength); transition: opacity .4s ease; }
.lev-sel__glow--halo { inset: -6px; padding: 7px; filter: blur(8px); opacity: calc(var(--glow-strength) * .5); }
[data-glow]:focus-within { --glow-strength: .65; }

/* One column: product → checkout → rules → how it works */
@media (max-width: 1100px) {
    .lev-sel { padding: 56px 24px 40px; }
    .lev-sel__board { display: flex; flex-direction: column; align-items: stretch; gap: 15px; }
    .lev-sel__col { display: contents; }
    .lev-sel__col-label--product { order: 1; }
    .lev-sel__product { order: 2; }
    .lev-sel__checkout { order: 3; }
    .lev-sel__payments { order: 4; }
    .lev-sel__col-label--rules { order: 5; margin-top: 10px; }
    .lev-sel__rules { order: 6; }
    .lev-sel__steps { order: 7; }
}

@media (max-width: 800px) {
    .lev-sel { padding: 40px 16px 32px; }
    .lev-sel__title { font-size: 34px; letter-spacing: -.8px; }
    .lev-sel__head { padding-bottom: 24px; }
    .lev-sel__intro { font-size: 15px; }
    .lev-sel__product { padding: 0 16px; }
    .lev-sel__group { padding: 20px 0; }
    .lev-sel__sizes { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
    .lev-sel__rules { padding: 8px 14px 10px; }
    .lev-sel__steps { grid-template-columns: minmax(0, 1fr); }
    .lev-sel__step + .lev-sel__step { border-left: 0; border-top: 1px solid var(--ls-divider); }
}

/* Phones: options stack as compact rows */
@media (max-width: 560px) {
    .lev-sel__options, .lev-sel__programs { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .lev-sel__rrow { grid-template-columns: minmax(0, 1.3fr) repeat(var(--lev-sel-rcols, 2), minmax(0, 1fr)); }
    .lev-sel__rcell { padding: 10px 8px; }
    .lev-sel__rules.is-wide .lev-sel__rcell { padding: 10px 4px; }
    .lev-sel__rules.is-wide :is(.lev-sel__rname, .lev-sel__rval, .lev-sel__rhead) { font-size: 11px; }
    .lev-sel__programs.is-single { max-width: none; }
    .lev-sel__option { min-height: 0; padding: 13px 16px 13px 38px; gap: 2px; }
    .lev-sel__option::before { top: 16px; }
    .lev-sel__program { min-height: 0; padding: 14px 14px 14px 37px; }
    .lev-sel__program::before { top: 18px; }
    .lev-sel__program-name { margin-bottom: 6px; }
    .lev-sel__wordmark { height: 17px; }
    .lev-sel__program-desc { max-width: none; font-size: 12px; }
    .lev-sel__price { font-size: 46px; }
}

@media (hover: none), (prefers-reduced-motion: reduce) {
    .lev-sel__glow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .lev-sel__cta { animation: none; transition: none; }
    .lev-sel__cta::after { display: none; }
    .lev-sel__option, .lev-sel__program, .lev-sel__size { transition: none; }
}
