/* =============================================
   COMPONENTS — buttons, cards, badges, mockup
   ============================================= */

/* ----- BUTTONS ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.2s, opacity 0.2s, border-color 0.2s, color 0.2s;
}

.btn--primary {
  background: var(--green);
  color: #fff;
}
.btn--primary:hover { background: var(--green-dark); }

.btn--secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--secondary:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

/* outline putih */
.btn--tertiary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.85);
}

.btn--tertiary:hover{
  background: rgba(255,255,255,0.08);
  border-color: #fff;
  color: #fff;
}

.btn--white {
  background: #fff;
  color: var(--green-dark);
  font-weight: 700;
}
.btn--white:hover { opacity: 0.92; }

.btn--sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
}

/* ----- HERO BADGE ----- */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-light);
  color: var(--green-dark);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid #9FE1CB;
}

.hero-badge__dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ----- FEATURE CARD ----- */
.feat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.feat-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.feat-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feat-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #111;
}

.feat-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ----- STEP CARD ----- */
.step {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  position: relative;
}

.step__num {
  font-family: 'Sora', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--green-light);
  display: block;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.step h3 {
  font-size: 0.975rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.step p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ----- ROLE CARD ----- */
.role-card {
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid transparent;
}

.role-card--staff     { background: var(--role-staff-bg);  border-color: var(--role-staff-border); }
.role-card--sv        { background: var(--role-sv-bg);     border-color: var(--role-sv-border); }
.role-card--manager   { background: var(--role-mgr-bg);    border-color: var(--role-mgr-border); }
.role-card--admin     { background: var(--role-admin-bg);  border-color: var(--role-admin-border); }
.role-card--owner     { background: var(--role-owner-bg);  border-color: var(--role-owner-border); }

.role-card h4 { font-size: 0.875rem; font-weight: 700; margin-bottom: 0.5rem; }
.role-card--staff h4   { color: var(--role-staff-text); }
.role-card--sv h4      { color: var(--role-sv-text); }
.role-card--manager h4 { color: var(--role-mgr-text); }
.role-card--admin h4   { color: var(--role-admin-text); }
.role-card--owner h4   { color: var(--role-owner-text); }

.role-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.7);
  padding: 2px 8px;
  border-radius: 100px;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.role-card ul { list-style: none; padding: 0; }
.role-card li { font-size: 0.8rem; color: #374151; padding: 3px 0; }
.role-card li::before { content: '✓ '; font-weight: 700; opacity: 0.6; }

/* ----- CMD ITEM ----- */
.cmd-item {
  background: #0F2E1E;
  border: 1px solid #1D4D35;
  border-radius: 10px;
  padding: 1rem 1.25rem;
}

.cmd-item__label {
  font-size: 0.72rem;
  color: #5DCAA5;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cmd-item__code {
  font-family: 'Courier New', monospace;
  font-size: 0.88rem;
  color: #d1fae5;
  font-weight: 600;
  margin-bottom: 6px;
}

.cmd-item__desc {
  font-size: 0.78rem;
  color: #6b7280;
}

/* ----- PRICING CARD ----- */
.pricing-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  position: relative;
}

.pricing-card--featured {
  border: 2px solid var(--green);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  width: fit-content;
  margin: 0 auto;
  background: var(--green);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-card__tier {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.pricing-card__original {
  font-size: 0.8rem;
  color: var(--text-xmuted);
  text-decoration: line-through;
  margin-bottom: 2px;
}

.pricing-card__price {
  font-family: 'Sora', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: #0a0a0a;
  line-height: 1;
}

.pricing-card__period {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.pricing-card__tag {
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 1.25rem;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.pricing-card li {
  font-size: 0.875rem;
  padding: 5px 0;
  color: #374151;
}

.pricing-card li.muted {
  color: var(--text-xmuted);
}

/* ----- MAINTENANCE CARD ----- */
.maint-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.maint-card__tier {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.maint-card__price {
  font-family: 'Sora', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #0a0a0a;
}

.maint-card__period {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-xmuted);
}

.maint-card ul { list-style: none; padding: 0; margin-top: 0.85rem; }
.maint-card li { font-size: 0.82rem; padding: 3px 0; color: #374151; }

/* ----- TESTIMONIAL CARD ----- */
.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
}

.testimonial-card__quote {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-card__quote::before { content: '\201C'; }
.testimonial-card__quote::after  { content: '\201D'; }

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-card__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--green-dark);
  flex-shrink: 0;
}

.testimonial-card__name {
  font-weight: 700;
  font-size: 0.875rem;
  color: #111;
}

.testimonial-card__role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ----- FAQ ----- */
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--green);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item__body {
  padding: 0 1.25rem 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.9rem;
}

/* ----- WHATSAPP MOCKUP ----- */
.mockup {
  background: #ece5dd;
  border-radius: 16px;
  padding: 1.25rem;
  border: 1px solid #d5cdc5;
  text-align: left;
  max-width: 280px;
}

.mockup__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -1.25rem -1.25rem 1rem;
  padding: 0.85rem 1.25rem;
  border-radius: 16px 16px 0 0;
}

.mockup__header--green  { background: #075e54; }
.mockup__header--blue   { background: #1a3c5e; }

.mockup__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.mockup__avatar--green { background: var(--green-light); color: var(--green-dark); }
.mockup__avatar--blue  { background: #E6F1FB; color: #185FA5; }

.mockup__name   { color: #fff; font-size: 0.9rem; font-weight: 600; }
.mockup__status { color: #b5d4d0; font-size: 0.72rem; }

.mockup__label {
  font-size: 0.7rem;
  color: #888;
  margin-bottom: 8px;
  text-align: center;
}

/* Chat bubbles */
.msg { margin-bottom: 8px; }

.msg__in {
  background: #fff;
  border-radius: 0 10px 10px 10px;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  max-width: 90%;
  display: inline-block;
  color: #111;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.msg__out-wrap { text-align: right; }

.msg__out {
  background: #d9fdd3;
  border-radius: 10px 0 10px 10px;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  max-width: 90%;
  display: inline-block;
  color: #111;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.msg__time {
  font-size: 0.65rem;
  color: #8696a0;
  margin-top: 2px;
  text-align: right;
}

.msg__badge {
  font-size: 0.7rem;
  border-radius: 4px;
  padding: 1px 5px;
  margin-bottom: 4px;
  display: inline-block;
  color: #fff;
}

.msg__badge--green { background: #25d366; }
.msg__badge--blue  { background: #185FA5; }

/* Approve/Reject inline buttons */
.msg__actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.msg__action-btn {
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
}

.msg__action-btn--approve { background: #e6f7f1; color: var(--green-dark); }
.msg__action-btn--reject  { background: #fef2f2; color: #A32D2D; }
