/* Skinlab UK — Beauty Routine Builder Styles */

:root {
  --pink: #e8a0b4;
  --pink-dark: #c97e94;
  --cream: #fdf6f0;
  --charcoal: #2d2d2d;
  --warm-gray: #6b5f57;
  --light-pink: #f9eae8;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  background-image: radial-gradient(var(--light-pink) 1px, transparent 1px);
  background-size: 24px 24px;
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

img { max-width: 100%; display: block; }

/* HERO */
.hero {
  background: linear-gradient(135deg, #f9eae8 0%, #fdf6f0 60%, #e8a0b4 100%);
  padding: 60px 20px;
  text-align: center;
}
.hero-logo {
  width: 72px;
  height: 72px;
  background: var(--pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
}
.hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 10px;
}
.hero p {
  font-size: 1.1rem;
  color: var(--warm-gray);
  max-width: 520px;
  margin: 0 auto 24px;
}
.hero-cta {
  display: inline-block;
  background: var(--pink);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}
.hero-cta:hover { background: var(--pink-dark); }

/* SECTION WRAPPERS */
.section { padding: 60px 20px; max-width: 960px; margin: 0 auto; }
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--charcoal);
}
.section-sub {
  text-align: center;
  color: var(--warm-gray);
  margin-bottom: 40px;
}

/* BUILDER */
.builder-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}
.builder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 640px) { .builder-grid { grid-template-columns: 1fr; } }

.field-label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--charcoal);
}
.field-group { margin-bottom: 20px; }

select, .tag-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #ede8e4;
  border-radius: 10px;
  font-size: 1rem;
  background: var(--white);
  color: var(--charcoal);
  cursor: pointer;
  transition: border-color 0.2s;
}
select:focus { outline: none; border-color: var(--pink); }

.tag-select {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border: 2px solid #ede8e4;
  border-radius: 10px;
  min-height: 56px;
  cursor: pointer;
}
.tag-option {
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--light-pink);
  color: var(--charcoal);
  font-size: 0.85rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}
.tag-option:hover { border-color: var(--pink); }
.tag-option.selected {
  background: var(--pink);
  color: var(--white);
  border-color: var(--pink);
}

.budget-options {
  display: flex;
  gap: 10px;
}
.budget-btn {
  flex: 1;
  padding: 10px;
  border: 2px solid #ede8e4;
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  font-size: 0.9rem;
  text-align: center;
  transition: all 0.2s;
}
.budget-btn:hover { border-color: var(--pink); }
.budget-btn.active {
  background: var(--pink);
  color: var(--white);
  border-color: var(--pink);
}

.category-toggle {
  display: flex;
  gap: 10px;
}
.category-btn {
  flex: 1;
  padding: 12px;
  border: 2px solid #ede8e4;
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s;
}
.category-btn:hover { border-color: var(--pink); }
.category-btn.active {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}

.build-btn {
  width: 100%;
  padding: 16px;
  background: var(--pink);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 24px;
  transition: background 0.2s;
}
.build-btn:hover { background: var(--pink-dark); }

/* RESULTS */
#results { display: none; margin-top: 40px; }
#results.visible { display: block; }
.result-header {
  text-align: center;
  margin-bottom: 32px;
}
.result-header h3 {
  font-size: 1.4rem;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.result-header p { color: var(--warm-gray); font-size: 0.95rem; }

.routine-steps { list-style: none; counter-reset: step; }
.routine-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--cream);
  border-radius: 14px;
  margin-bottom: 14px;
  counter-increment: step;
}
.routine-step::before {
  content: counter(step);
  min-width: 36px;
  height: 36px;
  background: var(--pink);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.step-info h4 { font-size: 1rem; margin-bottom: 4px; }
.step-info p { font-size: 0.9rem; color: var(--warm-gray); }
.step-meta {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--pink-dark);
  font-weight: 600;
}

.routine-cta {
  display: block;
  text-align: center;
  background: var(--light-pink);
  color: var(--pink-dark);
  padding: 14px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 16px;
  border: 2px solid var(--pink);
  transition: all 0.2s;
}
.routine-cta:hover { background: var(--pink); color: var(--white); }

/* DEALS */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.deal-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.2s;
}
.deal-card:hover { transform: translateY(-4px); }
.deal-logo {
  width: 56px;
  height: 56px;
  background: var(--light-pink);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-weight: 700;
  color: var(--pink-dark);
  font-size: 1.2rem;
}
.deal-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.deal-card .discount {
  color: var(--pink-dark);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.deal-card .code {
  display: inline-block;
  background: var(--cream);
  padding: 6px 14px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 14px;
  border: 1px dashed var(--pink);
}
.deal-link {
  display: inline-block;
  background: var(--pink);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.deal-link:hover { background: var(--pink-dark); }

/* WHY */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}
.why-icon {
  width: 48px;
  height: 48px;
  background: var(--light-pink);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.4rem;
}
.why-card h3 { margin-bottom: 8px; font-size: 1rem; }
.why-card p { font-size: 0.9rem; color: var(--warm-gray); }

/* ABOUT */
.about-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.about-logo {
  width: 64px;
  height: 64px;
  background: var(--pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
}
.about-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.about-card p { color: var(--warm-gray); font-size: 0.95rem; margin-bottom: 24px; }

/* FOOTER */
footer {
  background: var(--charcoal);
  color: var(--cream);
  padding: 40px 20px;
  text-align: center;
}
footer p { font-size: 0.85rem; opacity: 0.7; max-width: 600px; margin: 0 auto 12px; }
footer a { color: var(--pink); text-decoration: none; }

/* DISCLOSURE */
.disclosure {
  background: var(--light-pink);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--warm-gray);
  max-width: 680px;
  margin: 0 auto 40px;
}
.disclosure strong { color: var(--charcoal); }

/* RESET BUILDER */
.reset-btn {
  background: none;
  border: 2px solid var(--pink);
  color: var(--pink-dark);
  padding: 10px 24px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 20px;
  transition: all 0.2s;
}
.reset-btn:hover { background: var(--pink); color: var(--white); }