/* BASE */
body {
  font-family: Arial, sans-serif;
  background: #0f172a;
  color: white;
  margin: 0;
  line-height: 1.6;
}

/* CONTAINER */
.container {
  max-width: 800px;
  margin: auto;
  padding: 20px;
}

/* HEADINGS */
h1 {
  font-size: 26px;
  line-height: 1.3;
  margin-bottom: 10px;
}

h2 {
  margin-top: 30px;
  font-size: 20px;
}

/* TEXT */
p {
  margin-bottom: 15px;
}

/* STATS */
.stats {
  margin: 20px 0;
  padding: 15px;
  background: #1e293b;
  border-radius: 10px;

  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* CTA BUTTON */
.cta {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;
  box-sizing: border-box;

  margin: 20px 0;
  padding: 16px;

  background: #3b82f6;
  color: white;
  text-decoration: none;

  border-radius: 10px;
  font-weight: bold;
  font-size: 16px;

  transition: all 0.2s ease;
}

/* HOVER */
.cta:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

/* CLICK */
.cta:active {
  transform: scale(0.98);
}



/* DISCLAIMER */
.disclaimer {
  font-size: 12px;
  opacity: 0.7;
}

.small {
  font-size: 12px;
  opacity: 0.6;
}

/* INPUTS */
input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  margin-top: 5px;
  font-size: 16px;
}

/* BUTTON */
button {
  width: 100%;
  padding: 14px;
  background: #22c55e;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background: #16a34a;
}

/* CHART */
canvas {
  width: 100% !important;
  margin-top: 20px;
}

/* DESKTOP ENHANCEMENTS */
@media (min-width: 768px) {

  .stats {
    grid-template-columns: 1fr 1fr;
  }



  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 22px;
  }

}

.range-toggle {
  display: flex;
  gap: 10px;
  margin: 15px 0;
}

.range-toggle button {
  flex: 1;
  padding: 10px;
  background: #1e293b;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
}

.range-toggle button.active {
  background: #3b82f6;
}

/* FORM INSIDE STATS */
.stats label {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.8;
}

.stats input {
  width: 100%;
  box-sizing: border-box;
  margin-top: 5px;
}

.stats button {
  width: 100%;
  margin-top: 15px;
}

.stats p {
  margin-top: 15px;
  font-size: 16px;
}

select {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  margin-top: 5px;
  font-size: 16px;
}

.packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.package {
  background: #111;
  border: 1px solid #222;
  padding: 14px;
  border-radius: 10px;
  text-align: center;
}

.package strong {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
}

.package span {
  font-size: 18px;
  font-weight: bold;
  color: #3b82f6;
}

.package small {
  display: block;
  font-size: 12px;
  color: #aaa;
}

.package.highlight {
  border: 1px solid #3b82f6;
  background: #0b1220;
}

.packages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 20px;
}

/* tablet */
@media (max-width: 900px) {
  .packages {
    grid-template-columns: repeat(2, 1fr);
  }
}

.risks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 15px;
}

.risk {
  background: #1e293b;
  border: 1px solid #2e3b55;
  padding: 12px;
  border-radius: 10px;
}

.risk strong {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
  color: #f87171; /* punainen = riski */
}

.risk p {
  font-size: 12px;
  color: #ccc;
  margin: 0;
}