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

body {
  font-family: "Manrope", "Arial", sans-serif;
  color: #1e1c1c;
  background: radial-gradient(circle at top left, #fff4f0 0%, #f6f1ff 38%, #eef8ff 100%);
  line-height: 1.6;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  padding: 64px 8vw 48px;
}

.hero h1 {
  font-family: "Fraunces", "Georgia", serif;
  font-size: clamp(2.2rem, 3.2vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.lead {
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 24px;
}

.pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: #1e1c1c;
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.cta {
  border: none;
  padding: 14px 28px;
  border-radius: 999px;
  background: #ff6b6b;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(255, 107, 107, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta--ghost {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  color: #1e1c1c;
  border: 1px solid rgba(30, 28, 28, 0.2);
  box-shadow: none;
  margin-left: 12px;
  text-decoration: none;
}

.cta--small {
  padding: 10px 20px;
  font-size: 0.95rem;
  margin-left: 0;
  margin-top: 12px;
}

.cta--ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(30, 28, 28, 0.12);
}

.cta--ghost-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.cta--ghost-light:hover {
  box-shadow: 0 12px 26px rgba(255, 255, 255, 0.18);
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(255, 107, 107, 0.38);
}

.cta--wide {
  width: 100%;
  margin-top: 20px;
}

.hero__visual {
  position: relative;
  display: grid;
  gap: 24px;
  align-content: start;
}

.hero--compact {
  padding-bottom: 16px;
}

.palette {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 20px 40px rgba(30, 28, 28, 0.08);
}

.palette__swatch {
  height: 60px;
  border-radius: 14px;
}

.swatch--sunset {
  background: linear-gradient(135deg, #ff7a7a, #ffbd7a);
}

.swatch--rose {
  background: linear-gradient(135deg, #f8a8d8, #ffd8e8);
}

.swatch--sky {
  background: linear-gradient(135deg, #89b6ff, #cfe8ff);
}

.swatch--mint {
  background: linear-gradient(135deg, #85e0c8, #d2f6ec);
}

.swatch--sand {
  background: linear-gradient(135deg, #f0c28a, #fff0d2);
}

.swatch--plum {
  background: linear-gradient(135deg, #7f5cff, #d0b8ff);
}

.hero__card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(30, 28, 28, 0.08);
}

.hero__card h3 {
  font-family: "Fraunces", "Georgia", serif;
  margin-bottom: 12px;
}

.hero__card ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero__card li::before {
  content: "•";
  margin-right: 8px;
  color: #ff6b6b;
}

.quiz {
  padding: 32px 8vw 64px;
}

.seo {
  margin: 12px 8vw 28px;
  display: grid;
  gap: 18px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 18px 36px rgba(30, 28, 28, 0.08);
}

.seo h2,
.seo h3 {
  font-family: "Fraunces", "Georgia", serif;
  margin-bottom: 6px;
}

.seo ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.seo li::before {
  content: "•";
  margin-right: 8px;
  color: #ff6b6b;
}

.seo__note {
  font-size: 0.95rem;
  color: rgba(30, 28, 28, 0.65);
}

.quiz__header h2 {
  font-family: "Fraunces", "Georgia", serif;
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  margin-bottom: 8px;
}

.quiz__form {
  margin-top: 28px;
  display: grid;
  gap: 24px;
}

.question {
  background: #fff;
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: 0 16px 30px rgba(30, 28, 28, 0.08);
  animation: fadeIn 0.6s ease forwards;
}

.question p {
  font-weight: 600;
  margin-bottom: 12px;
}

.options {
  display: grid;
  gap: 10px;
}

label {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8f6ff;
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

label:hover {
  transform: translateX(2px);
  background: #efeaff;
}

input[type="radio"] {
  accent-color: #ff6b6b;
}

.result {
  padding: 0 8vw 72px;
}

.result__card {
  background: #1e1c1c;
  color: #fff;
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 24px 48px rgba(30, 28, 28, 0.2);
}

.result__tag {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 10px;
}

.result__palette {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 10px;
  margin: 20px 0 28px;
}

.result__swatch {
  height: 54px;
  border-radius: 14px;
}

.result__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.result__grid ul {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.result__grid a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

.result__grid a:hover {
  text-decoration-color: rgba(255, 255, 255, 0.8);
}

.result .cta--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.result .cta--ghost:hover {
  box-shadow: 0 12px 26px rgba(255, 255, 255, 0.18);
}

.result__grid li::before {
  content: "•";
  margin-right: 8px;
  color: #ff6b6b;
}

.footer {
  text-align: center;
  padding: 18px 8vw 32px;
  color: rgba(30, 28, 28, 0.6);
}

.types {
  padding: 8px 8vw 64px;
  display: grid;
  gap: 32px;
}

.type-intro {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 18px 36px rgba(30, 28, 28, 0.08);
}

.type-intro h2 {
  font-family: "Fraunces", "Georgia", serif;
  margin-bottom: 8px;
}

.filters {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: 18px 20px;
  display: grid;
  gap: 12px;
  box-shadow: 0 18px 36px rgba(30, 28, 28, 0.08);
}

.filters__group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 0.95rem;
}

.filters__group span {
  font-weight: 600;
  margin-right: 6px;
}

.filter-btn {
  border: 1px solid rgba(30, 28, 28, 0.15);
  background: #fff;
  color: #1e1c1c;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.filter-btn.is-active,
.filter-btn:hover {
  background: #1e1c1c;
  color: #fff;
  border-color: #1e1c1c;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.product-group h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.product-group ul {
  list-style: none;
  display: grid;
  gap: 6px;
}

.season-cosmetics {
  background: #fdfbff;
  border-radius: 20px;
  padding: 18px;
  box-shadow: inset 0 0 0 1px rgba(30, 28, 28, 0.05);
  display: grid;
  gap: 12px;
}

.season-cosmetics__header h3 {
  font-family: "Fraunces", "Georgia", serif;
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.product-note {
  color: rgba(30, 28, 28, 0.7);
}

.product-group a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(30, 28, 28, 0.3);
}

.product-group a:hover {
  text-decoration-color: rgba(30, 28, 28, 0.7);
}

.tier {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 8px;
  background: #f4f2ff;
  color: #1e1c1c;
}

.type-card {
  background: #fff;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 20px 40px rgba(30, 28, 28, 0.08);
  display: grid;
  gap: 22px;
}

.type-card__header h2 {
  font-family: "Fraunces", "Georgia", serif;
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
  margin-bottom: 8px;
}

.type-card__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.type-card__grid ul {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.type-card__grid li::before {
  content: "•";
  margin-right: 8px;
  color: #ff6b6b;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 10px;
}

.swatch-grid span {
  height: 56px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.subtypes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.type-subcard {
  background: #f9f7ff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: inset 0 0 0 1px rgba(30, 28, 28, 0.05);
  display: grid;
  gap: 10px;
}

.type-subcard h4 {
  font-family: "Fraunces", "Georgia", serif;
  font-size: 1.1rem;
}

.type-subcard p {
  font-size: 0.95rem;
  color: rgba(30, 28, 28, 0.7);
}

.chip-section h5 {
  font-size: 0.95rem;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(30, 28, 28, 0.6);
}

.makeup-grid {
  display: grid;
  gap: 8px;
}

.makeup-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 0.9rem;
  box-shadow: 0 10px 20px rgba(30, 28, 28, 0.06);
}

.makeup-chip span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.type-card--spring {
  border: 1px solid rgba(255, 180, 140, 0.4);
}

.type-card--summer {
  border: 1px solid rgba(175, 195, 220, 0.45);
}

.type-card--autumn {
  border: 1px solid rgba(204, 142, 88, 0.45);
}

.type-card--winter {
  border: 1px solid rgba(100, 110, 160, 0.4);
}

.type-card.is-highlighted {
  box-shadow: 0 28px 60px rgba(255, 160, 180, 0.28);
  border-color: rgba(255, 160, 180, 0.6);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

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

@media (max-width: 720px) {
  .hero {
    padding: 48px 6vw 32px;
  }

  .quiz {
    padding: 24px 6vw 48px;
  }

  .result {
    padding: 0 6vw 56px;
  }

  .cta--ghost {
    margin-left: 0;
    margin-top: 12px;
  }
}
