/* ============================================================
   Arvokello — components.css
   Uudelleenkäytettävät komponentit: napit, hinnoittelukortit, UKK, CTA-banneri.
   ============================================================ */

.ak-btn {
  display: inline-block;
  background: var(--teal-ink);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-btn);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 1.75rem;
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
              transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.ak-btn:hover {
  background: var(--teal-ink-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(79,115,145,0.35);
}
.ak-btn:active { transform: translateY(0); }

/* ============ PRICING ============ */
.ak-pricing-wrap { padding: 4rem 1.5rem 6rem; background: var(--bg-2); }
.ak-pricing-head { text-align: center; margin-bottom: 3.5rem; }
.ak-pricing-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: stretch;
}
@media (max-width: 1000px) { .ak-pricing-grid { grid-template-columns: repeat(2, 1fr); max-width: 700px; } }
@media (max-width: 540px)  { .ak-pricing-grid { grid-template-columns: 1fr; max-width: 420px; } }
.ak-plan {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.ak-plan:hover {
  transform: translateY(-7px);
  border-color: var(--teal);
  box-shadow: var(--shadow-lg);
}
.ak-plan.featured {
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 12px 40px rgba(44,63,82,0.22);
}
.ak-plan.featured:hover {
  border-color: var(--teal);
  box-shadow: 0 26px 62px rgba(44,63,82,0.34);
}
.ak-plan-badge {
  display: inline-block;
  background: var(--gold-soft);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.28rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  align-self: flex-start;
}
.ak-plan-name {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.ak-plan.featured .ak-plan-name { color: #fff; }
.ak-plan-price { font-size: 2rem; font-weight: 600; color: var(--navy); line-height: 1; }
.ak-plan.featured .ak-plan-price { color: #fff; }
.ak-plan-price span { font-size: 0.85rem; color: var(--text-muted); }
.ak-plan.featured .ak-plan-price span { color: rgba(255,255,255,0.6); }
.ak-plan-yearly { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.3rem; margin-bottom: 0.8rem; }
.ak-plan.featured .ak-plan-yearly { color: rgba(255,255,255,0.6); }
.ak-plan-desc {
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 1.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
}
.ak-plan.featured .ak-plan-desc { color: rgba(255,255,255,0.8); border-bottom-color: rgba(255,255,255,0.12); }
.ak-plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
  flex: 1;
}
.ak-plan-features li {
  font-size: 0.85rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.5;
}
.ak-plan.featured .ak-plan-features li { color: rgba(255,255,255,0.85); }
.ak-plan-features li.off { opacity: 0.5; }
.ak-check {
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 0.1em;
  border-radius: 50%;
  background: rgba(79,115,145,0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.ak-plan:hover .ak-plan-features li:not(.off) .ak-check { background: rgba(79,115,145,0.3); }
.ak-check svg {
  width: 9px; height: 9px;
  stroke: var(--teal-dark);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ak-plan-features li.off .ak-check svg { stroke: var(--text-muted); }
.ak-plan.featured .ak-check { background: rgba(111,166,160,0.2); }
.ak-plan.featured .ak-check svg { stroke: var(--teal); }
.ak-plan.featured:hover .ak-plan-features li:not(.off) .ak-check { background: rgba(111,166,160,0.38); }
.ak-plan-btn {
  display: block;
  text-align: center;
  padding: 0.78rem;
  border-radius: var(--radius-btn);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
              border-color 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.ak-plan-btn.filled { background: var(--gold-soft); color: var(--navy); }
.ak-plan-btn.filled:hover {
  background: #fff; color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}
.ak-plan-btn.outline { border: 1.5px solid var(--navy); color: var(--navy); }
.ak-plan-btn.outline:hover {
  background: var(--navy); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(44,63,82,0.24);
}
.ak-plan-btn:active { transform: translateY(0); }

/* ============ FAQ ============ */
.ak-faq-list { margin-top: 3rem; max-width: 700px; }
.ak-faq-list details { border-bottom: 1px solid var(--border); }
.ak-faq-list details:first-child { border-top: 1px solid var(--border); }
.ak-faq-q {
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
  list-style: none;
  padding: 1.4rem 0.25rem;
  transition: color 0.22s var(--ease), padding-left 0.22s var(--ease);
}
.ak-faq-q::-webkit-details-marker { display: none; }
.ak-faq-q:hover { color: var(--teal-dark); padding-left: 0.6rem; }
.ak-faq-q::after {
  content: '';
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background:
    linear-gradient(var(--teal-dark), var(--teal-dark)) center/11px 1.5px no-repeat,
    linear-gradient(var(--teal-dark), var(--teal-dark)) center/1.5px 11px no-repeat,
    var(--bg-2);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.ak-faq-q:hover::after { border-color: var(--teal); transform: scale(1.08); }
.ak-faq-list details[open] .ak-faq-q { color: var(--teal-dark); }
.ak-faq-list details[open] .ak-faq-q::after { transform: rotate(135deg); border-color: var(--teal); }
.ak-faq-body { overflow: hidden; }
.ak-faq-a {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
  padding: 0 0.25rem 1.5rem;
  max-width: 620px;
}

/* ============ CTA BANNER ============ */
.ak-cta { background: var(--navy); padding: 4rem 1.5rem 5rem; text-align: center; }
.ak-cta .ak-label { color: rgba(255,255,255,0.5); }
.ak-cta h2 {
  font-weight: 700;
  letter-spacing: -0.005em;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: #fff;
  max-width: 580px;
  margin: 0 auto 0.75rem;
  line-height: 1.2;
}
.ak-cta p { color: rgba(255,255,255,0.65); max-width: 440px; margin: 0 auto 2rem; line-height: 1.75; }
.ak-cta-badges { display: flex; gap: 0.75rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.ak-cta-badges a {
  display: inline-block;
  border-radius: 8px;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.ak-cta-badges a:hover { opacity: 0.92; transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,0.3); }
.ak-cta-badges img { height: 42px; width: auto; display: block; }

