:root,
[data-brand="kuida"] {
  --brand-fill: #26a69a;
  --brand-fill-strong: #1e8a7f;
  --brand-line: #8ed4c8;
  --brand-ink: #1f3d34;
  --brand-glow: #8ed4b5;
  --kuida-main-color: var(--brand-fill-strong);
}

[data-brand="med"] {
  --brand-fill: #bfe8d4;
  --brand-fill-strong: #5bb892;
  --brand-line: #9fdbbe;
  --brand-ink: #1f3d34;
  --brand-glow: #8ed4b5;
  --kuida-main-color: #5bb892;
}

[data-brand="vita"] {
  --brand-fill: #c9b8e8;
  --brand-fill-strong: #8b73c7;
  --brand-line: #b8a4e0;
  --brand-ink: #2e2448;
  --brand-glow: #b8a9e0;
  --kuida-main-color: #8b73c7;
}

[data-brand="rent"] {
  --brand-fill: #f5b4b0;
  --brand-fill-strong: #e07a74;
  --brand-line: #f0a8a4;
  --brand-ink: #4a2a28;
  --brand-glow: #ee8e8a;
  --kuida-main-color: #e07a74;
}

[data-brand="care"] {
  --brand-fill: #f6cfa0;
  --brand-fill-strong: #e0a15a;
  --brand-line: #f0c48a;
  --brand-ink: #4a3518;
  --brand-glow: #efb56a;
  --kuida-main-color: #e0a15a;
}

.brand-hub {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.brand-hub-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.brand-hub-hero img { width: 140px; height: auto; }

.brand-hub-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: #222;
  margin: 0 0 0.5rem;
}

.brand-hub-hero p { color: #555; max-width: 42rem; margin: 0; }

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.brand-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 2px solid var(--card-line, #eee);
  border-radius: 24px;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  min-height: 300px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.brand-card img.wordmark { width: 100%; height: auto; margin-bottom: 0.5rem; }
.brand-card img.mascot {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin: 0.25rem auto 0.75rem;
  background: none;
}

.kuida-mascot {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  width: 118px;
  pointer-events: none;
}

.kuida-mascot-button {
  pointer-events: auto;
  display: block;
  width: 118px;
  height: 160px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  cursor: pointer;
  animation: kuida-float 4.2s ease-in-out infinite;
  filter: drop-shadow(0 16px 18px color-mix(in srgb, var(--brand-glow) 45%, transparent));
}

.kuida-mascot-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: none;
  user-select: none;
  -webkit-user-drag: none;
}

.kuida-mascot-bubble {
  pointer-events: none;
  position: absolute;
  right: 8px;
  bottom: 168px;
  width: 210px;
  background: #fff;
  color: var(--brand-ink, #222);
  border: 2px solid var(--brand-line, #ddd);
  border-radius: 18px 18px 4px 18px;
  padding: 0.7rem 0.85rem;
  font-size: 0.88rem;
  line-height: 1.35;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.kuida-mascot.is-open .kuida-mascot-bubble {
  opacity: 1;
  transform: translateY(0);
}

@keyframes kuida-float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-14px) rotate(1.5deg); }
}

@media (max-width: 700px) {
  .kuida-mascot { right: 8px; bottom: 8px; width: 88px; }
  .kuida-mascot-button { width: 88px; height: 120px; }
  .kuida-mascot-bubble { width: 170px; bottom: 128px; font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .kuida-mascot-button { animation: none; }
}
.brand-card h2 { font-size: 1.05rem; margin: 0 0 0.35rem; }
.brand-card p { color: #555; font-size: 0.92rem; margin: 0; flex: 1; }
.brand-card .soon { margin-top: 0.75rem; font-size: 0.8rem; font-weight: 700; }

.brand-card[data-brand="med"] { --card-line: #9fdbbe; }
.brand-card[data-brand="vita"] { --card-line: #b8a4e0; }
.brand-card[data-brand="rent"] { --card-line: #f0a8a4; }
.brand-card[data-brand="care"] { --card-line: #f0c48a; }

.header-brand-logo { height: 44px; width: auto; display: block; }

.vita-page { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.vita-page h1 { margin: 0 0 0.5rem; }
.vita-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.vita-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 24px rgba(139, 115, 199, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.vita-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(139, 115, 199, 0.16);
}
.vita-card-image {
  aspect-ratio: 1;
  background: #f6f2fb;
  overflow: hidden;
}
.vita-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vita-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8b73c7;
  font-weight: 800;
}
.vita-card-body { padding: 1rem 1.1rem 1.15rem; }
.vita-card h2 { font-size: 1.05rem; margin: 0 0 0.25rem; }
.vita-card p { color: #666; margin: 0; font-size: 0.9rem; }
.vita-card .price { font-weight: 800; color: var(--kuida-main-color); margin-top: 0.65rem; }
.vita-product-hero {
  display: grid;
  grid-template-columns: minmax(240px, 420px) 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-top: 1rem;
}
.vita-product-photo {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  aspect-ratio: 1;
  background: #f6f2fb;
}
@media (max-width: 700px) {
  .vita-product-hero { grid-template-columns: 1fr; }
}
.vita-form .form-group { margin-bottom: 1rem; }
.vita-form input, .vita-form textarea, .vita-form select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 10px;
}
.btn-brand {
  display: inline-block;
  background: var(--kuida-main-color);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.coming-soon {
  max-width: 640px;
  margin: 3rem auto;
  text-align: center;
  padding: 1.5rem;
}
.coming-soon img { width: 160px; margin: 0 auto 1rem; }

@media (max-width: 700px) {
  .brand-hub-hero { grid-template-columns: 1fr; text-align: center; }
  .brand-hub-hero img { margin: 0 auto; }
}
