/* The free pricing challenge (challenge.html). Builds on site.css: brand colours, fonts, buttons, sections. */
button.btn{border:0;cursor:pointer}
.btn-line{background:transparent;color:var(--head);border:1.5px solid var(--line)!important}
.btn-line:hover{background:var(--alt)}
.btn-line:focus-visible{outline:3px solid var(--violet);outline-offset:3px}
.ch-hero{padding:64px 0 56px}
.ch-hero h1{font-size:clamp(40px,5.6vw,68px)}
.ch-hero .lede{max-width:680px}
.ch-hero button.btn-ghost{background:transparent;border:1.5px solid rgba(255,255,255,.35);color:#fff}
.ch-sec{padding:56px 0 88px}
.ch-app{max-width:920px;margin:0 auto}
.ch-card{background:var(--panel);border:1px solid var(--line);border-radius:var(--r);padding:28px;box-shadow:0 18px 50px -30px rgba(42,27,61,.35)}
.ch-card h2{font-size:clamp(26px,3.2vw,34px)}
.ch-start p{color:var(--muted);margin:12px 0 24px;max-width:620px}
.ch-wait{display:flex;align-items:center;gap:14px;font-weight:600;color:var(--head)}
.ch-spin{width:22px;height:22px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--violet);animation:chspin .9s linear infinite;flex:none}
@keyframes chspin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.ch-spin{animation:none;border-top-color:var(--line)}}

.ch-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px}
.ch-tag{margin:0;font:700 12px/1.3 var(--body);letter-spacing:.12em;text-transform:uppercase;color:var(--eyebrow)}
.ch-dots{display:flex;gap:8px;margin:0;padding:0;list-style:none}
.ch-dots li{display:flex;align-items:center;gap:6px;min-height:32px;padding:0 12px;border-radius:99px;border:1px solid var(--line);color:var(--muted);font-size:13px}
.ch-dots li.now{border-color:var(--violet);color:var(--head);font-weight:600}
.ch-dots li.done{background:var(--alt)}
.ch-dots li b{color:var(--head)}
.ch-h{margin:0 0 10px}
.ch-h:focus{outline:none}
.ch-season{color:var(--muted);margin:0 0 14px}
.ch-news{margin:0 0 16px;padding:12px 16px;border-radius:12px;background:rgba(255,200,69,.16);border:1px solid rgba(255,200,69,.55)}
.ch-news p{margin:0}
.ch-news .ch-news-k{font:700 11px/1.4 var(--body);letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-bottom:2px}
.ch-ly{display:flex;flex-wrap:wrap;gap:6px 18px;margin:0 0 18px;font-size:14px;color:var(--muted)}
.ch-ly dt{font-weight:700;color:var(--ink);width:100%}
.ch-ly dd{margin:0}
.ch-ly b{color:var(--ink)}

.ch-tw{overflow-x:auto}
.ch-rates{width:100%;border-collapse:collapse}
.ch-rates th,.ch-rates td{padding:12px 8px;border-bottom:1px solid var(--line);vertical-align:top;text-align:left}
.ch-rates thead th{font:700 14px/1.2 var(--body);color:var(--head);vertical-align:bottom}
.ch-rates thead th span{display:block;font-weight:400;font-size:12px;color:var(--muted);margin-top:2px}
.ch-rates tbody th b{display:block;font:700 17px/1.2 var(--display);color:var(--head)}
.ch-rates tbody th span{display:block;font-size:13px;line-height:1.4;color:var(--muted);font-weight:400;margin-top:4px;max-width:300px}
.ch-rate{display:flex;align-items:center;gap:4px;width:max-content;border:1px solid var(--line);border-radius:12px;background:var(--bg);padding:2px}
.ch-rate:focus-within{outline:3px solid var(--lilac);outline-offset:1px}
.ch-eur{color:var(--muted);font-weight:600;padding-left:2px}
.ch-rate input{width:3.4em;min-height:40px;border:0;background:transparent;color:var(--ink);font:700 18px/1 var(--body);text-align:center;-moz-appearance:textfield;appearance:textfield;padding:0}
.ch-rate input::-webkit-outer-spin-button,.ch-rate input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.ch-rate input:focus{outline:none}
.ch-step{all:unset;box-sizing:border-box;cursor:pointer;width:44px;height:44px;border-radius:10px;display:grid;place-items:center;font:700 20px/1 var(--body);color:var(--head)}
.ch-step:hover{background:var(--alt)}
.ch-step:focus-visible{outline:3px solid var(--violet);outline-offset:-3px}
.ch-riv{margin:6px 0 0;font-size:13px;color:var(--muted)}
.ch-note,.ch-small{font-size:13px;color:var(--muted);margin:12px 0 0}
.ch-act{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:22px}

.ch-res{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:20px;margin-top:16px}
.ch-idx,.ch-score{border-radius:14px;padding:20px;color:#fff;background:linear-gradient(160deg,var(--plum),var(--plum7))}
.ch-idx .ch-kpi-l,.ch-score .ch-kpi-l{color:var(--lilac)}
.ch-idx .ch-small,.ch-score .ch-small{color:rgba(255,255,255,.75)}
.ch-big{margin:4px 0 0;font:800 64px/1 var(--display);letter-spacing:-.03em}
.ch-rank{margin:8px 0 0;font-weight:700}
.ch-grade{margin:10px 0 0;font:700 18px/1.2 var(--display);color:var(--mint)}
.ch-kpi-l{margin:0 0 8px;font:700 12px/1.3 var(--body);letter-spacing:.1em;text-transform:uppercase;color:var(--eyebrow)}
.ch-kpis{display:grid;gap:16px}
.ch-bar{display:grid;grid-template-columns:4.5em 1fr auto;align-items:center;gap:10px;font-size:14px;margin-top:4px}
.ch-bar span{color:var(--muted)}
.ch-bar i{display:block;height:12px;border-radius:6px;min-width:4px}
.ch-bar.you i{background:var(--coral)}
.ch-bar.mkt i{background:var(--lilac)}
.ch-bar b{min-width:5.5em;text-align:right;color:var(--ink)}
.ch-fb{margin-top:18px;padding:14px 16px;border-radius:12px;background:var(--alt)}
.ch-fb p{margin:0}.ch-fb p+p{margin-top:8px}

.ch-final{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:24px}
.ch-sum p{margin:0 0 10px}
.ch-tab{width:100%;border-collapse:collapse;margin-top:6px;font-size:15px}
.ch-tab th,.ch-tab td{padding:8px 6px;border-bottom:1px solid var(--line);text-align:right;white-space:nowrap}
.ch-tab th:first-child{text-align:left}
.ch-tab thead th{font-size:13px;color:var(--muted)}
.ch-tot th,.ch-tot td{border-bottom:0;border-top:2px solid var(--line)}
.ch-b{margin-top:20px;border:1px solid var(--line);border-radius:12px;padding:0 16px}
.ch-b summary{cursor:pointer;min-height:48px;display:flex;align-items:center;font-weight:700;color:var(--head)}
.ch-b summary:focus-visible{outline:3px solid var(--violet);outline-offset:2px}
.ch-b ul{margin:0;padding:0 0 0 18px;font-size:14px}
.ch-b li{margin:0 0 6px}
.ch-b .ch-small{margin:8px 0 14px}
.ch-share{margin-top:22px}
.ch-share label{display:block;font-weight:700;color:var(--head);margin-bottom:6px}
.ch-share textarea{width:100%;font:400 15px/1.5 var(--body);color:var(--ink);background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:10px 12px;resize:none}
.ch-share textarea:focus-visible{outline:3px solid var(--lilac);outline-offset:1px}
.ch-share .ch-act{margin-top:10px}
.ch-copied{font-size:14px;color:var(--mint7)}
.ch-cta{margin-top:28px;padding:22px;border-radius:14px;background:var(--alt)}
.ch-cta p{color:var(--muted);margin:8px 0 16px}
.ch-how{grid-template-columns:repeat(4,1fr)}
.ch-how .card h3{margin-top:0}
@media (prefers-color-scheme:dark){
  .ch-copied{color:var(--mint)}
  .ch-news{background:rgba(255,200,69,.1);border-color:rgba(255,200,69,.4)}
  .ch-idx,.ch-score{background:linear-gradient(160deg,#2A1F37,#3A2950)}
}
@media (max-width:1000px){.ch-how{grid-template-columns:repeat(2,1fr)}}
@media (max-width:760px){
  .ch-hero{padding:44px 0 40px}
  .ch-sec{padding:28px 0 64px}
  .ch-card{padding:18px}
  .ch-res,.ch-final,.ch-how{grid-template-columns:1fr}
  .ch-hero .cta-row .btn{flex:1 1 100%}
  .ch-act .btn{flex:1 1 100%}
  /* the rate table turns into one block per segment */
  .ch-rates thead{display:none}
  .ch-rates,.ch-rates tbody,.ch-rates tr{display:block}
  .ch-rates tr{display:grid;grid-template-columns:1fr 1fr;gap:8px 10px;padding:14px 0;border-bottom:1px solid var(--line)}
  .ch-rates th,.ch-rates td{display:block;border:0;padding:0}
  .ch-rates tbody th{grid-column:1 / -1}
  .ch-rates td::before{display:block;font:700 12px/1.3 var(--body);color:var(--muted);margin-bottom:4px}
  .ch-rates td:nth-child(2)::before{content:attr(data-h)}
  .ch-rates td:nth-child(3)::before{content:attr(data-h)}
  .ch-rate{width:100%;gap:0}
  .ch-step{width:38px;height:44px;flex:none}
  .ch-eur{padding-left:0;font-size:14px}
  .ch-rate input{flex:1 1 auto;width:auto;min-width:0}
  .ch-big{font-size:52px}
  .ch-bar{grid-template-columns:4em 1fr auto}
}
