/* Free concept check: /check, plus the first-question card on the homepage and trade pages.
   One question at a time on a glass card. Choices are big rows you tap, not a dropdown. */

.ck { position: relative; padding-block: clamp(128px, 13vw, 176px) clamp(72px, 8vw, 120px); }
.ck-wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.ck-side { display: flex; flex-direction: column; gap: 22px; padding-top: 12px; }
.ck-title { font-family: var(--display); font-weight: 700; font-size: clamp(38px, 4.4vw, 64px); line-height: 1; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; max-width: 9em; }
.ck-lede { font-size: clamp(17px, 1.45vw, 20px); color: var(--muted); max-width: 26em; }
.ck-facts { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px solid var(--line); max-width: 26em; }
.ck-facts li { padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.ck-alt { color: var(--muted); }
.ck-alt a { color: var(--ink); font-weight: 600; }

.ck-form, .ck-card { padding: clamp(22px, 3vw, 36px); border-radius: var(--r-lg); color: var(--ink); }
.ck-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.ck-prog { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.ck-count { font-size: 14px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.ck-bar { display: grid; grid-template-columns: repeat(4, 28px); gap: 6px; }
.ck-bar i { display: block; height: 4px; border-radius: 2px; background: rgba(11, 20, 32, .12); transition: background-color .25s ease; }
.ck-bar i.is-done { background: var(--ink); }

.ck-q { display: block; float: none; width: 100%; font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 18px; padding: 0; text-wrap: balance; }
.ck-q:focus { outline: none; }
.ck-help { color: var(--muted); margin: -6px 0 18px; max-width: 34em; }
.ck-step .field + .field { margin-top: 16px; }

.ck-opts { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ck-step[data-step="1"] .ck-opts, .ck-card-types .ck-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ck-opt {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 44px 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: rgba(255, 255, 255, .8);
  color: var(--ink); font-weight: 600; font-size: 16px; line-height: 1.25; text-decoration: none; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, transform .15s cubic-bezier(.2, .8, .2, 1);
  -webkit-tap-highlight-color: transparent;
}
.ck-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ck-opt-t { display: flex; flex-direction: column; gap: 2px; }
.ck-opt small { font-size: 14px; font-weight: 400; color: var(--muted); }
.ck-ico { flex: none; box-sizing: content-box; width: 22px; height: 22px; padding: 9px; border-radius: 10px; background: #EAF3FB; color: var(--ink); transition: background-color .15s ease, color .15s ease; }
/* the right-hand mark: an empty ring that fills when chosen, or an arrow on the link cards */
.ck-opt::after { content: ""; position: absolute; right: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 1.5px solid rgba(11, 20, 32, .35); box-sizing: border-box; transition: border-color .15s ease, background-color .15s ease; }
a.ck-opt::after { border: 0; border-radius: 0; width: 16px; height: 16px; margin-top: -8px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; opacity: .55; transition: transform .15s cubic-bezier(.2, .8, .2, 1), opacity .15s ease; }
@media (hover: hover) and (pointer: fine) {
  .ck-opt:hover { border-color: var(--ink); background: #fff; }
  a.ck-opt:hover::after { transform: translateX(3px); opacity: 1; }
}
.ck-opt:active { transform: scale(.98); }
.ck-opt:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.ck-opt:has(input:checked) { border-color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.ck-opt:has(input:checked) .ck-ico { background: var(--loud); color: var(--loud-ink); }
.ck-opt:has(input:checked)::after { border-color: var(--ink); background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }

.ck-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; }
.ck-foot:has(> [hidden]:first-child):has(> [hidden]:last-child) { display: none; }
.ck-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.ck-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.ck-next { margin-left: auto; }
.ck-send { width: 100%; justify-content: center; margin-top: 18px; }
.ck-err { margin: 10px 0 0; color: var(--warn); font-size: 14.5px; font-weight: 600; }
.ck-honest { margin: 14px 0 0; color: var(--muted); }
.ck-honest a { color: var(--ink); font-weight: 600; }
.ck-legal { margin: 18px 0 0; color: var(--muted); }

/* With JS: one question at a time, sliding in from the side it came from. Without JS it is one plain form. */
html.js [data-check] .ck-step { display: none; }
html.js [data-check] .ck-step.is-on { display: block; animation: ck-in .24s cubic-bezier(.2, .8, .2, 1) both; }
html.js [data-check] .ck-step.is-on.is-back { animation-name: ck-in-back; }
html:not(.js) [data-check] .ck-step + .ck-step { margin-top: 32px; }
html:not(.js) .ck-prog { display: none; }
@keyframes ck-in { from { opacity: 0; transform: translateX(18px); } }
@keyframes ck-in-back { from { opacity: 0; transform: translateX(-18px); } }
@media (prefers-reduced-motion: reduce) {
  html.js [data-check] .ck-step.is-on { animation: none; }
  .ck-opt, .ck-opt::after { transition: none; }
}

/* The first-question card on the homepage and trade pages: same rows, as links into /check */
.ck-card { display: flex; flex-direction: column; }
.ck-card-k { font-size: 14px; font-weight: 600; color: var(--muted); margin: 0 0 14px; }
.ck-card .ck-q { margin-bottom: 18px; }
.ck-card-foot { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

@media (max-width: 900px) {
  .ck-wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ck-side { gap: 14px; padding-top: 0; }
  .ck-facts, .ck-alt { display: none; }
}
@media (max-width: 560px) {
  .ck { padding-top: 100px; }
  .ck-title { font-size: 32px; max-width: none; }
  .ck-lede { font-size: 16px; }
  .ck-step[data-step="1"] .ck-opts, .ck-card-types .ck-opts { grid-template-columns: minmax(0, 1fr); }
  .ck-opt { min-height: 58px; }
  .ck-bar { grid-template-columns: repeat(4, 20px); }
}
