:root{
  --blue-50:#e6f0ff;
  --blue-200:#a7c8ff;
  --blue-400:#5a8fff;
  --blue-500:#2f6dff;
  --blue-600:#2457cc;
  --ink-900:#0f172a;
  --ink-600:#334155;
  --ink-400:#64748b;
  --bg:#f8fafc;
  --card:#ffffff;
  --ring: var(--blue-400);
}

/* Base */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji','Segoe UI Emoji';
  color:var(--ink-900);
  background:linear-gradient(180deg,var(--bg),var(--blue-50));
}

.app-header{
  position:sticky; top:0; z-index:10;
  backdrop-filter:saturate(1.2) blur(6px);
  background:rgba(255,255,255,.6);
  border-bottom:1px solid var(--blue-200);
}
h1{
  margin:0; padding:16px 20px;
  text-align:center;
  font-size: clamp(28px, 6vw, 44px);
  color:var(--blue-600);
  letter-spacing:0.5px;
  text-shadow: 0 1px 0 #fff;
}
.container{
  max-width:980px; margin:16px auto; padding:0 12px 44px;
  display:grid; gap:16px;
}
.card{
  background:var(--card);
  border:1px solid var(--blue-200);
  border-radius:16px;
  box-shadow: 0 8px 20px rgba(47,109,255,0.08);
  padding:16px;
}
.card h2{
  margin:0 0 8px 0;
  font-size: clamp(18px, 3.5vw, 22px);
  color:var(--ink-900);
}
.hint{margin:0 0 8px 0; color:var(--ink-600); font-size:14px}

.checkbox-grid{
  display:grid; gap:8px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.checkbox{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  border:1px solid var(--blue-200);
  border-radius:12px;
  cursor:pointer;
  transition:transform .05s ease, box-shadow .15s ease, border-color .15s ease, background .2s ease;
}
.checkbox input{appearance:none; width:20px; height:20px; border:2px solid var(--blue-400); border-radius:6px; display:inline-block; position:relative; outline:none}
.checkbox input:checked{background:var(--blue-500); border-color:var(--blue-500)}
.checkbox input:checked::after{content:''; position:absolute; inset:0; background:white; clip-path: polygon(27% 54%, 43% 69%, 73% 34%, 84% 46%, 43% 86%, 16% 59%);}
.checkbox:hover{transform:translateY(-1px); box-shadow:0 8px 16px rgba(47,109,255,0.10)}
.checkbox.active{border-color:var(--blue-500); background:linear-gradient(0deg, rgba(90,143,255,0.10), transparent)}

select{
  width:100%; padding:12px;
  border:1.5px solid var(--blue-200);
  border-radius:12px;
  font-size:16px;
  background:white;
  outline:none;
}
select:focus{border-color:var(--ring); box-shadow:0 0 0 4px rgba(47,109,255,0.15)}

.solutions{
  display:grid; gap:16px;
}
@media (min-width: 760px){
  .solutions{grid-template-columns:1fr 1fr}
}

.solutions-list{
  display:flex; flex-direction:column; gap:8px; min-height:48px;
}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px; border-radius:12px;
  border:1px solid var(--blue-200);
  background:linear-gradient(0deg, rgba(90,143,255,0.08), transparent);
  line-height:1.2;
}
.badge .dot{
  width:8px; height:8px; border-radius:999px; background:var(--blue-500);
  box-shadow:0 0 0 4px rgba(47,109,255,0.15);
}
.empty{color:var(--ink-400)}

.app-footer{ text-align:center; padding:24px; color:var(--ink-400) }

/* A11y */
.visually-hidden{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* Touch targets */
.checkbox{min-height:48px}
