:root {
  --ink: #17233a;
  --muted: #59657a;
  --blue: #1766d4;
  --blue-dark: #104caa;
  --teal: #0e9c91;
  --paper: #f6f9ff;
}

* { box-sizing: border-box; }
body.corevalin-page { min-height: 100vh; min-height: 100svh; margin: 0; overflow: hidden; background: var(--paper); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.page-backdrop { position: fixed; inset: 0; overflow: hidden; background: var(--paper); }
.page-backdrop picture, .page-backdrop img { display: block; width: 100%; height: 100%; }
.page-backdrop img { object-fit: cover; object-position: center top; }

.choice-modal { position: fixed; inset: 0; z-index: 10; display: grid; width: 100%; max-width: none; height: 100%; max-height: none; place-items: center; margin: 0; padding: 1rem; border: 0; background: rgba(13, 31, 61, .34); -webkit-backdrop-filter: blur(1.5px); backdrop-filter: blur(1.5px); }
.choice-modal[open] { display: grid; }
.choice-modal__dialog { width: min(100%, 700px); max-height: calc(100vh - 2rem); overflow-y: auto; padding: clamp(1.5rem, 5vw, 2.75rem); border: 1px solid rgba(255,255,255,.72); border-radius: 24px; background: rgba(255,255,255,.96); box-shadow: 0 28px 80px rgba(5, 22, 49, .35); text-align: center; }
.choice-modal__eyebrow { margin: 0 0 .45rem; color: var(--blue); font-size: .76rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.choice-modal__flag { display: block; width: 72px; height: 48px; margin: 0 auto 1rem; border: 1px solid #d5deeb; border-radius: 5px; box-shadow: 0 3px 8px rgba(20, 44, 83, .12); }
.choice-modal h1 { max-width: 620px; margin: 0 auto .8rem; font-size: clamp(1.8rem, 4.5vw, 2.65rem); line-height: 1.13; letter-spacing: -.035em; }
.choice-modal__dialog > p:not(.choice-modal__eyebrow) { max-width: 585px; margin: 0 auto 1.45rem; color: var(--muted); }
.choice-modal__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; text-align: left; }
.choice-card { position: relative; display: flex; min-height: 255px; flex-direction: column; align-items: flex-start; padding: 1.25rem; border: 2px solid #d9e3f3; border-radius: 17px; background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.choice-card:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: 0 14px 24px rgba(24, 75, 145, .14); }
.choice-card:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 3px; }
.choice-card:disabled { cursor: wait; opacity: .65; transform: none; }
.choice-card--quiz { border-color: #aecbfa; background: linear-gradient(160deg, #f7fbff, #fff); }
.choice-card--sales { border-color: #b8e8dd; background: linear-gradient(160deg, #f5fffc, #fff); }
.choice-card__icon { display: block; width: 64px; height: 64px; margin-bottom: .85rem; }
.choice-card__discount { position: absolute; top: .85rem; right: .85rem; display: inline-flex; min-height: 29px; align-items: center; justify-content: center; padding: .34rem .58rem; border: 1px solid rgba(255,255,255,.72); border-radius: 999px; background: linear-gradient(135deg, #f05c64, #d92e4f); color: #fff; font-size: .7rem; font-weight: 900; letter-spacing: .045em; line-height: 1; box-shadow: 0 5px 12px rgba(180, 37, 56, .28); }
.choice-card__content strong { display: block; margin-bottom: .35rem; font-size: 1.12rem; line-height: 1.25; }
.choice-card__content span { display: block; color: var(--muted); font-size: .94rem; line-height: 1.42; }
.choice-card__cta { width: 100%; margin-top: auto; padding-top: 1.1rem; color: var(--blue-dark); font-size: .92rem; font-weight: 850; }
.choice-card--sales .choice-card__cta { color: #087c73; }
.choice-modal__status { display: inline-block; margin: 1.1rem auto 0 !important; padding: .45rem .85rem; border-radius: 999px; background: #e4efff; color: var(--blue-dark) !important; font-size: .9rem; font-weight: 800; }
.choice-modal__status[hidden] { display: none; }
.choice-modal__legal { margin: 1.1rem auto 0 !important; color: #69758a !important; font-size: .78rem; }

@media (max-width: 580px) {
  .choice-modal { padding: 1.25rem .8rem; }
  .choice-modal__dialog { max-height: calc(100svh - 2.5rem); padding: 1.15rem .95rem .95rem; border-radius: 18px; }
  .choice-modal__eyebrow { margin-bottom: .25rem; font-size: .68rem; }
  .choice-modal h1 { margin-bottom: .45rem; font-size: clamp(1.55rem, 7.5vw, 1.9rem); }
  .choice-modal__dialog > p:not(.choice-modal__eyebrow) { margin-bottom: .8rem; font-size: .88rem; line-height: 1.4; }
  .choice-modal__options { grid-template-columns: 1fr; gap: .65rem; }
  .choice-card { display: grid; min-height: 0; grid-template-columns: 46px minmax(0, 1fr); column-gap: .7rem; align-items: center; padding: .8rem; }
  .choice-modal__flag { width: 54px; height: 36px; margin-bottom: .55rem; }
  .choice-card__icon { width: 46px; height: 46px; grid-row: 1 / span 2; margin: 0; }
  .choice-card__discount { top: .52rem; right: .52rem; min-height: 25px; padding: .29rem .45rem; font-size: .62rem; }
  .choice-card__content { padding-right: 4.65rem; }
  .choice-card__content strong { font-size: 1rem; }
  .choice-card__content span { font-size: .88rem; }
  .choice-card__cta { margin-top: .38rem; padding-top: 0; font-size: .86rem; }
  .choice-modal__legal { margin-top: .8rem !important; font-size: .72rem; line-height: 1.35; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
