/* Buttons */
.sm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--sm-radius-pill);
  border: 1px solid transparent;
  font-family: var(--sm-font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  cursor: pointer;
  transition: background var(--sm-transition), border-color var(--sm-transition), transform var(--sm-transition);
  text-align: center;
  white-space: nowrap;
}

.sm-btn:hover { transform: translateY(-1px); }
.sm-btn:active { transform: translateY(0); }

.sm-btn--primary {
  background: var(--sm-main-200);
  border-color: var(--sm-main-300);
  color: var(--sm-grey-900);
}

.sm-btn--primary:hover {
  background: var(--sm-main-300);
}

.sm-btn--outline {
  background: transparent;
  border-color: var(--sm-grey-700);
  color: var(--sm-grey-900);
}

.sm-btn--outline:hover {
  background: rgba(49, 49, 49, 0.04);
}

.sm-btn--yellow {
  background: var(--sm-yellow);
  border-color: transparent;
  color: var(--sm-grey-900);
}

.sm-btn--block { width: 100%; }

/* Icon button */
.sm-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  border-radius: var(--sm-radius-pill);
  border: 1px solid var(--sm-grey-600);
  background: transparent;
  color: var(--sm-grey-900);
  cursor: pointer;
  padding: 0;
  transition: background var(--sm-transition);
}

.sm-icon-btn:hover { background: rgba(49, 49, 49, 0.05); }
.sm-icon-btn svg,
.sm-icon-btn img { width: 24px; height: 24px; display: block; }

/* Tags / chips */
.sm-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 8px;
  background: var(--sm-yellow-soft);
  font-size: 14px;
  font-weight: 500;
  color: var(--sm-grey-900);
  white-space: nowrap;
}

.sm-tag--mint { background: var(--sm-main-100); }

/* Cards */
.sm-card {
  background: var(--sm-white);
  border-radius: var(--sm-radius);
  box-shadow: var(--sm-shadow-card);
  padding: 24px;
}

.sm-card--feature {
  padding: 16px;
  min-height: 164px;
  border: 1px solid var(--sm-main-900-a10);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sm-card__icon {
  width: 63px;
  height: 63px;
  margin-bottom: 0;
}

.sm-card__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sm-card__title {
  font-family: var(--sm-font-body);
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  margin: 0 0 8px;
}

.sm-card__text {
  margin: 0;
  color: var(--sm-grey-600);
  font-size: 16px;
  line-height: 20px;
}

/* Inputs */
.sm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.sm-field__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--sm-grey-600);
}

.sm-input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--sm-main-300);
  border-radius: 14px;
  background: var(--sm-white);
  color: var(--sm-grey-900);
  outline: none;
  transition: border-color var(--sm-transition), box-shadow var(--sm-transition);
}

.sm-input:focus {
  border-color: var(--sm-main-600);
  box-shadow: 0 0 0 3px rgba(21, 183, 153, 0.15);
}

.sm-input::placeholder { color: var(--sm-grey-500); }

/* Accordion */
.sm-accordion { display: flex; flex-direction: column; gap: 8px; }

.sm-accordion__item {
  border-radius: var(--sm-radius);
  background: var(--sm-bg);
  overflow: hidden;
}

.sm-accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: var(--sm-font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--sm-grey-900);
}

.sm-accordion__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
}

.sm-accordion__icon::before,
.sm-accordion__icon::after {
  content: "";
  position: absolute;
  background: var(--sm-grey-900);
  transition: transform var(--sm-transition);
}

.sm-accordion__icon::before {
  width: 14px; height: 2px; top: 11px; left: 5px;
}

.sm-accordion__icon::after {
  width: 2px; height: 14px; top: 5px; left: 11px;
}

.sm-accordion__item.is-open .sm-accordion__icon::after {
  transform: scaleY(0);
}

.sm-accordion__panel {
  display: none;
  padding: 0 24px 20px;
  color: var(--sm-grey-600);
}

.sm-accordion__item.is-open .sm-accordion__panel {
  display: block;
}

/* Modal */
.sm-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.sm-modal.is-open { display: flex; }

.sm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(49, 49, 49, 0.45);
  backdrop-filter: blur(4px);
}

.sm-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 444px);
  background: var(--sm-white);
  border-radius: var(--sm-radius-lg);
  padding: 32px 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
}

.sm-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.sm-modal__title {
  font-size: 24px;
  margin-bottom: 8px;
}

.sm-modal__text {
  color: var(--sm-grey-500);
  margin-bottom: 20px;
}

body.sm-modal-open { overflow: hidden; }

/* Menu overlay */
.sm-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(248, 249, 246, 0.96);
  backdrop-filter: blur(12px);
  display: none;
  padding: 120px 0 40px;
  overflow-y: auto;
}

.sm-nav-overlay__close {
  position: absolute;
  top: 28px;
  right: max(var(--sm-pad), calc((100% - var(--sm-container)) / 2));
}

.sm-nav-overlay.is-open { display: block; }

.sm-nav-overlay__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 672px;
}

.sm-nav-overlay__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(76, 74, 75, 0.12);
  font-family: var(--sm-font-display);
  font-weight: 700;
  font-size: 22px;
}

.sm-nav-overlay__list a:hover {
  color: var(--sm-main-600);
}

/* Slider dots */
.sm-slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.sm-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: var(--sm-main-300);
  padding: 0;
  cursor: pointer;
}

.sm-slider__dot.is-active {
  width: 24px;
  border-radius: 4px;
  background: var(--sm-main-600);
}
